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_; |