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

Side by Side Diff: net/proxy/proxy_resolver_script_data.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_RESOLVER_SCRIPT_DATA_H_ 5 #ifndef NET_PROXY_PROXY_RESOLVER_SCRIPT_DATA_H_
6 #define NET_PROXY_PROXY_RESOLVER_SCRIPT_DATA_H_ 6 #define NET_PROXY_PROXY_RESOLVER_SCRIPT_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "net/base/net_api.h" 12 #include "net/base/net_export.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 // Reference-counted wrapper for passing around a PAC script specification. 16 // Reference-counted wrapper for passing around a PAC script specification.
17 // The PAC script can be either specified via a URL, a deferred URL for 17 // The PAC script can be either specified via a URL, a deferred URL for
18 // auto-detect, or the actual javascript program text. 18 // auto-detect, or the actual javascript program text.
19 // 19 //
20 // This is thread-safe so it can be used by multi-threaded implementations of 20 // This is thread-safe so it can be used by multi-threaded implementations of
21 // ProxyResolver to share the data between threads. 21 // ProxyResolver to share the data between threads.
22 class NET_TEST ProxyResolverScriptData 22 class NET_EXPORT_PRIVATE ProxyResolverScriptData
23 : public base::RefCountedThreadSafe<ProxyResolverScriptData> { 23 : public base::RefCountedThreadSafe<ProxyResolverScriptData> {
24 public: 24 public:
25 enum Type { 25 enum Type {
26 TYPE_SCRIPT_CONTENTS, 26 TYPE_SCRIPT_CONTENTS,
27 TYPE_SCRIPT_URL, 27 TYPE_SCRIPT_URL,
28 TYPE_AUTO_DETECT, 28 TYPE_AUTO_DETECT,
29 }; 29 };
30 30
31 // Creates a script data given the UTF8 bytes of the content. 31 // Creates a script data given the UTF8 bytes of the content.
32 static scoped_refptr<ProxyResolverScriptData> FromUTF8( 32 static scoped_refptr<ProxyResolverScriptData> FromUTF8(
(...skipping 30 matching lines...) Expand all
63 63
64 64
65 const Type type_; 65 const Type type_;
66 const GURL url_; 66 const GURL url_;
67 const string16 utf16_; 67 const string16 utf16_;
68 }; 68 };
69 69
70 } // namespace net 70 } // namespace net
71 71
72 #endif // NET_PROXY_PROXY_RESOLVER_SCRIPT_DATA_H_ 72 #endif // NET_PROXY_PROXY_RESOLVER_SCRIPT_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698