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

Unified Diff: android_webview/native/aw_geolocation_permission_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/native/aw_geolocation_permission_context.h
diff --git a/android_webview/native/aw_geolocation_permission_context.h b/android_webview/native/aw_geolocation_permission_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..d94feae5236a52025e6f5c475974625448903cd9
--- /dev/null
+++ b/android_webview/native/aw_geolocation_permission_context.h
@@ -0,0 +1,48 @@
+// Copyright (c) 2012 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_AW_GEOLOCATION_PERMISSION_CONTEXT_H_
+#define ANDROID_WEBVIEW_BROWSER_AW_GEOLOCATION_PERMISSION_CONTEXT_H_
+
+#include "base/callback_forward.h"
+#include "content/public/browser/geolocation_permission_context.h"
+
+class GURL;
+
+namespace android_webview {
+
+class AwGeolocationPermissionContext :
+ public content::GeolocationPermissionContext {
+ public:
+ virtual ~AwGeolocationPermissionContext();
+
+ static content::GeolocationPermissionContext* Create();
+
+ // content::GeolocationPermissionContext implementation
+ virtual void RequestGeolocationPermission(
+ int render_process_id,
+ int render_view_id,
+ int bridge_id,
+ const GURL& requesting_frame,
+ base::Callback<void(bool)> callback) OVERRIDE;
+
+ // content::GeolocationPermissionContext implementation
boliu_use_chromium_pls 2013/01/04 23:45:43 nit: usually one of this comment is enough, and gr
Kristian Monsen 2013/01/05 02:44:58 Done.
+ virtual void CancelGeolocationPermissionRequest(
+ int render_process_id,
+ int render_view_id,
+ int bridge_id,
+ const GURL& requesting_frame) OVERRIDE;
+
+ void InvokeCallback(
+ int render_process_id,
+ int render_view_id,
+ int bridge_id,
+ const GURL& requesting_frame,
+ bool value
+ );
boliu_use_chromium_pls 2013/01/04 23:45:43 pretty sure the end parenthesis should be on end o
Kristian Monsen 2013/01/05 02:44:58 Done.
+};
+
+} // anemspace android_webview
boliu_use_chromium_pls 2013/01/04 23:45:43 typo
+
+#endif // ANDROID_WEBVIEW_BROWSER_AW_GEOLOCATION_PERMISSION_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698