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

Side by Side Diff: content/renderer/browser_plugin/old/browser_plugin.h

Issue 10829219: Browser Plugin: Move to old namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix. Created 8 years, 4 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 #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
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_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/renderer/browser_plugin/old/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698