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

Side by Side Diff: extensions/browser/guest_view/guest_view_manager.h

Issue 464533002: Move guest_view to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Spacing are fixed. Created 6 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698