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

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

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 #ifndef CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_
6 #define CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ 6 #define CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 #include "content/public/browser/web_contents_user_data.h" 10 #include "content/public/browser/web_contents_user_data.h"
(...skipping 21 matching lines...) Expand all
32 32
33 ~DataUseWebContentsObserver() override; 33 ~DataUseWebContentsObserver() override;
34 34
35 // WebContentsObserver implementation: 35 // WebContentsObserver implementation:
36 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; 36 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override;
37 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; 37 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override;
38 void DidStartNavigation( 38 void DidStartNavigation(
39 content::NavigationHandle* navigation_handle) override; 39 content::NavigationHandle* navigation_handle) override;
40 void ReadyToCommitNavigation( 40 void ReadyToCommitNavigation(
41 content::NavigationHandle* navigation_handle) override; 41 content::NavigationHandle* navigation_handle) override;
42 void DidRedirectNavigation(
43 content::NavigationHandle* navigation_handle) override;
44 42
45 private: 43 private:
46 friend class content::WebContentsUserData<DataUseWebContentsObserver>; 44 friend class content::WebContentsUserData<DataUseWebContentsObserver>;
47
48 DataUseWebContentsObserver(content::WebContents* web_contents, 45 DataUseWebContentsObserver(content::WebContents* web_contents,
49 ChromeDataUseAscriberService* service); 46 ChromeDataUseAscriberService* service);
50 ChromeDataUseAscriberService* const service_; 47 ChromeDataUseAscriberService* const service_;
51 48
52 DISALLOW_COPY_AND_ASSIGN(DataUseWebContentsObserver); 49 DISALLOW_COPY_AND_ASSIGN(DataUseWebContentsObserver);
53 }; 50 };
54 51
55 } // namespace data_use_measurement 52 } // namespace data_use_measurement
56 53
57 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ 54 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698