| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "content/public/common/view_types.h" | 15 #include "content/public/common/view_types.h" |
| 16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
| 18 | 18 |
| 19 class Browser; | 19 class Browser; |
| 20 class BrowsingInstance; | 20 class BrowsingInstance; |
| 21 class Extension; | 21 class Extension; |
| 22 class ExtensionHost; | 22 class ExtensionHost; |
| 23 class GURL; | 23 class GURL; |
| 24 class Profile; | 24 class Profile; |
| 25 class RenderProcessHost; | |
| 26 class RenderViewHost; | 25 class RenderViewHost; |
| 27 class SiteInstance; | 26 class SiteInstance; |
| 28 | 27 |
| 29 // Manages dynamic state of running Chromium extensions. There is one instance | 28 // Manages dynamic state of running Chromium extensions. There is one instance |
| 30 // of this class per Profile. OTR Profiles have a separate instance that keeps | 29 // of this class per Profile. OTR Profiles have a separate instance that keeps |
| 31 // track of split-mode extensions only. | 30 // track of split-mode extensions only. |
| 32 class ExtensionProcessManager : public content::NotificationObserver { | 31 class ExtensionProcessManager : public content::NotificationObserver { |
| 33 public: | 32 public: |
| 34 static ExtensionProcessManager* Create(Profile* profile); | 33 static ExtensionProcessManager* Create(Profile* profile); |
| 35 virtual ~ExtensionProcessManager(); | 34 virtual ~ExtensionProcessManager(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // Close the given |host| iff it's a background page. | 129 // Close the given |host| iff it's a background page. |
| 131 void CloseBackgroundHost(ExtensionHost* host); | 130 void CloseBackgroundHost(ExtensionHost* host); |
| 132 | 131 |
| 133 // Excludes background page. | 132 // Excludes background page. |
| 134 bool HasVisibleViews(const std::string& extension_id); | 133 bool HasVisibleViews(const std::string& extension_id); |
| 135 | 134 |
| 136 DISALLOW_COPY_AND_ASSIGN(ExtensionProcessManager); | 135 DISALLOW_COPY_AND_ASSIGN(ExtensionProcessManager); |
| 137 }; | 136 }; |
| 138 | 137 |
| 139 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ | 138 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ |
| OLD | NEW |