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

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

Issue 2534023002: Create a DataUseRecorder instance for each page load in Chrome. (Closed)
Patch Set: Use emplace to insert; remove copy constructor Created 4 years 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/data_use_web_contents_observer.h" 5 #include "chrome/browser/data_use_measurement/data_use_web_contents_observer.h"
6 6
7 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service.h " 7 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service.h "
8 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service_f actory.h" 8 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service_f actory.h"
9 #include "content/public/browser/navigation_handle.h" 9 #include "content/public/browser/navigation_handle.h"
10 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void DataUseWebContentsObserver::DidStartNavigation( 65 void DataUseWebContentsObserver::DidStartNavigation(
66 content::NavigationHandle* navigation_handle) { 66 content::NavigationHandle* navigation_handle) {
67 service_->DidStartNavigation(navigation_handle); 67 service_->DidStartNavigation(navigation_handle);
68 } 68 }
69 69
70 void DataUseWebContentsObserver::ReadyToCommitNavigation( 70 void DataUseWebContentsObserver::ReadyToCommitNavigation(
71 content::NavigationHandle* navigation_handle) { 71 content::NavigationHandle* navigation_handle) {
72 service_->ReadyToCommitNavigation(navigation_handle); 72 service_->ReadyToCommitNavigation(navigation_handle);
73 } 73 }
74 74
75 void DataUseWebContentsObserver::DidRedirectNavigation(
76 content::NavigationHandle* navigation_handle) {
77 service_->DidRedirectNavigation(navigation_handle);
78 }
79
80 } // namespace data_use_measurement 75 } // namespace data_use_measurement
OLDNEW
« no previous file with comments | « chrome/browser/data_use_measurement/data_use_web_contents_observer.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698