| 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 EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_ | 5 #ifndef EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_ |
| 6 #define EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_ | 6 #define EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 bool is_loading_; | 168 bool is_loading_; |
| 169 | 169 |
| 170 // The browser_context for which the scripts managed here are installed. | 170 // The browser_context for which the scripts managed here are installed. |
| 171 content::BrowserContext* browser_context_; | 171 content::BrowserContext* browser_context_; |
| 172 | 172 |
| 173 // ID of the host that owns these scripts, if any. This is only set to a | 173 // ID of the host that owns these scripts, if any. This is only set to a |
| 174 // non-empty value for declarative user script shared memory regions. | 174 // non-empty value for declarative user script shared memory regions. |
| 175 HostID host_id_; | 175 HostID host_id_; |
| 176 | 176 |
| 177 // The associated observers. | 177 // The associated observers. |
| 178 ObserverList<Observer> observers_; | 178 base::ObserverList<Observer> observers_; |
| 179 | 179 |
| 180 base::WeakPtrFactory<UserScriptLoader> weak_factory_; | 180 base::WeakPtrFactory<UserScriptLoader> weak_factory_; |
| 181 | 181 |
| 182 DISALLOW_COPY_AND_ASSIGN(UserScriptLoader); | 182 DISALLOW_COPY_AND_ASSIGN(UserScriptLoader); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 } // namespace extensions | 185 } // namespace extensions |
| 186 | 186 |
| 187 #endif // EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_ | 187 #endif // EXTENSIONS_BROWSER_USER_SCRIPT_LOADER_H_ |
| OLD | NEW |