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

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: Addressed comments + merged with ToT/latest patch 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 IPC::Message* reply_message); 130 IPC::Message* reply_message);
131 // Overrides default ShowWidget message so we show them on the correct 131 // Overrides default ShowWidget message so we show them on the correct
132 // coordinates. 132 // coordinates.
133 void ShowWidget(RenderViewHost* render_view_host, 133 void ShowWidget(RenderViewHost* render_view_host,
134 int route_id, 134 int route_id,
135 const gfx::Rect& initial_pos); 135 const gfx::Rect& initial_pos);
136 void SetCursor(const WebCursor& cursor); 136 void SetCursor(const WebCursor& cursor);
137 // Handles input event acks so they are sent to browser plugin host (via 137 // Handles input event acks so they are sent to browser plugin host (via
138 // embedder) instead of default view/widget host. 138 // embedder) instead of default view/widget host.
139 void HandleInputEventAck(RenderViewHost* render_view_host, bool handled); 139 void HandleInputEventAck(RenderViewHost* render_view_host, bool handled);
140 // Stop loading the guest.
141 void Stop();
142 // Reload the guest.
143 void Reload();
140 144
141 // Helper to send messages to embedder. Overridden in test implementation 145 // Helper to send messages to embedder. Overridden in test implementation
142 // since we want to intercept certain messages for testing. 146 // since we want to intercept certain messages for testing.
143 virtual void SendMessageToEmbedder(IPC::Message* msg); 147 virtual void SendMessageToEmbedder(IPC::Message* msg);
144 // Overridden in tests. 148 // Overridden in tests.
145 virtual void SetFocus(bool focused); 149 virtual void SetFocus(bool focused);
146 // Overridden in tests. 150 // Overridden in tests.
147 virtual bool ViewTakeFocus(bool reverse); 151 virtual bool ViewTakeFocus(bool reverse);
148 152
149 // Static factory instance (always NULL for non-test). 153 // Static factory instance (always NULL for non-test).
(...skipping 15 matching lines...) Expand all
165 IDMap<RenderViewHost> pending_updates_; 169 IDMap<RenderViewHost> pending_updates_;
166 int pending_update_counter_; 170 int pending_update_counter_;
167 base::TimeDelta guest_hang_timeout_; 171 base::TimeDelta guest_hang_timeout_;
168 172
169 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 173 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
170 }; 174 };
171 175
172 } // namespace content 176 } // namespace content
173 177
174 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 178 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698