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

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

Issue 17846010: <webview>: Move contentload event from content to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_loadstop
Patch Set: Merge with ToT Created 7 years, 5 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
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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 base::SharedMemory* damage_buffer() const { return damage_buffer_.get(); } 293 base::SharedMemory* damage_buffer() const { return damage_buffer_.get(); }
294 const gfx::Size& damage_view_size() const { return damage_view_size_; } 294 const gfx::Size& damage_view_size() const { return damage_view_size_; }
295 float damage_buffer_scale_factor() const { 295 float damage_buffer_scale_factor() const {
296 return damage_buffer_scale_factor_; 296 return damage_buffer_scale_factor_;
297 } 297 }
298 // Returns the damage buffer corresponding to the handle in resize |params|. 298 // Returns the damage buffer corresponding to the handle in resize |params|.
299 base::SharedMemory* GetDamageBufferFromEmbedder( 299 base::SharedMemory* GetDamageBufferFromEmbedder(
300 const BrowserPluginHostMsg_ResizeGuest_Params& params); 300 const BrowserPluginHostMsg_ResizeGuest_Params& params);
301 301
302 // Called after the load handler is called in the guest's main frame.
303 void LoadHandlerCalled();
304
305 // Called when a redirect notification occurs. 302 // Called when a redirect notification occurs.
306 void LoadRedirect(const GURL& old_url, 303 void LoadRedirect(const GURL& old_url,
307 const GURL& new_url, 304 const GURL& new_url,
308 bool is_top_level); 305 bool is_top_level);
309 306
310 bool InAutoSizeBounds(const gfx::Size& size) const; 307 bool InAutoSizeBounds(const gfx::Size& size) const;
311 308
312 void RequestNewWindowPermission(WebContentsImpl* new_contents, 309 void RequestNewWindowPermission(WebContentsImpl* new_contents,
313 WindowOpenDisposition disposition, 310 WindowOpenDisposition disposition,
314 const gfx::Rect& initial_bounds, 311 const gfx::Rect& initial_bounds,
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 // This is a queue of messages that are destined to be sent to the embedder 506 // This is a queue of messages that are destined to be sent to the embedder
510 // once the guest is attached to a particular embedder. 507 // once the guest is attached to a particular embedder.
511 std::queue<IPC::Message*> pending_messages_; 508 std::queue<IPC::Message*> pending_messages_;
512 509
513 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 510 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
514 }; 511 };
515 512
516 } // namespace content 513 } // namespace content
517 514
518 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 515 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698