| 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_USER_SCRIPT_LOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Whether or not we are currently loading. | 161 // Whether or not we are currently loading. |
| 162 bool is_loading_; | 162 bool is_loading_; |
| 163 | 163 |
| 164 // The profile for which the scripts managed here are installed. | 164 // The profile for which the scripts managed here are installed. |
| 165 Profile* profile_; | 165 Profile* profile_; |
| 166 | 166 |
| 167 // ID of the extension that owns these scripts, if any. This is only set to a | 167 // ID of the extension that owns these scripts, if any. This is only set to a |
| 168 // non-empty value for declarative user script shared memory regions. | 168 // non-empty value for declarative user script shared memory regions. |
| 169 ExtensionId owner_extension_id_; | 169 ExtensionId owner_extension_id_; |
| 170 | 170 |
| 171 base::WeakPtrFactory<UserScriptLoader> weak_factory_; | |
| 172 | |
| 173 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> | 171 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> |
| 174 extension_registry_observer_; | 172 extension_registry_observer_; |
| 175 | 173 |
| 174 base::WeakPtrFactory<UserScriptLoader> weak_factory_; |
| 175 |
| 176 DISALLOW_COPY_AND_ASSIGN(UserScriptLoader); | 176 DISALLOW_COPY_AND_ASSIGN(UserScriptLoader); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace extensions | 179 } // namespace extensions |
| 180 | 180 |
| 181 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_ | 181 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_ |
| OLD | NEW |