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

Side by Side Diff: android_webview/browser/aw_content_browser_client.h

Issue 11763002: Implementing native chromium GeolocationPermissionContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using factory function ptr instead of passing object Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "content/public/browser/content_browser_client.h" 8 #include "content/public/browser/content_browser_client.h"
9 9
10 #include "android_webview/browser/aw_browser_context.h" 10 #include "android_webview/browser/aw_browser_context.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 12
13 namespace android_webview { 13 namespace android_webview {
14 14
15 class AwContentBrowserClient : public content::ContentBrowserClient { 15 class AwContentBrowserClient : public content::ContentBrowserClient {
16 public: 16 public:
17 typedef content::WebContentsViewDelegate* ViewDelegateFactoryFn( 17 typedef content::WebContentsViewDelegate* ViewDelegateFactoryFn(
18 content::WebContents* web_contents); 18 content::WebContents* web_contents);
19 19
20 AwContentBrowserClient(ViewDelegateFactoryFn* view_delegate_factory); 20 AwContentBrowserClient(
21 ViewDelegateFactoryFn* view_delegate_factory,
22 GeolocationPermissionGetterFn* geolocation_permission_getter);
21 virtual ~AwContentBrowserClient(); 23 virtual ~AwContentBrowserClient();
22 24
23 AwBrowserContext* GetAwBrowserContext(); 25 AwBrowserContext* GetAwBrowserContext();
24 26
25 // Overriden methods from ContentBrowserClient. 27 // Overriden methods from ContentBrowserClient.
26 virtual content::BrowserMainParts* CreateBrowserMainParts( 28 virtual content::BrowserMainParts* CreateBrowserMainParts(
27 const content::MainFunctionParams& parameters) OVERRIDE; 29 const content::MainFunctionParams& parameters) OVERRIDE;
28 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( 30 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate(
29 content::WebContents* web_contents) OVERRIDE; 31 content::WebContents* web_contents) OVERRIDE;
30 virtual void RenderProcessHostCreated( 32 virtual void RenderProcessHostCreated(
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 scoped_ptr<AwBrowserContext> browser_context_; 133 scoped_ptr<AwBrowserContext> browser_context_;
132 134
133 ViewDelegateFactoryFn* view_delegate_factory_; 135 ViewDelegateFactoryFn* view_delegate_factory_;
134 136
135 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); 137 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient);
136 }; 138 };
137 139
138 } // namespace android_webview 140 } // namespace android_webview
139 141
140 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ 142 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698