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

Unified Diff: android_webview/browser/aw_browser_context.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, 12 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/aw_browser_context.h
diff --git a/android_webview/browser/aw_browser_context.h b/android_webview/browser/aw_browser_context.h
index d184cdeecd3fe6adfad7d7305cf79201c3a770a3..715cb48c7859204538af9bbac1f53f1a9761a4b6 100644
--- a/android_webview/browser/aw_browser_context.h
+++ b/android_webview/browser/aw_browser_context.h
@@ -9,14 +9,19 @@
#include "base/file_path.h"
#include "base/memory/ref_counted.h"
#include "content/public/browser/browser_context.h"
+#include "content/public/browser/geolocation_permission_context.h"
namespace android_webview {
class AwURLRequestContextGetter;
+typedef content::GeolocationPermissionContext* GeolocationPermissionGetterFn();
boliu_use_chromium_pls 2013/01/04 23:45:43 Name it FactoryFn, since the function is also pass
Kristian Monsen 2013/01/05 02:44:58 Done, also added _fn to the end of the variable na
+
class AwBrowserContext : public content::BrowserContext {
public:
- AwBrowserContext(const FilePath path);
+ AwBrowserContext(
+ const FilePath path,
+ GeolocationPermissionGetterFn* geolocation_permission_getter);
virtual ~AwBrowserContext();
// Called before BrowserThreads are created.
@@ -51,6 +56,9 @@ class AwBrowserContext : public content::BrowserContext {
FilePath context_storage_path_;
scoped_refptr<AwURLRequestContextGetter> url_request_context_getter_;
+ GeolocationPermissionGetterFn* geolocation_permission_getter_;
+ scoped_refptr<content::GeolocationPermissionContext>
+ geolocation_permission_context_;
AwDownloadManagerDelegate download_manager_delegate_;
« no previous file with comments | « no previous file | android_webview/browser/aw_browser_context.cc » ('j') | android_webview/browser/aw_browser_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698