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

Side by Side Diff: net/proxy/proxy_script_fetcher_impl.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_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ 5 #ifndef NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_
6 #define NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ 6 #define NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
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/string16.h" 13 #include "base/string16.h"
14 #include "base/task.h" 14 #include "base/task.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "net/proxy/proxy_script_fetcher.h" 16 #include "net/proxy/proxy_script_fetcher.h"
17 #include "net/url_request/url_request.h" 17 #include "net/url_request/url_request.h"
18 18
19 class GURL; 19 class GURL;
20 class X509Certificate; 20 class X509Certificate;
21 21
22 namespace net { 22 namespace net {
23 23
24 class URLRequestContext; 24 class URLRequestContext;
25 25
26 // Implementation of ProxyScriptFetcher that downloads scripts using the 26 // Implementation of ProxyScriptFetcher that downloads scripts using the
27 // specified request context. 27 // specified request context.
28 class NET_API ProxyScriptFetcherImpl : public ProxyScriptFetcher, 28 class NET_EXPORT ProxyScriptFetcherImpl : public ProxyScriptFetcher,
29 public URLRequest::Delegate { 29 public URLRequest::Delegate {
30 public: 30 public:
31 // Creates a ProxyScriptFetcher that issues requests through 31 // Creates a ProxyScriptFetcher that issues requests through
32 // |url_request_context|. |url_request_context| must remain valid for the 32 // |url_request_context|. |url_request_context| must remain valid for the
33 // lifetime of ProxyScriptFetcherImpl. 33 // lifetime of ProxyScriptFetcherImpl.
34 // Note that while a request is in progress, we will be holding a reference 34 // Note that while a request is in progress, we will be holding a reference
35 // to |url_request_context|. Be careful not to create cycles between the 35 // to |url_request_context|. Be careful not to create cycles between the
36 // fetcher and the context; you can break such cycles by calling Cancel(). 36 // fetcher and the context; you can break such cycles by calling Cancel().
37 explicit ProxyScriptFetcherImpl(URLRequestContext* url_request_context); 37 explicit ProxyScriptFetcherImpl(URLRequestContext* url_request_context);
38 38
39 virtual ~ProxyScriptFetcherImpl(); 39 virtual ~ProxyScriptFetcherImpl();
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // The maximum amount of time to wait for download to complete. 118 // The maximum amount of time to wait for download to complete.
119 base::TimeDelta max_duration_; 119 base::TimeDelta max_duration_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl); 121 DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl);
122 }; 122 };
123 123
124 } // namespace net 124 } // namespace net
125 125
126 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ 126 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698