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

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

Issue 10834313: Add histograms for network activity, and total/cumulative (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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_context_builder.h" 5 #include "net/url_request/url_request_context_builder.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual bool OnCanThrottleRequest(const URLRequest& request) const OVERRIDE { 104 virtual bool OnCanThrottleRequest(const URLRequest& request) const OVERRIDE {
105 return false; 105 return false;
106 } 106 }
107 107
108 virtual int OnBeforeSocketStreamConnect( 108 virtual int OnBeforeSocketStreamConnect(
109 SocketStream* stream, 109 SocketStream* stream,
110 const CompletionCallback& callback) OVERRIDE { 110 const CompletionCallback& callback) OVERRIDE {
111 return OK; 111 return OK;
112 } 112 }
113 113
114 virtual void OnCacheWaitStateChange(const URLRequest& request, 114 virtual void OnRequestWaitStateChange(const URLRequest& request,
115 CacheWaitState state) OVERRIDE { 115 RequestWaitState state) OVERRIDE {
116 } 116 }
117 117
118 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate); 118 DISALLOW_COPY_AND_ASSIGN(BasicNetworkDelegate);
119 }; 119 };
120 120
121 class BasicURLRequestContext : public URLRequestContext { 121 class BasicURLRequestContext : public URLRequestContext {
122 public: 122 public:
123 BasicURLRequestContext() 123 BasicURLRequestContext()
124 : cache_thread_("Cache Thread"), 124 : cache_thread_("Cache Thread"),
125 file_thread_("File Thread"), 125 file_thread_("File Thread"),
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 http_transaction_factory = new HttpNetworkLayer(network_session); 285 http_transaction_factory = new HttpNetworkLayer(network_session);
286 } 286 }
287 storage->set_http_transaction_factory(http_transaction_factory); 287 storage->set_http_transaction_factory(http_transaction_factory);
288 288
289 // TODO(willchan): Support sdch. 289 // TODO(willchan): Support sdch.
290 290
291 return context; 291 return context;
292 } 292 }
293 293
294 } // namespace net 294 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_script_fetcher_impl_unittest.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698