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

Side by Side Diff: net/spdy/spdy_session_pool.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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 "net/spdy/spdy_session_pool.h" 5 #include "net/spdy/spdy_session_pool.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "base/profiler/scoped_tracker.h" 11 #include "base/profiler/scoped_tracker.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "base/trace_event/trace_event.h" 13 #include "base/trace_event/trace_event.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "net/base/address_list.h" 15 #include "net/base/address_list.h"
16 #include "net/http/http_network_session.h" 16 #include "net/http/http_network_session.h"
17 #include "net/http/http_server_properties.h" 17 #include "net/http/http_server_properties.h"
18 #include "net/log/net_log_event_type.h" 18 #include "net/log/net_log_event_type.h"
19 #include "net/log/net_log_source.h"
20 #include "net/log/net_log_with_source.h"
19 #include "net/spdy/spdy_session.h" 21 #include "net/spdy/spdy_session.h"
20 22
21 namespace net { 23 namespace net {
22 24
23 namespace { 25 namespace {
24 26
25 enum SpdySessionGetTypes { 27 enum SpdySessionGetTypes {
26 CREATED_NEW = 0, 28 CREATED_NEW = 0,
27 FOUND_EXISTING = 1, 29 FOUND_EXISTING = 1,
28 FOUND_EXISTING_FROM_IP_POOL = 2, 30 FOUND_EXISTING_FROM_IP_POOL = 2,
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 436
435 if (idle_only && (*it)->is_active()) 437 if (idle_only && (*it)->is_active())
436 continue; 438 continue;
437 439
438 (*it)->CloseSessionOnError(error, description); 440 (*it)->CloseSessionOnError(error, description);
439 DCHECK(!IsSessionAvailable(*it)); 441 DCHECK(!IsSessionAvailable(*it));
440 } 442 }
441 } 443 }
442 444
443 } // namespace net 445 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698