Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_ |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 | 31 |
| 32 class BrowserPluginGuest; | 32 class BrowserPluginGuest; |
| 33 class BrowserPluginHostFactory; | 33 class BrowserPluginHostFactory; |
| 34 class RenderProcessHostImpl; | 34 class RenderProcessHostImpl; |
| 35 class RenderWidgetHostImpl; | 35 class RenderWidgetHostImpl; |
| 36 class SiteInstance; | 36 class SiteInstance; |
| 37 class WebContents; | 37 class WebContents; |
| 38 class WebContentsImpl; | 38 class WebContentsImpl; |
| 39 struct NativeWebKeyboardEvent; | 39 struct NativeWebKeyboardEvent; |
| 40 | 40 |
| 41 // WARNING: BrowserPlugin could be loaded in an unblessed context, thus any new | |
|
Charlie Reis
2013/09/25 17:25:18
This part isn't quite right-- BrowserPlugins can't
guohui
2013/09/25 22:43:51
Done.
| |
| 42 // APIs must be guarded with process ID check to prevent abuse by normal | |
| 43 // renderer processes. | |
| 41 class CONTENT_EXPORT BrowserPluginGuestManager : | 44 class CONTENT_EXPORT BrowserPluginGuestManager : |
| 42 public base::SupportsUserData::Data { | 45 public base::SupportsUserData::Data { |
| 43 public: | 46 public: |
| 44 virtual ~BrowserPluginGuestManager(); | 47 virtual ~BrowserPluginGuestManager(); |
| 45 | 48 |
| 46 static BrowserPluginGuestManager* Create(); | 49 static BrowserPluginGuestManager* Create(); |
| 47 | 50 |
| 48 // Overrides factory for testing. Default (NULL) value indicates regular | 51 // Overrides factory for testing. Default (NULL) value indicates regular |
| 49 // (non-test) environment. | 52 // (non-test) environment. |
| 50 static void set_factory_for_testing(BrowserPluginHostFactory* factory) { | 53 static void set_factory_for_testing(BrowserPluginHostFactory* factory) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 GuestInstanceMap guest_web_contents_by_instance_id_; | 131 GuestInstanceMap guest_web_contents_by_instance_id_; |
| 129 int next_instance_id_; | 132 int next_instance_id_; |
| 130 | 133 |
| 131 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestManager); | 134 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestManager); |
| 132 }; | 135 }; |
| 133 | 136 |
| 134 } // namespace content | 137 } // namespace content |
| 135 | 138 |
| 136 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_MANAGER_H_ | 139 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_MANAGER_H_ |
| 137 | 140 |
| OLD | NEW |