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

Side by Side Diff: components/cronet/android/url_request_context_adapter.cc

Issue 893303003: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/cronet/android/url_request_context_adapter.h" 5 #include "components/cronet/android/url_request_context_adapter.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // MessageLoop on the main thread, which is where objects that receive Java 33 // MessageLoop on the main thread, which is where objects that receive Java
34 // notifications generally live. 34 // notifications generally live.
35 base::MessageLoop* g_main_message_loop = nullptr; 35 base::MessageLoop* g_main_message_loop = nullptr;
36 36
37 net::NetworkChangeNotifier* g_network_change_notifier = nullptr; 37 net::NetworkChangeNotifier* g_network_change_notifier = nullptr;
38 38
39 class BasicNetworkDelegate : public net::NetworkDelegateImpl { 39 class BasicNetworkDelegate : public net::NetworkDelegateImpl {
40 public: 40 public:
41 BasicNetworkDelegate() {} 41 BasicNetworkDelegate() {}
42 virtual ~BasicNetworkDelegate() {} 42 ~BasicNetworkDelegate() override {}
43 43
44 private: 44 private:
45 // net::NetworkDelegate implementation. 45 // net::NetworkDelegate implementation.
46 int OnBeforeURLRequest(net::URLRequest* request, 46 int OnBeforeURLRequest(net::URLRequest* request,
47 const net::CompletionCallback& callback, 47 const net::CompletionCallback& callback,
48 GURL* new_url) override { 48 GURL* new_url) override {
49 return net::OK; 49 return net::OK;
50 } 50 }
51 51
52 int OnBeforeSendHeaders(net::URLRequest* request, 52 int OnBeforeSendHeaders(net::URLRequest* request,
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 net_log_logger_.reset(); 313 net_log_logger_.reset();
314 } 314 }
315 } 315 }
316 316
317 void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) { 317 void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) {
318 VLOG(2) << "Net log entry: type=" << entry.type() 318 VLOG(2) << "Net log entry: type=" << entry.type()
319 << ", source=" << entry.source().type << ", phase=" << entry.phase(); 319 << ", source=" << entry.source().type << ", phase=" << entry.phase();
320 } 320 }
321 321
322 } // namespace cronet 322 } // namespace cronet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698