OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_PAGE_LOAD_METRICS_BROWSER_METRICS_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef COMPONENTS_PAGE_LOAD_METRICS_BROWSER_METRICS_WEB_CONTENTS_OBSERVER_H_ |
6 #define COMPONENTS_PAGE_LOAD_METRICS_BROWSER_METRICS_WEB_CONTENTS_OBSERVER_H_ | 6 #define COMPONENTS_PAGE_LOAD_METRICS_BROWSER_METRICS_WEB_CONTENTS_OBSERVER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "base/time/time.h" | 13 #include "base/time/time.h" |
15 #include "components/page_load_metrics/browser/page_load_metrics_observer.h" | 14 #include "components/page_load_metrics/browser/page_load_metrics_observer.h" |
16 #include "components/page_load_metrics/common/page_load_timing.h" | 15 #include "components/page_load_metrics/common/page_load_timing.h" |
17 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
18 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
19 #include "content/public/browser/web_contents_user_data.h" | 18 #include "content/public/browser/web_contents_user_data.h" |
20 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
21 | 20 |
22 namespace content { | 21 namespace content { |
23 class NavigationHandle; | 22 class NavigationHandle; |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 std::vector<std::unique_ptr<PageLoadTracker>> aborted_provisional_loads_; | 292 std::vector<std::unique_ptr<PageLoadTracker>> aborted_provisional_loads_; |
294 | 293 |
295 std::unique_ptr<PageLoadTracker> committed_load_; | 294 std::unique_ptr<PageLoadTracker> committed_load_; |
296 | 295 |
297 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); | 296 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); |
298 }; | 297 }; |
299 | 298 |
300 } // namespace page_load_metrics | 299 } // namespace page_load_metrics |
301 | 300 |
302 #endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_METRICS_WEB_CONTENTS_OBSERVER_H_ | 301 #endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_METRICS_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |