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

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

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Major changes to clean up deadlock & other issues 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
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 struct BrowserPlugin_SwapInfo;
14 struct BrowserPluginMsg_UpdateRect_Params;
scshunt 2012/08/12 01:42:45 Unnecessary now that their use has been moved to t
scshunt 2012/08/17 17:30:28 Done.
13 class RenderViewImpl; 15 class RenderViewImpl;
14 16
15 namespace WebKit { 17 namespace WebKit {
16 class WebFrame; 18 class WebFrame;
17 struct WebPluginParams; 19 struct WebPluginParams;
18 } 20 }
19 21
20 namespace content { 22 namespace content {
21 23
22 class BrowserPlugin; 24 class BrowserPlugin;
(...skipping 13 matching lines...) Expand all
36 virtual ~BrowserPluginManager(); 38 virtual ~BrowserPluginManager();
37 39
38 // Creates a new BrowserPlugin object with a unique identifier. 40 // Creates a new BrowserPlugin object with a unique identifier.
39 // BrowserPlugin is responsible for associating itself with the 41 // BrowserPlugin is responsible for associating itself with the
40 // BrowserPluginManager via AddBrowserPlugin. When it is destroyed, it is 42 // BrowserPluginManager via AddBrowserPlugin. When it is destroyed, it is
41 // responsible for removing its association via RemoveBrowserPlugin. 43 // responsible for removing its association via RemoveBrowserPlugin.
42 virtual BrowserPlugin* CreateBrowserPlugin( 44 virtual BrowserPlugin* CreateBrowserPlugin(
43 RenderViewImpl* render_view, 45 RenderViewImpl* render_view,
44 WebKit::WebFrame* frame, 46 WebKit::WebFrame* frame,
45 const WebKit::WebPluginParams& params) = 0; 47 const WebKit::WebPluginParams& params) = 0;
48 virtual void TextureProviderIsReady(int instance_id) = 0;
scshunt 2012/08/12 01:42:45 This isn't the best name. I wonder if I can improv
scshunt 2012/08/17 17:30:28 Done.
46 49
47 void AddBrowserPlugin(int instance_id, BrowserPlugin* browser_plugin); 50 void AddBrowserPlugin(int instance_id, BrowserPlugin* browser_plugin);
48 void RemoveBrowserPlugin(int instance_id); 51 void RemoveBrowserPlugin(int instance_id);
49 BrowserPlugin* GetBrowserPlugin(int instance_id) const; 52 BrowserPlugin* GetBrowserPlugin(int instance_id) const;
50 53
51 protected: 54 protected:
52 IDMap<BrowserPlugin> instances_; 55 IDMap<BrowserPlugin> instances_;
53 int browser_plugin_counter_; 56 int browser_plugin_counter_;
57
54 }; 58 };
55 59
56 } // namespace content 60 } // namespace content
57 61
58 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ 62 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698