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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest_manager.h

Issue 12612005: Revert 186627 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // A BrowserPluginGuestManager serves as a message router to BrowserPluginGuests 5 // A BrowserPluginGuestManager serves as a message router to BrowserPluginGuests
6 // for all guests within a given profile. 6 // for all guests within a given profile.
7 // Messages are routed to a particular guest instance based on an instance_id. 7 // Messages are routed to a particular guest instance based on an instance_id.
8 8
9 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_MANAGER_H_ 9 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_MANAGER_H_
10 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_MANAGER_H_ 10 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_MANAGER_H_
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/supports_user_data.h" 13 #include "base/supports_user_data.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "ipc/ipc_message.h" 15 #include "ipc/ipc_message.h"
16 16
17 struct BrowserPluginHostMsg_CreateGuest_Params; 17 struct BrowserPluginHostMsg_CreateGuest_Params;
18 struct BrowserPluginHostMsg_ResizeGuest_Params; 18 struct BrowserPluginHostMsg_ResizeGuest_Params;
19 class GURL; 19 class GURL;
20 20
21 namespace gfx { 21 namespace gfx {
22 class Point; 22 class Point;
23 } 23 }
24 24
25 namespace gpu {
26 struct Mailbox;
27 }
28
29 namespace IPC { 25 namespace IPC {
30 class Message; 26 class Message;
31 } // namespace IPC 27 } // namespace IPC
32 28
33 namespace content { 29 namespace content {
34 30
35 class BrowserPluginGuest; 31 class BrowserPluginGuest;
36 class BrowserPluginHostFactory; 32 class BrowserPluginHostFactory;
37 class RenderProcessHostImpl; 33 class RenderProcessHostImpl;
38 class SiteInstance; 34 class SiteInstance;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 BrowserPluginGuest* guest); 85 BrowserPluginGuest* guest);
90 86
91 // Returns an existing SiteInstance if the current profile has a guest of the 87 // Returns an existing SiteInstance if the current profile has a guest of the
92 // given |guest_site|. 88 // given |guest_site|.
93 SiteInstance* GetGuestSiteInstance(const GURL& guest_site); 89 SiteInstance* GetGuestSiteInstance(const GURL& guest_site);
94 90
95 // Message handlers. 91 // Message handlers.
96 void OnUnhandledSwapBuffersACK(int instance_id, 92 void OnUnhandledSwapBuffersACK(int instance_id,
97 int route_id, 93 int route_id,
98 int gpu_host_id, 94 int gpu_host_id,
99 const gpu::Mailbox& mailbox_name, 95 const std::string& mailbox_name,
100 uint32 sync_point); 96 uint32 sync_point);
101 97
102 // Static factory instance (always NULL outside of tests). 98 // Static factory instance (always NULL outside of tests).
103 static BrowserPluginHostFactory* factory_; 99 static BrowserPluginHostFactory* factory_;
104 100
105 // Contains guests' WebContents, mapping from their instance ids. 101 // Contains guests' WebContents, mapping from their instance ids.
106 typedef std::map<int, WebContentsImpl*> GuestInstanceMap; 102 typedef std::map<int, WebContentsImpl*> GuestInstanceMap;
107 GuestInstanceMap guest_web_contents_by_instance_id_; 103 GuestInstanceMap guest_web_contents_by_instance_id_;
108 int next_instance_id_; 104 int next_instance_id_;
109 105
110 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestManager); 106 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestManager);
111 }; 107 };
112 108
113 } // namespace content 109 } // namespace content
114 110
115 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_MANAGER_H_ 111 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_MANAGER_H_
116 112
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/browser_plugin/browser_plugin_guest_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698