Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1788)

Unified Diff: android_webview/browser/jni_dependency_factory.h

Issue 12253057: Implement WebStorage API methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments from joth. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/jni_dependency_factory.h
diff --git a/android_webview/browser/jni_dependency_factory.h b/android_webview/browser/jni_dependency_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..4adcc251356e92a47e01cdd01cf98893ff99dd1a
--- /dev/null
+++ b/android_webview/browser/jni_dependency_factory.h
@@ -0,0 +1,34 @@
+// 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.
+
+#ifndef ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_
+#define ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_
+
+namespace content {
+class GeolocationPermissionContext;
+class WebContents;
+class WebContentsViewDelegate;
+} // namespace content
+
+namespace android_webview {
+
+class AwBrowserContext;
+class AwQuotaManagerBridge;
+
+// Used to create instances of objects under native that are used in browser.
+class JniDependencyFactory {
+ public:
+ virtual ~JniDependencyFactory() {}
+
+ virtual AwQuotaManagerBridge* CreateAwQuotaManagerBridge(
+ AwBrowserContext* browser_context) = 0;
+ virtual content::GeolocationPermissionContext* CreateGeolocationPermission(
+ AwBrowserContext* browser_context) = 0;
+ virtual content::WebContentsViewDelegate* CreateViewDelegate(
+ content::WebContents* web_contents) = 0;
+};
+
+} // namespace android_webview
+
+#endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698