| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 309 |
| 310 void URLRequestContextAdapter::StopNetLogHelper() { | 310 void URLRequestContextAdapter::StopNetLogHelper() { |
| 311 DCHECK(GetNetworkTaskRunner()->BelongsToCurrentThread()); | 311 DCHECK(GetNetworkTaskRunner()->BelongsToCurrentThread()); |
| 312 if (write_to_file_observer_) { | 312 if (write_to_file_observer_) { |
| 313 write_to_file_observer_->StopObserving(context_.get()); | 313 write_to_file_observer_->StopObserving(context_.get()); |
| 314 write_to_file_observer_.reset(); | 314 write_to_file_observer_.reset(); |
| 315 } | 315 } |
| 316 } | 316 } |
| 317 | 317 |
| 318 void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) { | 318 void NetLogObserver::OnAddEntry(const net::NetLog::Entry& entry) { |
| 319 VLOG(2) << "Net log entry: type=" << entry.type() | 319 VLOG(2) << "Net log entry: type=" << static_cast<int>(entry.type()) |
| 320 << ", source=" << entry.source().type << ", phase=" << entry.phase(); | 320 << ", source=" << static_cast<int>(entry.source().type) |
| 321 << ", phase=" << static_cast<int>(entry.phase()); |
| 321 } | 322 } |
| 322 | 323 |
| 323 } // namespace cronet | 324 } // namespace cronet |
| OLD | NEW |