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

Unified Diff: content/browser/plugin_process_host.h

Issue 11235068: Move the remaning files in content\common to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/plugin_loader_posix_unittest.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_process_host.h
===================================================================
--- content/browser/plugin_process_host.h (revision 163632)
+++ content/browser/plugin_process_host.h (working copy)
@@ -22,12 +22,6 @@
#include "webkit/plugins/webplugininfo.h"
#include "ui/gfx/native_widget_types.h"
-class BrowserChildProcessHostImpl;
-
-namespace content {
-class ResourceContext;
-}
-
namespace gfx {
class Rect;
}
@@ -36,6 +30,10 @@
struct ChannelHandle;
}
+namespace content {
+class BrowserChildProcessHostImpl;
+class ResourceContext;
+
// Represents the browser side of the browser <--> plugin communication
// channel. Different plugins run in their own process, but multiple instances
// of the same plugin run in the same process. There will be one
@@ -44,9 +42,8 @@
// starting the plugin process when a plugin is created that doesn't already
// have a process. After that, most of the communication is directly between
// the renderer and plugin processes.
-class CONTENT_EXPORT PluginProcessHost
- : public content::BrowserChildProcessHostDelegate,
- public IPC::Sender {
+class CONTENT_EXPORT PluginProcessHost : public BrowserChildProcessHostDelegate,
+ public IPC::Sender {
public:
class Client {
public:
@@ -54,7 +51,7 @@
// the channel.
virtual int ID() = 0;
// Returns the resource context for the renderer requesting the channel.
- virtual content::ResourceContext* GetResourceContext() = 0;
+ virtual ResourceContext* GetResourceContext() = 0;
virtual bool OffTheRecord() = 0;
virtual void SetPluginInfo(const webkit::WebPluginInfo& info) = 0;
virtual void OnFoundPluginProcessHost(PluginProcessHost* host) = 0;
@@ -90,8 +87,7 @@
void OpenChannelToPlugin(Client* client);
// Cancels all pending channel requests for the given resource context.
- static void CancelPendingRequestsForResourceContext(
- content::ResourceContext* context);
+ static void CancelPendingRequestsForResourceContext(ResourceContext* context);
// This function is called to cancel pending requests to open new channels.
void CancelPendingRequest(Client* client);
@@ -183,11 +179,13 @@
};
class PluginProcessHostIterator
- : public content::BrowserChildProcessHostTypeIterator<PluginProcessHost> {
+ : public BrowserChildProcessHostTypeIterator<PluginProcessHost> {
public:
PluginProcessHostIterator()
- : content::BrowserChildProcessHostTypeIterator<PluginProcessHost>(
- content::PROCESS_TYPE_PLUGIN) {}
+ : BrowserChildProcessHostTypeIterator<PluginProcessHost>(
+ PROCESS_TYPE_PLUGIN) {}
};
+} // namespace content
+
#endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_
« no previous file with comments | « content/browser/plugin_loader_posix_unittest.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698