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

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

Issue 11572039: Make HttpNetworkLayer subscribe to power events on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle case where SystemMonitor::Get() returns NULL Created 7 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_network_layer.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 #ifndef NET_HTTP_HTTP_NETWORK_LAYER_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_LAYER_H_
6 #define NET_HTTP_HTTP_NETWORK_LAYER_H_ 6 #define NET_HTTP_HTTP_NETWORK_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "base/system_monitor/system_monitor.h" 14 #include "base/system_monitor/system_monitor.h"
13 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
14 #include "net/base/net_export.h" 16 #include "net/base/net_export.h"
15 #include "net/http/http_transaction_factory.h" 17 #include "net/http/http_transaction_factory.h"
16 18
17 namespace net { 19 namespace net {
18 20
19 class HttpNetworkSession; 21 class HttpNetworkSession;
(...skipping 26 matching lines...) Expand all
46 virtual HttpCache* GetCache() OVERRIDE; 48 virtual HttpCache* GetCache() OVERRIDE;
47 virtual HttpNetworkSession* GetSession() OVERRIDE; 49 virtual HttpNetworkSession* GetSession() OVERRIDE;
48 50
49 // base::SystemMonitor::PowerObserver methods: 51 // base::SystemMonitor::PowerObserver methods:
50 virtual void OnSuspend() OVERRIDE; 52 virtual void OnSuspend() OVERRIDE;
51 virtual void OnResume() OVERRIDE; 53 virtual void OnResume() OVERRIDE;
52 54
53 private: 55 private:
54 const scoped_refptr<HttpNetworkSession> session_; 56 const scoped_refptr<HttpNetworkSession> session_;
55 bool suspended_; 57 bool suspended_;
58
59 DISALLOW_COPY_AND_ASSIGN(HttpNetworkLayer);
56 }; 60 };
57 61
58 } // namespace net 62 } // namespace net
59 63
60 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ 64 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698