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

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

Issue 235633002: <webview>: Move Geolocation permission to chrome layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reordered permission names 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_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 016881fbd774a9b7bcbd96142cce5f35bca4591c..70ebc737fcd161fe6f0dfe5376214d2e7b742101 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -97,7 +97,6 @@ class CONTENT_EXPORT BrowserPluginGuest
public WebContentsDelegate,
public WebContentsObserver {
public:
- typedef base::Callback<void(bool)> GeolocationCallback;
virtual ~BrowserPluginGuest();
// The WebContents passed into the factory method here has not been
@@ -289,14 +288,6 @@ class CONTENT_EXPORT BrowserPluginGuest
BrowserPluginHostMsg_Attach_Params params,
const base::DictionaryValue& extra_params);
- // Requests geolocation permission through Embedder JavaScript API.
- void AskEmbedderForGeolocationPermission(int bridge_id,
- const GURL& requesting_frame,
- bool user_gesture,
- const GeolocationCallback& callback);
- // Cancels pending geolocation request.
- void CancelGeolocationRequest(int bridge_id);
-
// Allow the embedder to call this for unhandled messages when
// BrowserPluginGuest is already destroyed.
static void AcknowledgeBufferPresent(int route_id,
@@ -335,7 +326,6 @@ class CONTENT_EXPORT BrowserPluginGuest
friend class TestBrowserPluginGuest;
class DownloadRequest;
- class GeolocationRequest;
class JavaScriptDialogRequest;
// MediaRequest because of naming conflicts with MediaStreamRequest.
class MediaRequest;
@@ -373,11 +363,6 @@ class CONTENT_EXPORT BrowserPluginGuest
PageTransition transition_type,
WebContents* web_contents);
- // Bridge IDs correspond to a geolocation request. This method will remove
- // the bookkeeping for a particular geolocation request associated with the
- // provided |bridge_id|. It returns the request ID of the geolocation request.
- int RemoveBridgeID(int bridge_id);
-
// Returns the |request_id| generated for the |request| provided.
int RequestPermission(
BrowserPluginPermissionType permission_type,
@@ -537,10 +522,6 @@ class CONTENT_EXPORT BrowserPluginGuest
const base::Callback<void(bool)>& callback,
const std::string& url);
- // Embedder sets permission to allow or deny geolocation request.
- void SetGeolocationPermission(
- GeolocationCallback callback, int bridge_id, bool allowed);
-
// Forwards all messages from the |pending_messages_| queue to the embedder.
void SendQueuedMessages();
@@ -550,8 +531,6 @@ class CONTENT_EXPORT BrowserPluginGuest
scoped_ptr<EmbedderWebContentsObserver> embedder_web_contents_observer_;
WebContentsImpl* embedder_web_contents_;
- std::map<int, int> bridge_id_to_request_id_map_;
-
// An identifier that uniquely identifies a browser plugin guest within an
// embedder.
int instance_id_;

Powered by Google App Engine
This is Rietveld 408576698