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

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

Issue 11048023: Browser Plugin: Implement terminate() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 2 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // embedder) instead of default view/widget host. 112 // embedder) instead of default view/widget host.
113 void HandleInputEventAck(RenderViewHost* render_view_host, bool handled); 113 void HandleInputEventAck(RenderViewHost* render_view_host, bool handled);
114 114
115 // The guest needs to notify the plugin in the embedder to start (or stop) 115 // The guest needs to notify the plugin in the embedder to start (or stop)
116 // accepting touch events. 116 // accepting touch events.
117 void SetIsAcceptingTouchEvents(bool accept); 117 void SetIsAcceptingTouchEvents(bool accept);
118 118
119 // Exposes the protected web_contents() from WebContentsObserver. 119 // Exposes the protected web_contents() from WebContentsObserver.
120 WebContents* GetWebContents(); 120 WebContents* GetWebContents();
121 121
122 // Kill the guest process.
123 void Terminate();
124
122 // Overridden in tests. 125 // Overridden in tests.
123 virtual bool ViewTakeFocus(bool reverse); 126 virtual bool ViewTakeFocus(bool reverse);
124 // If possible, navigate the guest to |relative_index| entries away from the 127 // If possible, navigate the guest to |relative_index| entries away from the
125 // current navigation entry. 128 // current navigation entry.
126 virtual void Go(int relative_index); 129 virtual void Go(int relative_index);
127 // Overridden in tests. 130 // Overridden in tests.
128 virtual void SetFocus(bool focused); 131 virtual void SetFocus(bool focused);
129 // Reload the guest. 132 // Reload the guest.
130 virtual void Reload(); 133 virtual void Reload();
131 // Stop loading the guest. 134 // Stop loading the guest.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 IDMap<RenderViewHost> pending_updates_; 183 IDMap<RenderViewHost> pending_updates_;
181 int pending_update_counter_; 184 int pending_update_counter_;
182 base::TimeDelta guest_hang_timeout_; 185 base::TimeDelta guest_hang_timeout_;
183 186
184 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 187 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
185 }; 188 };
186 189
187 } // namespace content 190 } // namespace content
188 191
189 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 192 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698