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

Side by Side Diff: net/url_request/url_request_job.cc

Issue 1898603002: Move Network Quality Estimator files to //net/nqe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, removed //net/socket/OWNERS Created 4 years, 7 months 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
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/url_request/url_request_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
13 #include "base/power_monitor/power_monitor.h" 13 #include "base/power_monitor/power_monitor.h"
14 #include "base/profiler/scoped_tracker.h" 14 #include "base/profiler/scoped_tracker.h"
15 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "base/thread_task_runner_handle.h" 18 #include "base/thread_task_runner_handle.h"
19 #include "base/values.h" 19 #include "base/values.h"
20 #include "net/base/auth.h" 20 #include "net/base/auth.h"
21 #include "net/base/host_port_pair.h" 21 #include "net/base/host_port_pair.h"
22 #include "net/base/io_buffer.h" 22 #include "net/base/io_buffer.h"
23 #include "net/base/load_flags.h" 23 #include "net/base/load_flags.h"
24 #include "net/base/load_states.h" 24 #include "net/base/load_states.h"
25 #include "net/base/net_errors.h" 25 #include "net/base/net_errors.h"
26 #include "net/base/network_delegate.h" 26 #include "net/base/network_delegate.h"
27 #include "net/base/network_quality_estimator.h"
28 #include "net/filter/filter.h" 27 #include "net/filter/filter.h"
29 #include "net/http/http_response_headers.h" 28 #include "net/http/http_response_headers.h"
29 #include "net/nqe/network_quality_estimator.h"
30 #include "net/url_request/url_request_context.h" 30 #include "net/url_request/url_request_context.h"
31 31
32 namespace net { 32 namespace net {
33 33
34 namespace { 34 namespace {
35 35
36 // Callback for TYPE_URL_REQUEST_FILTERS_SET net-internals event. 36 // Callback for TYPE_URL_REQUEST_FILTERS_SET net-internals event.
37 std::unique_ptr<base::Value> FiltersSetCallback( 37 std::unique_ptr<base::Value> FiltersSetCallback(
38 Filter* filter, 38 Filter* filter,
39 NetLogCaptureMode /* capture_mode */) { 39 NetLogCaptureMode /* capture_mode */) {
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 int64_t total_sent_bytes = GetTotalSentBytes(); 982 int64_t total_sent_bytes = GetTotalSentBytes();
983 DCHECK_GE(total_sent_bytes, last_notified_total_sent_bytes_); 983 DCHECK_GE(total_sent_bytes, last_notified_total_sent_bytes_);
984 if (total_sent_bytes > last_notified_total_sent_bytes_) { 984 if (total_sent_bytes > last_notified_total_sent_bytes_) {
985 network_delegate_->NotifyNetworkBytesSent( 985 network_delegate_->NotifyNetworkBytesSent(
986 request_, total_sent_bytes - last_notified_total_sent_bytes_); 986 request_, total_sent_bytes - last_notified_total_sent_bytes_);
987 } 987 }
988 last_notified_total_sent_bytes_ = total_sent_bytes; 988 last_notified_total_sent_bytes_ = total_sent_bytes;
989 } 989 }
990 990
991 } // namespace net 991 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698