Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber.h" | |
|
bengr
2016/09/01 00:16:55
Why is this in chrome? It's hard to tell from the
Not at Google. Contact bengr
2016/09/07 23:38:37
What are the alternatives? In the component? Didn'
bengr
2016/09/08 00:47:48
I think chrome is fine. Was wondering if it could
| |
| 6 | |
| 7 #include "content/public/browser/browser_thread.h" | |
| 8 #include "content/public/browser/navigation_handle.h" | |
| 9 #include "content/public/browser/render_frame_host.h" | |
| 10 | |
| 11 namespace data_use_measurement { | |
| 12 | |
| 13 ChromeDataUseAscriber::ChromeDataUseAscriber() { | |
| 14 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); | |
| 15 } | |
| 16 | |
| 17 ChromeDataUseAscriber::~ChromeDataUseAscriber() { | |
| 18 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); | |
| 19 } | |
| 20 | |
| 21 DataUseRecorder* ChromeDataUseAscriber::GetDataUseRecorder( | |
| 22 const net::URLRequest* request) { | |
| 23 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); | |
| 24 return nullptr; | |
| 25 } | |
| 26 | |
| 27 void ChromeDataUseAscriber::RenderFrameCreated(int render_process_id, | |
| 28 int render_frame_id, | |
| 29 int parent_render_process_id, | |
| 30 int parent_render_frame_id) { | |
| 31 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); | |
| 32 } | |
| 33 | |
| 34 void ChromeDataUseAscriber::RenderFrameDeleted(int render_process_id, | |
| 35 int render_frame_id, | |
| 36 int parent_render_process_id, | |
| 37 int parent_render_frame_id) { | |
| 38 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); | |
| 39 } | |
| 40 | |
| 41 void ChromeDataUseAscriber::DidStartMainFrameNavigation( | |
| 42 GURL gurl, | |
| 43 int render_process_id, | |
| 44 int render_frame_id, | |
| 45 void* navigation_handle) { | |
| 46 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); | |
| 47 } | |
| 48 | |
| 49 void ChromeDataUseAscriber::DidFinishMainFrameNavigation( | |
| 50 GURL gurl, | |
| 51 int render_process_id, | |
| 52 int render_frame_id, | |
| 53 bool is_same_page_navigation, | |
| 54 void* navigation_handle) { | |
| 55 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); | |
| 56 } | |
| 57 | |
| 58 void ChromeDataUseAscriber::DidRedirectMainFrameNavigation( | |
| 59 GURL gurl, | |
| 60 int render_process_id, | |
| 61 int render_frame_id, | |
| 62 void* navigation_handle) { | |
| 63 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); | |
| 64 } | |
| 65 | |
| 66 } // namespace data_use_measurement | |
| OLD | NEW |