| OLD | NEW |
| 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. It has a | 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a |
| 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The | 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // WebContentsObserver implementation. | 150 // WebContentsObserver implementation. |
| 151 virtual void DidCommitProvisionalLoadForFrame( | 151 virtual void DidCommitProvisionalLoadForFrame( |
| 152 int64 frame_id, | 152 int64 frame_id, |
| 153 bool is_main_frame, | 153 bool is_main_frame, |
| 154 const GURL& url, | 154 const GURL& url, |
| 155 PageTransition transition_type, | 155 PageTransition transition_type, |
| 156 RenderViewHost* render_view_host) OVERRIDE; | 156 RenderViewHost* render_view_host) OVERRIDE; |
| 157 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; | 157 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; |
| 158 | 158 |
| 159 virtual void RenderViewReady() OVERRIDE; | 159 virtual void RenderViewReady() OVERRIDE; |
| 160 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 160 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
| 161 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 161 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 162 | 162 |
| 163 // WebContentsDelegate implementation. | 163 // WebContentsDelegate implementation. |
| 164 | 164 |
| 165 virtual bool AddMessageToConsole(WebContents* source, | 165 virtual bool AddMessageToConsole(WebContents* source, |
| 166 int32 level, | 166 int32 level, |
| 167 const string16& message, | 167 const string16& message, |
| 168 int32 line_no, | 168 int32 line_no, |
| 169 const string16& source_id) OVERRIDE; | 169 const string16& source_id) OVERRIDE; |
| 170 // If a new window is created with target="_blank" and rel="noreferrer", then | 170 // If a new window is created with target="_blank" and rel="noreferrer", then |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 std::queue<IPC::Message*> pending_messages_; | 488 std::queue<IPC::Message*> pending_messages_; |
| 489 | 489 |
| 490 scoped_ptr<BrowserPluginGuestDelegate> delegate_; | 490 scoped_ptr<BrowserPluginGuestDelegate> delegate_; |
| 491 | 491 |
| 492 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 492 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 493 }; | 493 }; |
| 494 | 494 |
| 495 } // namespace content | 495 } // namespace content |
| 496 | 496 |
| 497 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 497 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |