| 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_EXTENSION_HOST_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // used to measure the responsiveness of UI. For example, it's important to | 202 // used to measure the responsiveness of UI. For example, it's important to |
| 203 // keep this as low as possible for popups. Contrast this to |load_start_|, | 203 // keep this as low as possible for popups. Contrast this to |load_start_|, |
| 204 // for which a low value does not necessarily mean a responsive UI, as | 204 // for which a low value does not necessarily mean a responsive UI, as |
| 205 // ExtensionHosts may sit in an ExtensionHostQueue for a long time. | 205 // ExtensionHosts may sit in an ExtensionHostQueue for a long time. |
| 206 base::ElapsedTimer create_start_; | 206 base::ElapsedTimer create_start_; |
| 207 | 207 |
| 208 // Measures how long since the initial URL started loading. This timer is | 208 // Measures how long since the initial URL started loading. This timer is |
| 209 // started only once the ExtensionHost has exited the ExtensionHostQueue. | 209 // started only once the ExtensionHost has exited the ExtensionHostQueue. |
| 210 scoped_ptr<base::ElapsedTimer> load_start_; | 210 scoped_ptr<base::ElapsedTimer> load_start_; |
| 211 | 211 |
| 212 ObserverList<ExtensionHostObserver> observer_list_; | 212 base::ObserverList<ExtensionHostObserver> observer_list_; |
| 213 ObserverList<DeferredStartRenderHostObserver> | 213 base::ObserverList<DeferredStartRenderHostObserver> |
| 214 deferred_start_render_host_observer_list_; | 214 deferred_start_render_host_observer_list_; |
| 215 | 215 |
| 216 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 216 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 } // namespace extensions | 219 } // namespace extensions |
| 220 | 220 |
| 221 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 221 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
| OLD | NEW |