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

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

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/system_monitor/system_monitor.h" 13 #include "base/system_monitor/system_monitor.h"
14 #include "base/threading/non_thread_safe.h" 14 #include "base/threading/non_thread_safe.h"
15 #include "net/base/net_api.h" 15 #include "net/base/net_export.h"
16 #include "net/http/http_transaction_factory.h" 16 #include "net/http/http_transaction_factory.h"
17 17
18 namespace net { 18 namespace net {
19 19
20 class CertVerifier; 20 class CertVerifier;
21 class ClientSocketFactory; 21 class ClientSocketFactory;
22 class DnsCertProvenanceChecker; 22 class DnsCertProvenanceChecker;
23 class DnsRRResolver; 23 class DnsRRResolver;
24 class HostResolver; 24 class HostResolver;
25 class HttpAuthHandlerFactory; 25 class HttpAuthHandlerFactory;
26 class HttpNetworkSession; 26 class HttpNetworkSession;
27 class NetLog; 27 class NetLog;
28 class NetworkDelegate; 28 class NetworkDelegate;
29 class ProxyService; 29 class ProxyService;
30 class SpdySessionPool; 30 class SpdySessionPool;
31 class SSLConfigService; 31 class SSLConfigService;
32 class SSLHostInfoFactory; 32 class SSLHostInfoFactory;
33 33
34 class NET_API HttpNetworkLayer : public HttpTransactionFactory, 34 class NET_EXPORT HttpNetworkLayer
35 public base::SystemMonitor::PowerObserver, 35 : public HttpTransactionFactory,
36 NON_EXPORTED_BASE(public base::NonThreadSafe) { 36 public base::SystemMonitor::PowerObserver,
37 NON_EXPORTED_BASE(public base::NonThreadSafe) {
37 public: 38 public:
38 // Construct a HttpNetworkLayer with an existing HttpNetworkSession which 39 // Construct a HttpNetworkLayer with an existing HttpNetworkSession which
39 // contains a valid ProxyService. 40 // contains a valid ProxyService.
40 explicit HttpNetworkLayer(HttpNetworkSession* session); 41 explicit HttpNetworkLayer(HttpNetworkSession* session);
41 virtual ~HttpNetworkLayer(); 42 virtual ~HttpNetworkLayer();
42 43
43 // Create a transaction factory that instantiate a network layer over an 44 // Create a transaction factory that instantiate a network layer over an
44 // existing network session. Network session contains some valuable 45 // existing network session. Network session contains some valuable
45 // information (e.g. authentication data) that we want to share across 46 // information (e.g. authentication data) that we want to share across
46 // multiple network layers. This method exposes the implementation details 47 // multiple network layers. This method exposes the implementation details
(...skipping 21 matching lines...) Expand all
68 virtual void OnResume(); 69 virtual void OnResume();
69 70
70 private: 71 private:
71 const scoped_refptr<HttpNetworkSession> session_; 72 const scoped_refptr<HttpNetworkSession> session_;
72 bool suspended_; 73 bool suspended_;
73 }; 74 };
74 75
75 } // namespace net 76 } // namespace net
76 77
77 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_ 78 #endif // NET_HTTP_HTTP_NETWORK_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698