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 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_H_ |
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_H_ |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "content/renderer/render_view_impl.h" | 9 #include "content/renderer/render_view_impl.h" |
10 #include "ipc/ipc_channel_handle.h" | 10 #include "ipc/ipc_channel_handle.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" |
13 #include "ui/gfx/size.h" | 13 #include "ui/gfx/size.h" |
14 #include "webkit/plugins/webview_plugin.h" | 14 #include "webkit/plugins/webview_plugin.h" |
15 | 15 |
16 namespace content { | |
17 class RenderView; | |
18 } | |
19 | |
20 namespace WebKit { | 16 namespace WebKit { |
21 class WebPlugin; | 17 class WebPlugin; |
22 } | 18 } |
23 | 19 |
| 20 namespace content { |
| 21 |
| 22 class RenderView; |
| 23 |
| 24 namespace old { |
| 25 |
24 // A browser plugin is a plugin container that hosts an out-of-process "guest" | 26 // A browser plugin is a plugin container that hosts an out-of-process "guest" |
25 // RenderView. Loading up a new process, creating a new RenderView, navigating | 27 // RenderView. Loading up a new process, creating a new RenderView, navigating |
26 // to a given URL, and establishing a guest-to-embedder channel can take | 28 // to a given URL, and establishing a guest-to-embedder channel can take |
27 // hundreds of milliseconds. Furthermore, a RenderView's associated browser-side | 29 // hundreds of milliseconds. Furthermore, a RenderView's associated browser-side |
28 // WebContents, RenderViewHost, and SiteInstance must be created and accessed on | 30 // WebContents, RenderViewHost, and SiteInstance must be created and accessed on |
29 // the UI thread of the browser process. | 31 // the UI thread of the browser process. |
30 // | 32 // |
31 // To avoid blocking the embedder RenderView and to avoid introducing the | 33 // To avoid blocking the embedder RenderView and to avoid introducing the |
32 // potential for deadlock, BrowserPlugin attaches a placeholder that takes | 34 // potential for deadlock, BrowserPlugin attaches a placeholder that takes |
33 // place of the guest RenderView until the guest has established a connection | 35 // place of the guest RenderView until the guest has established a connection |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 81 |
80 RenderViewImpl* render_view_; | 82 RenderViewImpl* render_view_; |
81 WebKit::WebPluginParams plugin_params_; | 83 WebKit::WebPluginParams plugin_params_; |
82 webkit::WebViewPlugin* placeholder_; | 84 webkit::WebViewPlugin* placeholder_; |
83 webkit::ppapi::WebPluginImpl* plugin_; | 85 webkit::ppapi::WebPluginImpl* plugin_; |
84 int id_; | 86 int id_; |
85 | 87 |
86 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 88 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
87 }; | 89 }; |
88 | 90 |
| 91 } // namespace old |
| 92 } // namespace content |
| 93 |
89 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_H_ | 94 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_H_ |
OLD | NEW |