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

Unified Diff: android_webview/lib/main/aw_main_delegate.h

Issue 12253057: Implement WebStorage API methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added minimal comments 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/lib/main/aw_main_delegate.h
diff --git a/android_webview/lib/main/aw_main_delegate.h b/android_webview/lib/main/aw_main_delegate.h
index 92de20c47af31d72edca5c1dccd3d1b470f63d1b..6dda52a9f77d0f90d76fa8f939f6dbf926d99c0b 100644
--- a/android_webview/lib/main/aw_main_delegate.h
+++ b/android_webview/lib/main/aw_main_delegate.h
@@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
#define ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
+#include "android_webview/browser/native_factory.h"
#include "android_webview/common/aw_content_client.h"
#include "base/memory/scoped_ptr.h"
#include "content/public/app/content_main_delegate.h"
@@ -19,7 +20,8 @@ class AwContentBrowserClient;
class AwContentRendererClient;
// Android WebView implementation of ContentMainDelegate.
-class AwMainDelegate : public content::ContentMainDelegate {
+class AwMainDelegate : public content::ContentMainDelegate,
+ public NativeFactory {
public:
AwMainDelegate();
virtual ~AwMainDelegate();
@@ -37,6 +39,14 @@ class AwMainDelegate : public content::ContentMainDelegate {
virtual content::ContentRendererClient*
CreateContentRendererClient() OVERRIDE;
+ // NativeFactory implementation.
+ virtual AwQuotaManagerBridge* CreateAwQuotaManagerBridge(
+ AwBrowserContext* browser_context) OVERRIDE;
+ virtual content::GeolocationPermissionContext*
+ CreateGeolocationPermission() OVERRIDE;
+ virtual content::WebContentsViewDelegate* CreateViewDelegate(
+ content::WebContents* web_contents) OVERRIDE;
+
scoped_ptr<content::BrowserMainRunner> browser_runner_;
AwContentClient content_client_;
scoped_ptr<AwContentBrowserClient> content_browser_client_;

Powered by Google App Engine
This is Rietveld 408576698