OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ |
6 #define CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "content/public/browser/browser_plugin_guest_manager.h" | 13 #include "content/public/browser/browser_plugin_guest_manager.h" |
14 #include "content/public/browser/site_instance.h" | 14 #include "content/public/browser/site_instance.h" |
15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
16 | 16 |
17 class GuestViewBase; | |
18 class GuestViewManagerFactory; | |
19 class GURL; | 17 class GURL; |
20 | 18 |
21 namespace content { | 19 namespace content { |
22 class BrowserContext; | 20 class BrowserContext; |
23 class WebContents; | 21 class WebContents; |
24 } // namespace content | 22 } // namespace content |
25 | 23 |
| 24 namespace extensions{ |
| 25 class GuestViewBase; |
| 26 class GuestViewManagerFactory; |
| 27 |
26 class GuestViewManager : public content::BrowserPluginGuestManager, | 28 class GuestViewManager : public content::BrowserPluginGuestManager, |
27 public base::SupportsUserData::Data { | 29 public base::SupportsUserData::Data { |
28 public: | 30 public: |
29 explicit GuestViewManager(content::BrowserContext* context); | 31 explicit GuestViewManager(content::BrowserContext* context); |
30 virtual ~GuestViewManager(); | 32 virtual ~GuestViewManager(); |
31 | 33 |
32 static GuestViewManager* FromBrowserContext(content::BrowserContext* context); | 34 static GuestViewManager* FromBrowserContext(content::BrowserContext* context); |
33 | 35 |
34 // Overrides factory for testing. Default (NULL) value indicates regular | 36 // Overrides factory for testing. Default (NULL) value indicates regular |
35 // (non-test) environment. | 37 // (non-test) environment. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 int last_instance_id_removed_; | 115 int last_instance_id_removed_; |
114 // The remaining instance IDs that are greater than | 116 // The remaining instance IDs that are greater than |
115 // |last_instance_id_removed_| are kept here. | 117 // |last_instance_id_removed_| are kept here. |
116 std::set<int> removed_instance_ids_; | 118 std::set<int> removed_instance_ids_; |
117 | 119 |
118 content::BrowserContext* context_; | 120 content::BrowserContext* context_; |
119 | 121 |
120 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); | 122 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); |
121 }; | 123 }; |
122 | 124 |
123 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ | 125 } // namespace extensions |
| 126 |
| 127 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ |
OLD | NEW |