blob: b396ad058d7a23f3f28d7e469b9a37a1838968f3 [file] [log] [blame]
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/memory/ref_counted.h"
namespace content {
class GeolocationPermissionContext;
class WebContents;
class WebContentsViewDelegate;
} // namespace content
namespace android_webview {
class AwBrowserContext;
class AwQuotaManagerBridge;
class AwWebPreferencesPopulater;
// Used to create instances of objects under native that are used in browser.
class JniDependencyFactory {
virtual ~JniDependencyFactory() {}
virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge(
AwBrowserContext* browser_context) = 0;
virtual content::GeolocationPermissionContext* CreateGeolocationPermission(
AwBrowserContext* browser_context) = 0;
virtual content::WebContentsViewDelegate* CreateViewDelegate(
content::WebContents* web_contents) = 0;
virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() = 0;
} // namespace android_webview