| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 content::NavigationHandle* navigation_handle) override; | 58 content::NavigationHandle* navigation_handle) override; |
| 59 void DidRedirectNavigation( | 59 void DidRedirectNavigation( |
| 60 content::NavigationHandle* navigation_handle) override; | 60 content::NavigationHandle* navigation_handle) override; |
| 61 void NavigationStopped() override; | 61 void NavigationStopped() override; |
| 62 void OnInputEvent(const blink::WebInputEvent& event) override; | 62 void OnInputEvent(const blink::WebInputEvent& event) override; |
| 63 void WasShown() override; | 63 void WasShown() override; |
| 64 void WasHidden() override; | 64 void WasHidden() override; |
| 65 void RenderProcessGone(base::TerminationStatus status) override; | 65 void RenderProcessGone(base::TerminationStatus status) override; |
| 66 void RenderViewHostChanged(content::RenderViewHost* old_host, | 66 void RenderViewHostChanged(content::RenderViewHost* old_host, |
| 67 content::RenderViewHost* new_host) override; | 67 content::RenderViewHost* new_host) override; |
| 68 void MediaStartedPlaying( |
| 69 const content::WebContentsObserver::MediaPlayerInfo& video_type, |
| 70 const content::WebContentsObserver::MediaPlayerId& id) override; |
| 68 | 71 |
| 69 // These methods are forwarded from the MetricsNavigationThrottle. | 72 // These methods are forwarded from the MetricsNavigationThrottle. |
| 70 void WillStartNavigationRequest(content::NavigationHandle* navigation_handle); | 73 void WillStartNavigationRequest(content::NavigationHandle* navigation_handle); |
| 71 void WillProcessNavigationResponse( | 74 void WillProcessNavigationResponse( |
| 72 content::NavigationHandle* navigation_handle); | 75 content::NavigationHandle* navigation_handle); |
| 73 | 76 |
| 74 // A resource request completed on the IO thread. This method is invoked on | 77 // A resource request completed on the IO thread. This method is invoked on |
| 75 // the UI thread. | 78 // the UI thread. |
| 76 void OnRequestComplete(const content::GlobalRequestID& request_id, | 79 void OnRequestComplete(const content::GlobalRequestID& request_id, |
| 77 content::ResourceType resource_type, | 80 content::ResourceType resource_type, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 165 |
| 163 // Has the MWCO observed at least one navigation? | 166 // Has the MWCO observed at least one navigation? |
| 164 bool has_navigated_; | 167 bool has_navigated_; |
| 165 | 168 |
| 166 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); | 169 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); |
| 167 }; | 170 }; |
| 168 | 171 |
| 169 } // namespace page_load_metrics | 172 } // namespace page_load_metrics |
| 170 | 173 |
| 171 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ | 174 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |