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 CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ |
6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ | 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_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> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void NavigationStopped() override; | 88 void NavigationStopped() override; |
89 void OnInputEvent(const blink::WebInputEvent& event) override; | 89 void OnInputEvent(const blink::WebInputEvent& event) override; |
90 void WasShown() override; | 90 void WasShown() override; |
91 void WasHidden() override; | 91 void WasHidden() override; |
92 void RenderProcessGone(base::TerminationStatus status) override; | 92 void RenderProcessGone(base::TerminationStatus status) override; |
93 void RenderViewHostChanged(content::RenderViewHost* old_host, | 93 void RenderViewHostChanged(content::RenderViewHost* old_host, |
94 content::RenderViewHost* new_host) override; | 94 content::RenderViewHost* new_host) override; |
95 void MediaStartedPlaying( | 95 void MediaStartedPlaying( |
96 const content::WebContentsObserver::MediaPlayerInfo& video_type, | 96 const content::WebContentsObserver::MediaPlayerInfo& video_type, |
97 const content::WebContentsObserver::MediaPlayerId& id) override; | 97 const content::WebContentsObserver::MediaPlayerId& id) override; |
| 98 void WebContentsDestroyed() override; |
98 | 99 |
99 // These methods are forwarded from the MetricsNavigationThrottle. | 100 // These methods are forwarded from the MetricsNavigationThrottle. |
100 void WillStartNavigationRequest(content::NavigationHandle* navigation_handle); | 101 void WillStartNavigationRequest(content::NavigationHandle* navigation_handle); |
101 void WillProcessNavigationResponse( | 102 void WillProcessNavigationResponse( |
102 content::NavigationHandle* navigation_handle); | 103 content::NavigationHandle* navigation_handle); |
103 | 104 |
104 // A resource request started on the IO thread. This method is invoked on | 105 // A resource request started on the IO thread. This method is invoked on |
105 // the UI thread. | 106 // the UI thread. |
106 void OnRequestStarted(const content::GlobalRequestID& request_id, | 107 void OnRequestStarted(const content::GlobalRequestID& request_id, |
107 content::ResourceType resource_type, | 108 content::ResourceType resource_type, |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 base::ObserverList<TestingObserver> testing_observers_; | 228 base::ObserverList<TestingObserver> testing_observers_; |
228 content::WebContentsFrameBindingSet<mojom::PageLoadMetrics> | 229 content::WebContentsFrameBindingSet<mojom::PageLoadMetrics> |
229 page_load_metrics_binding_; | 230 page_load_metrics_binding_; |
230 | 231 |
231 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); | 232 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); |
232 }; | 233 }; |
233 | 234 |
234 } // namespace page_load_metrics | 235 } // namespace page_load_metrics |
235 | 236 |
236 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ | 237 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |