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

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

Issue 811263002: Queue postMessage messages destined for a MimeHandlerView guest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@postMessage1
Patch Set: Created 6 years 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. Any 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any
10 // messages about the guest render process that the embedder might be interested 10 // messages about the guest render process that the embedder might be interested
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; 155 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const;
156 156
157 // WebContentsObserver implementation. 157 // WebContentsObserver implementation.
158 void DidCommitProvisionalLoadForFrame( 158 void DidCommitProvisionalLoadForFrame(
159 RenderFrameHost* render_frame_host, 159 RenderFrameHost* render_frame_host,
160 const GURL& url, 160 const GURL& url,
161 ui::PageTransition transition_type) override; 161 ui::PageTransition transition_type) override;
162 162
163 void RenderViewReady() override; 163 void RenderViewReady() override;
164 void RenderProcessGone(base::TerminationStatus status) override; 164 void RenderProcessGone(base::TerminationStatus status) override;
165 void DocumentOnLoadCompletedInMainFrame() override;
165 bool OnMessageReceived(const IPC::Message& message) override; 166 bool OnMessageReceived(const IPC::Message& message) override;
166 bool OnMessageReceived(const IPC::Message& message, 167 bool OnMessageReceived(const IPC::Message& message,
167 RenderFrameHost* render_frame_host) override; 168 RenderFrameHost* render_frame_host) override;
168 169
169 // Exposes the protected web_contents() from WebContentsObserver. 170 // Exposes the protected web_contents() from WebContentsObserver.
170 WebContentsImpl* GetWebContents() const; 171 WebContentsImpl* GetWebContents() const;
171 172
172 gfx::Point GetScreenCoordinates(const gfx::Point& relative_position) const; 173 gfx::Point GetScreenCoordinates(const gfx::Point& relative_position) const;
173 174
174 // Helper to send messages to embedder. If this guest is not yet attached, 175 // Helper to send messages to embedder. If this guest is not yet attached,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 // Weak pointer used to ask GeolocationPermissionContext about geolocation 401 // Weak pointer used to ask GeolocationPermissionContext about geolocation
401 // permission. 402 // permission.
402 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 403 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
403 404
404 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 405 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
405 }; 406 };
406 407
407 } // namespace content 408 } // namespace content
408 409
409 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 410 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698