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

Side by Side Diff: chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc

Issue 2462983003: Move data use measurement to DataUseNetworkDelegate (Closed)
Patch Set: Addressed comments Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber.h" 5 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber.h"
6 6
7 #include "base/memory/ptr_util.h"
8 #include "components/data_use_measurement/content/chrome_url_request_classifier. h"
9 #include "components/data_use_measurement/core/url_request_classifier.h"
7 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
8 #include "content/public/browser/navigation_handle.h" 11 #include "content/public/browser/navigation_handle.h"
9 #include "content/public/browser/render_frame_host.h" 12 #include "content/public/browser/render_frame_host.h"
10 13
11 namespace data_use_measurement { 14 namespace data_use_measurement {
12 15
13 ChromeDataUseAscriber::ChromeDataUseAscriber() { 16 ChromeDataUseAscriber::ChromeDataUseAscriber() {
14 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); 17 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
15 } 18 }
16 19
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 59 }
57 60
58 void ChromeDataUseAscriber::DidRedirectMainFrameNavigation( 61 void ChromeDataUseAscriber::DidRedirectMainFrameNavigation(
59 GURL gurl, 62 GURL gurl,
60 int render_process_id, 63 int render_process_id,
61 int render_frame_id, 64 int render_frame_id,
62 void* navigation_handle) { 65 void* navigation_handle) {
63 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); 66 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
64 } 67 }
65 68
69 std::unique_ptr<URLRequestClassifier>
70 ChromeDataUseAscriber::CreateURLRequestClassifier() {
RyanSturm 2016/11/10 22:50:30 const method
Raj 2016/11/10 23:20:26 Done.
71 return base::MakeUnique<ChromeURLRequestClassifier>();
72 }
73
66 } // namespace data_use_measurement 74 } // namespace data_use_measurement
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698