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

Unified Diff: content/browser/browser_plugin/browser_plugin_geolocation_permission_context.h

Issue 235633002: <webview>: Move Geolocation permission to chrome layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests in Debug mode Created 6 years, 8 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: content/browser/browser_plugin/browser_plugin_geolocation_permission_context.h
diff --git a/content/browser/browser_plugin/browser_plugin_geolocation_permission_context.h b/content/browser/browser_plugin/browser_plugin_geolocation_permission_context.h
deleted file mode 100644
index 2f330e1d4e5534c1f0fb15d2dba07c67a316330e..0000000000000000000000000000000000000000
--- a/content/browser/browser_plugin/browser_plugin_geolocation_permission_context.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 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 CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GEOLOCATION_PERMISSION_CONTEXT_H_
-#define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GEOLOCATION_PERMISSION_CONTEXT_H_
-
-#include "content/public/browser/geolocation_permission_context.h"
-
-namespace content {
-
-// Browser plugin specific implementation of GeolocationPermissionContext.
-// It manages Geolocation permissions flow for BrowserPluginGuest. When a guest
-// requests gelocation permission, it delegates the request to embedder though
-// embedder's javascript api.
-// This runs on the I/O thread. We have to return to UI thread to talk to a
-// BrowserPluginGuest.
-class BrowserPluginGeolocationPermissionContext :
- public GeolocationPermissionContext {
- public:
- BrowserPluginGeolocationPermissionContext();
-
- // GeolocationPermissionContext implementation:
- virtual void RequestGeolocationPermission(
- int render_process_id,
- int render_view_id,
- int bridge_id,
- const GURL& requesting_frame,
- bool user_gesture,
- base::Callback<void(bool)> callback) OVERRIDE;
- virtual void CancelGeolocationPermissionRequest(
- int render_process_id,
- int render_view_id,
- int bridge_id,
- const GURL& requesting_frame) OVERRIDE;
-
- private:
- virtual ~BrowserPluginGeolocationPermissionContext();
-
- DISALLOW_COPY_AND_ASSIGN(BrowserPluginGeolocationPermissionContext);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GEOLOCATION_PERMISSION_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698