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 #include <vector> | 10 #include <vector> |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // Messages sent out to the renderer that have not been acknowledged yet. | 190 // Messages sent out to the renderer that have not been acknowledged yet. |
191 std::set<int> unacked_messages_; | 191 std::set<int> unacked_messages_; |
192 | 192 |
193 content::NotificationRegistrar registrar_; | 193 content::NotificationRegistrar registrar_; |
194 | 194 |
195 ExtensionFunctionDispatcher extension_function_dispatcher_; | 195 ExtensionFunctionDispatcher extension_function_dispatcher_; |
196 | 196 |
197 // The type of view being hosted. | 197 // The type of view being hosted. |
198 ViewType extension_host_type_; | 198 ViewType extension_host_type_; |
199 | 199 |
200 // Used to measure how long it's been since the host was created. | 200 // Measures how long since the initial URL started loading. |
201 base::ElapsedTimer since_created_; | 201 scoped_ptr<base::ElapsedTimer> load_start_; |
202 | 202 |
203 ObserverList<ExtensionHostObserver> observer_list_; | 203 ObserverList<ExtensionHostObserver> observer_list_; |
204 | 204 |
205 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 205 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
206 }; | 206 }; |
207 | 207 |
208 } // namespace extensions | 208 } // namespace extensions |
209 | 209 |
210 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 210 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
OLD | NEW |