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

Side by Side Diff: chrome/browser/io_thread.cc

Issue 2698143004: Add ongoing events to net-export log when logging starts (Closed)
Patch Set: Forgot to update comment for StopNetLog() Created 3 years, 10 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
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 "chrome/browser/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 message_size, 283 message_size,
284 is_cellular)); 284 is_cellular));
285 } 285 }
286 286
287 } // namespace 287 } // namespace
288 288
289 class SystemURLRequestContextGetter : public net::URLRequestContextGetter { 289 class SystemURLRequestContextGetter : public net::URLRequestContextGetter {
290 public: 290 public:
291 explicit SystemURLRequestContextGetter(IOThread* io_thread); 291 explicit SystemURLRequestContextGetter(IOThread* io_thread);
292 292
293 // Implementation for net::UrlRequestContextGetter. 293 // net::URLRequestContextGetter implementation.
eroman 2017/02/22 02:03:29 same comment here.
wangyix1 2017/02/23 02:14:57 Change reverted.
294 net::URLRequestContext* GetURLRequestContext() override; 294 net::URLRequestContext* GetURLRequestContext() override;
295 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() 295 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
296 const override; 296 const override;
297 297
298 protected: 298 protected:
299 ~SystemURLRequestContextGetter() override; 299 ~SystemURLRequestContextGetter() override;
300 300
301 private: 301 private:
302 IOThread* const io_thread_; // Weak pointer, owned by BrowserProcess. 302 IOThread* const io_thread_; // Weak pointer, owned by BrowserProcess.
303 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; 303 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 1112
1113 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the 1113 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the
1114 // system URLRequestContext too. There's no reason this should be tied to a 1114 // system URLRequestContext too. There's no reason this should be tied to a
1115 // profile. 1115 // profile.
1116 return context; 1116 return context;
1117 } 1117 }
1118 1118
1119 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() { 1119 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() {
1120 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread); 1120 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread);
1121 } 1121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698