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

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

Issue 11416074: Browser Plugin: Simplified BrowserPluginManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 1 month 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 represents the browser side of browser <--> renderer 5 // A BrowserPluginGuest represents the browser side of browser <--> renderer
6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of 6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of
7 // browser <--> guest renderer communication. The 'guest' renderer is a 7 // browser <--> guest renderer communication. The 'guest' renderer is a
8 // <browser> tag. 8 // <browser> tag.
9 // 9 //
10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a 10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 TransportDIB* damage_buffer() const { return damage_buffer_.get(); } 240 TransportDIB* damage_buffer() const { return damage_buffer_.get(); }
241 const gfx::Size& damage_view_size() const { return damage_view_size_; } 241 const gfx::Size& damage_view_size() const { return damage_view_size_; }
242 float damage_buffer_scale_factor() const { 242 float damage_buffer_scale_factor() const {
243 return damage_buffer_scale_factor_; 243 return damage_buffer_scale_factor_;
244 } 244 }
245 // Returns the transport DIB associated with the dib in resize |params|. 245 // Returns the transport DIB associated with the dib in resize |params|.
246 TransportDIB* GetDamageBufferFromEmbedder( 246 TransportDIB* GetDamageBufferFromEmbedder(
247 RenderViewHost* embedder_rvh, 247 RenderViewHost* embedder_rvh,
248 const BrowserPluginHostMsg_ResizeGuest_Params& params); 248 const BrowserPluginHostMsg_ResizeGuest_Params& params);
249 249
250 // Returns the embedder's routing ID.
251 int embedder_routing_id() const;
252
250 // Helper to send messages to embedder. Overridden in test implementation 253 // Helper to send messages to embedder. Overridden in test implementation
251 // since we want to intercept certain messages for testing. 254 // since we want to intercept certain messages for testing.
252 virtual void SendMessageToEmbedder(IPC::Message* msg); 255 virtual void SendMessageToEmbedder(IPC::Message* msg);
253 256
254 // Called when a redirect notification occurs. 257 // Called when a redirect notification occurs.
255 void LoadRedirect(const GURL& old_url, 258 void LoadRedirect(const GURL& old_url,
256 const GURL& new_url, 259 const GURL& new_url,
257 bool is_top_level); 260 bool is_top_level);
258 261
259 bool InAutoSizeBounds(const gfx::Size& size) const; 262 bool InAutoSizeBounds(const gfx::Size& size) const;
(...skipping 21 matching lines...) Expand all
281 bool auto_size_; 284 bool auto_size_;
282 gfx::Size max_auto_size_; 285 gfx::Size max_auto_size_;
283 gfx::Size min_auto_size_; 286 gfx::Size min_auto_size_;
284 287
285 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 288 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
286 }; 289 };
287 290
288 } // namespace content 291 } // namespace content
289 292
290 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 293 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698