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 "components/data_use_measurement/core/data_use_ascriber.h" | |
| 6 | |
| 7 #include <utility> | |
| 8 | |
| 9 #include "base/memory/ptr_util.h" | |
| 10 #include "components/data_use_measurement/core/data_use_network_delegate.h" | |
| 11 | |
| 12 namespace data_use_measurement { | |
| 13 | |
| 14 std::unique_ptr<net::NetworkDelegate> DataUseAscriber::CreateNetworkDelegate( | |
| 15 std::unique_ptr<net::NetworkDelegate> wrapped_network_delegate) { | |
| 16 return base::MakeUnique<data_use_measurement::DataUseNetworkDelegate>( | |
| 17 std::move(wrapped_network_delegate), this); | |
| 18 } | |
| 19 | |
| 20 void DataUseAscriber::OnBeforeUrlRequest(net::URLRequest* request) {} | |
|
bengr
2016/09/23 21:21:13
It's hard to tell if theses are the right prototyp
Not at Google. Contact bengr
2016/09/23 23:18:10
These calls come from the network delegate, so not
| |
| 21 | |
| 22 void DataUseAscriber::OnBeforeRedirect(net::URLRequest* request, | |
| 23 const GURL& new_location) {} | |
| 24 | |
| 25 void DataUseAscriber::OnNetworkBytesSent(net::URLRequest* request, | |
| 26 int64_t bytes_sent) {} | |
| 27 | |
| 28 void DataUseAscriber::OnNetworkBytesReceived(net::URLRequest* request, | |
| 29 int64_t bytes_received) {} | |
| 30 | |
| 31 void DataUseAscriber::OnUrlRequestCompleted(net::URLRequest* request, | |
| 32 bool started) {} | |
| 33 | |
| 34 } // namespace data_use_measurement | |
| OLD | NEW |