| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |