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

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

Issue 12676030: Fix a param signature in BrowserPluginGuest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. It has a 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a
10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // Attaches this BrowserPluginGuest to the provided |embedder_web_contents| 211 // Attaches this BrowserPluginGuest to the provided |embedder_web_contents|
212 // and initializes the guest with the provided |params|. Attaching a guest 212 // and initializes the guest with the provided |params|. Attaching a guest
213 // to an embedder implies that this guest's lifetime is no longer managed 213 // to an embedder implies that this guest's lifetime is no longer managed
214 // by its opener, and it can begin loading resources. 214 // by its opener, and it can begin loading resources.
215 void Attach(WebContentsImpl* embedder_web_contents, 215 void Attach(WebContentsImpl* embedder_web_contents,
216 BrowserPluginHostMsg_CreateGuest_Params params); 216 BrowserPluginHostMsg_CreateGuest_Params params);
217 217
218 // Requests geolocation permission through embedder js api. 218 // Requests geolocation permission through embedder js api.
219 void AskEmbedderForGeolocationPermission(int bridge_id, 219 void AskEmbedderForGeolocationPermission(int bridge_id,
220 const GURL& requesting_frame, 220 const GURL& requesting_frame,
221 GeolocationCallback callback); 221 const GeolocationCallback& callback);
222 // Cancels pending geolocation request. 222 // Cancels pending geolocation request.
223 void CancelGeolocationRequest(int bridge_id); 223 void CancelGeolocationRequest(int bridge_id);
224 // Embedder sets permission to allow or deny geolocation request. 224 // Embedder sets permission to allow or deny geolocation request.
225 void SetGeolocationPermission(int request_id, bool allowed); 225 void SetGeolocationPermission(int request_id, bool allowed);
226 226
227 // Allow the embedder to call this for unhandled messages when 227 // Allow the embedder to call this for unhandled messages when
228 // BrowserPluginGuest is already destroyed. 228 // BrowserPluginGuest is already destroyed.
229 static void AcknowledgeBufferPresent(int route_id, 229 static void AcknowledgeBufferPresent(int route_id,
230 int gpu_host_id, 230 int gpu_host_id,
231 const std::string& mailbox_name, 231 const std::string& mailbox_name,
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // A map from request ID to instance ID for use by the New Window API. 431 // A map from request ID to instance ID for use by the New Window API.
432 typedef std::map<int, int> NewWindowRequestMap; 432 typedef std::map<int, int> NewWindowRequestMap;
433 NewWindowRequestMap new_window_request_map_; 433 NewWindowRequestMap new_window_request_map_;
434 434
435 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 435 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
436 }; 436 };
437 437
438 } // namespace content 438 } // namespace content
439 439
440 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 440 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698