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

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

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac 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 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_BROWSER_PLUGIN_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/threading/non_thread_safe.h" 9 #include "base/threading/non_thread_safe.h"
10 #include "content/public/renderer/render_process_observer.h" 10 #include "content/public/renderer/render_process_observer.h"
11 #include "ipc/ipc_sender.h" 11 #include "ipc/ipc_sender.h"
12 12
13 class RenderViewImpl;
14
15 namespace WebKit { 13 namespace WebKit {
16 class WebFrame; 14 class WebFrame;
17 struct WebPluginParams; 15 struct WebPluginParams;
18 } 16 }
19 17
20 namespace content { 18 namespace content {
21 19
22 class BrowserPlugin; 20 class BrowserPlugin;
21 class RenderViewImpl;
23 22
24 // BrowserPluginManager manages the routing of messages to the appropriate 23 // BrowserPluginManager manages the routing of messages to the appropriate
25 // BrowserPlugin object based on its instance ID. There is only one 24 // BrowserPlugin object based on its instance ID. There is only one
26 // BrowserPluginManager per renderer process, and it should only be accessed 25 // BrowserPluginManager per renderer process, and it should only be accessed
27 // by the render thread. 26 // by the render thread.
28 class CONTENT_EXPORT BrowserPluginManager : public IPC::Sender, 27 class CONTENT_EXPORT BrowserPluginManager : public IPC::Sender,
29 public RenderProcessObserver, 28 public RenderProcessObserver,
30 public base::NonThreadSafe { 29 public base::NonThreadSafe {
31 public: 30 public:
32 // Returns the one BrowserPluginManager for this process. 31 // Returns the one BrowserPluginManager for this process.
(...skipping 16 matching lines...) Expand all
49 BrowserPlugin* GetBrowserPlugin(int instance_id) const; 48 BrowserPlugin* GetBrowserPlugin(int instance_id) const;
50 49
51 protected: 50 protected:
52 IDMap<BrowserPlugin> instances_; 51 IDMap<BrowserPlugin> instances_;
53 int browser_plugin_counter_; 52 int browser_plugin_counter_;
54 }; 53 };
55 54
56 } // namespace content 55 } // namespace content
57 56
58 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ 57 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/test/render_view_fake_resources_test.h ('k') | content/renderer/device_orientation_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698