Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: chrome/browser/page_load_metrics/metrics_web_contents_observer.h

Issue 2857963002: Revert "[PageLoadMetrics] Keep track of Ad Sizes on Pages" (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // A resource request started on the IO thread. This method is invoked on 100 // A resource request started on the IO thread. This method is invoked on
101 // the UI thread. 101 // the UI thread.
102 void OnRequestStarted(const content::GlobalRequestID& request_id, 102 void OnRequestStarted(const content::GlobalRequestID& request_id,
103 content::ResourceType resource_type, 103 content::ResourceType resource_type,
104 base::TimeTicks creation_time); 104 base::TimeTicks creation_time);
105 105
106 // A resource request completed on the IO thread. This method is invoked on 106 // A resource request completed on the IO thread. This method is invoked on
107 // the UI thread. 107 // the UI thread.
108 void OnRequestComplete( 108 void OnRequestComplete(
109 const GURL& url,
110 int frame_tree_node_id,
111 const content::GlobalRequestID& request_id, 109 const content::GlobalRequestID& request_id,
112 content::ResourceType resource_type, 110 content::ResourceType resource_type,
113 bool was_cached, 111 bool was_cached,
114 std::unique_ptr<data_reduction_proxy::DataReductionProxyData> 112 std::unique_ptr<data_reduction_proxy::DataReductionProxyData>
115 data_reduction_proxy_data, 113 data_reduction_proxy_data,
116 int64_t raw_body_bytes, 114 int64_t raw_body_bytes,
117 int64_t original_content_length, 115 int64_t original_content_length,
118 base::TimeTicks creation_time); 116 base::TimeTicks creation_time);
119 117
120 // Invoked on navigations where a navigation delay was added by the 118 // Invoked on navigations where a navigation delay was added by the
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 bool has_navigated_; 210 bool has_navigated_;
213 211
214 base::ObserverList<TestingObserver> testing_observers_; 212 base::ObserverList<TestingObserver> testing_observers_;
215 213
216 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); 214 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver);
217 }; 215 };
218 216
219 } // namespace page_load_metrics 217 } // namespace page_load_metrics
220 218
221 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ 219 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698