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

Side by Side Diff: net/http/http_network_layer.cc

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 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
« no previous file with comments | « net/http/http_cache_lookup_manager.h ('k') | net/http/http_network_layer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/http/http_network_layer.h" 5 #include "net/http/http_network_layer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/power_monitor/power_monitor.h" 8 #include "base/power_monitor/power_monitor.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "net/http/http_network_session.h" 12 #include "net/http/http_network_session.h"
13 #include "net/http/http_network_transaction.h" 13 #include "net/http/http_network_transaction.h"
14 #include "net/http/http_server_properties_impl.h" 14 #include "net/http/http_server_properties_impl.h"
15 #include "net/http/http_stream_factory_impl_job.h" 15 #include "net/http/http_stream_factory_impl_job.h"
16 #include "net/spdy/spdy_framer.h" 16 #include "net/spdy/chromium/spdy_session.h"
17 #include "net/spdy/spdy_session.h" 17 #include "net/spdy/chromium/spdy_session_pool.h"
18 #include "net/spdy/spdy_session_pool.h" 18 #include "net/spdy/core/spdy_framer.h"
19 19
20 namespace net { 20 namespace net {
21 21
22 HttpNetworkLayer::HttpNetworkLayer(HttpNetworkSession* session) 22 HttpNetworkLayer::HttpNetworkLayer(HttpNetworkSession* session)
23 : session_(session), 23 : session_(session),
24 suspended_(false) { 24 suspended_(false) {
25 DCHECK(session_); 25 DCHECK(session_);
26 #if defined(OS_WIN) 26 #if defined(OS_WIN)
27 base::PowerMonitor* power_monitor = base::PowerMonitor::Get(); 27 base::PowerMonitor* power_monitor = base::PowerMonitor::Get();
28 if (power_monitor) 28 if (power_monitor)
(...skipping 30 matching lines...) Expand all
59 void HttpNetworkLayer::OnSuspend() { 59 void HttpNetworkLayer::OnSuspend() {
60 suspended_ = true; 60 suspended_ = true;
61 session_->CloseIdleConnections(); 61 session_->CloseIdleConnections();
62 } 62 }
63 63
64 void HttpNetworkLayer::OnResume() { 64 void HttpNetworkLayer::OnResume() {
65 suspended_ = false; 65 suspended_ = false;
66 } 66 }
67 67
68 } // namespace net 68 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_cache_lookup_manager.h ('k') | net/http/http_network_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698