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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 185813004: [Geolocation] Attach user gesture indicator to permission request call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: plumb through Created 6 years, 9 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 // A BrowserPluginGuest is the browser side of a browser <--> embedder 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder
7 // renderer side of browser <--> embedder renderer communication. 7 // renderer side of browser <--> embedder renderer communication.
8 // 8 //
9 // BrowserPluginGuest lives on the UI thread of the browser process. Any 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any
10 // messages about the guest render process that the embedder might be interested 10 // messages about the guest render process that the embedder might be interested
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // by its opener, and it can begin loading resources. |extra_params| are 281 // by its opener, and it can begin loading resources. |extra_params| are
282 // parameters passed into BrowserPlugin from JavaScript to be forwarded to 282 // parameters passed into BrowserPlugin from JavaScript to be forwarded to
283 // the content embedder. 283 // the content embedder.
284 void Attach(WebContentsImpl* embedder_web_contents, 284 void Attach(WebContentsImpl* embedder_web_contents,
285 BrowserPluginHostMsg_Attach_Params params, 285 BrowserPluginHostMsg_Attach_Params params,
286 const base::DictionaryValue& extra_params); 286 const base::DictionaryValue& extra_params);
287 287
288 // Requests geolocation permission through Embedder JavaScript API. 288 // Requests geolocation permission through Embedder JavaScript API.
289 void AskEmbedderForGeolocationPermission(int bridge_id, 289 void AskEmbedderForGeolocationPermission(int bridge_id,
290 const GURL& requesting_frame, 290 const GURL& requesting_frame,
291 bool user_gesture,
291 const GeolocationCallback& callback); 292 const GeolocationCallback& callback);
292 // Cancels pending geolocation request. 293 // Cancels pending geolocation request.
293 void CancelGeolocationRequest(int bridge_id); 294 void CancelGeolocationRequest(int bridge_id);
294 295
295 // Allow the embedder to call this for unhandled messages when 296 // Allow the embedder to call this for unhandled messages when
296 // BrowserPluginGuest is already destroyed. 297 // BrowserPluginGuest is already destroyed.
297 static void AcknowledgeBufferPresent(int route_id, 298 static void AcknowledgeBufferPresent(int route_id,
298 int gpu_host_id, 299 int gpu_host_id,
299 const gpu::Mailbox& mailbox, 300 const gpu::Mailbox& mailbox,
300 uint32 sync_point); 301 uint32 sync_point);
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 // Weak pointer used to ask GeolocationPermissionContext about geolocation 623 // Weak pointer used to ask GeolocationPermissionContext about geolocation
623 // permission. 624 // permission.
624 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 625 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
625 626
626 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 627 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
627 }; 628 };
628 629
629 } // namespace content 630 } // namespace content
630 631
631 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 632 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698