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

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

Issue 2315613002: Extracted NetLog class's inner enum types into their own enum classes and (Closed)
Patch Set: Ran "git cl format" on code. Much formatting ensued. Created 4 years, 3 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 <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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698