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