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_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
| 9 #include <memory> |
9 | 10 |
10 #include "base/macros.h" | 11 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 #include "extensions/browser/extension_registry_observer.h" | 15 #include "extensions/browser/extension_registry_observer.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 class BrowserContext; | 18 class BrowserContext; |
19 class NotificationDetails; | 19 class NotificationDetails; |
20 class NotificationSource; | 20 class NotificationSource; |
21 } | 21 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // The associated BrowserContext. | 88 // The associated BrowserContext. |
89 content::BrowserContext* browser_context_; | 89 content::BrowserContext* browser_context_; |
90 | 90 |
91 // Whether or not this is the first run for the profile. | 91 // Whether or not this is the first run for the profile. |
92 bool is_first_run_; | 92 bool is_first_run_; |
93 | 93 |
94 // The associated ExtensionPrefs. | 94 // The associated ExtensionPrefs. |
95 ExtensionPrefs* extension_prefs_; | 95 ExtensionPrefs* extension_prefs_; |
96 | 96 |
97 // The collection of ExternalInstallErrors. | 97 // The collection of ExternalInstallErrors. |
98 std::map<std::string, scoped_ptr<ExternalInstallError>> errors_; | 98 std::map<std::string, std::unique_ptr<ExternalInstallError>> errors_; |
99 | 99 |
100 std::set<std::string> shown_ids_; | 100 std::set<std::string> shown_ids_; |
101 | 101 |
102 // The error that is currently showing an alert dialog/bubble. | 102 // The error that is currently showing an alert dialog/bubble. |
103 ExternalInstallError* currently_visible_install_alert_; | 103 ExternalInstallError* currently_visible_install_alert_; |
104 | 104 |
105 content::NotificationRegistrar registrar_; | 105 content::NotificationRegistrar registrar_; |
106 | 106 |
107 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> | 107 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> |
108 extension_registry_observer_; | 108 extension_registry_observer_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(ExternalInstallManager); | 110 DISALLOW_COPY_AND_ASSIGN(ExternalInstallManager); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace extensions | 113 } // namespace extensions |
114 | 114 |
115 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_ | 115 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_ |
OLD | NEW |