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

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

Issue 10917225: Browser Plugin: Reload and Stop operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated Created 8 years, 3 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 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // coordinates. 141 // coordinates.
142 void ShowWidget(RenderViewHost* render_view_host, 142 void ShowWidget(RenderViewHost* render_view_host,
143 int route_id, 143 int route_id,
144 const gfx::Rect& initial_pos); 144 const gfx::Rect& initial_pos);
145 // Overriden in tests. 145 // Overriden in tests.
146 virtual void SetFocus(bool focused); 146 virtual void SetFocus(bool focused);
147 void SetCursor(const WebCursor& cursor); 147 void SetCursor(const WebCursor& cursor);
148 // Handles input event acks so they are sent to browser plugin host (via 148 // Handles input event acks so they are sent to browser plugin host (via
149 // embedder) instead of default view/widget host. 149 // embedder) instead of default view/widget host.
150 void HandleInputEventAck(RenderViewHost* render_view_host, bool handled); 150 void HandleInputEventAck(RenderViewHost* render_view_host, bool handled);
151 // Stop loading the guest.
152 void Stop();
153 // Reload the guest.
154 void Reload();
151 155
152 // Helper to send messages to embedder. Overriden in test implementation since 156 // Helper to send messages to embedder. Overriden in test implementation since
153 // we want to intercept certain messages for testing. 157 // we want to intercept certain messages for testing.
154 virtual void SendMessageToEmbedder(IPC::Message*); 158 virtual void SendMessageToEmbedder(IPC::Message*);
155 159
156 // Static factory instance (always NULL for non-test). 160 // Static factory instance (always NULL for non-test).
157 static content::BrowserPluginHostFactory* factory_; 161 static content::BrowserPluginHostFactory* factory_;
158 162
159 // Overriden in tests. 163 // Overriden in tests.
160 virtual bool ViewTakeFocus(bool reverse); 164 virtual bool ViewTakeFocus(bool reverse);
(...skipping 14 matching lines...) Expand all
175 IDMap<RenderViewHost> pending_updates_; 179 IDMap<RenderViewHost> pending_updates_;
176 int pending_update_counter_; 180 int pending_update_counter_;
177 base::TimeDelta guest_hang_timeout_; 181 base::TimeDelta guest_hang_timeout_;
178 182
179 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 183 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
180 }; 184 };
181 185
182 } // namespace content 186 } // namespace content
183 187
184 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 188 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698