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

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

Issue 2798953002: [PageLoadMetrics] Keep track of Ad Sizes on Pages (Closed)
Patch Set: Address comments from PS22 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // A resource request started on the IO thread. This method is invoked on 78 // A resource request started on the IO thread. This method is invoked on
79 // the UI thread. 79 // the UI thread.
80 void OnRequestStarted(const content::GlobalRequestID& request_id, 80 void OnRequestStarted(const content::GlobalRequestID& request_id,
81 content::ResourceType resource_type, 81 content::ResourceType resource_type,
82 base::TimeTicks creation_time); 82 base::TimeTicks creation_time);
83 83
84 // A resource request completed on the IO thread. This method is invoked on 84 // A resource request completed on the IO thread. This method is invoked on
85 // the UI thread. 85 // the UI thread.
86 void OnRequestComplete( 86 void OnRequestComplete(
87 const GURL& url,
88 int frame_tree_node_id,
87 const content::GlobalRequestID& request_id, 89 const content::GlobalRequestID& request_id,
88 content::ResourceType resource_type, 90 content::ResourceType resource_type,
89 bool was_cached, 91 bool was_cached,
90 std::unique_ptr<data_reduction_proxy::DataReductionProxyData> 92 std::unique_ptr<data_reduction_proxy::DataReductionProxyData>
91 data_reduction_proxy_data, 93 data_reduction_proxy_data,
92 int64_t raw_body_bytes, 94 int64_t raw_body_bytes,
93 int64_t original_content_length, 95 int64_t original_content_length,
94 base::TimeTicks creation_time); 96 base::TimeTicks creation_time);
95 97
96 // Invoked on navigations where a navigation delay was added by the 98 // Invoked on navigations where a navigation delay was added by the
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 183
182 // Has the MWCO observed at least one navigation? 184 // Has the MWCO observed at least one navigation?
183 bool has_navigated_; 185 bool has_navigated_;
184 186
185 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); 187 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver);
186 }; 188 };
187 189
188 } // namespace page_load_metrics 190 } // namespace page_load_metrics
189 191
190 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ 192 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698