OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef ProxyServer_h | 26 #ifndef ProxyServer_h |
27 #define ProxyServer_h | 27 #define ProxyServer_h |
28 | 28 |
29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
30 #include "wtf/Vector.h" | 30 #include "wtf/Vector.h" |
31 #include "wtf/text/WTFString.h" | 31 #include "wtf/text/WTFString.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace blink { |
34 | 34 |
35 class KURL; | 35 class KURL; |
36 class NetworkingContext; | 36 class NetworkingContext; |
37 | 37 |
38 // Represents a single proxy server. | 38 // Represents a single proxy server. |
39 class PLATFORM_EXPORT ProxyServer { | 39 class PLATFORM_EXPORT ProxyServer { |
40 public: | 40 public: |
41 enum Type { | 41 enum Type { |
42 Direct, | 42 Direct, |
43 HTTP, | 43 HTTP, |
(...skipping 24 matching lines...) Expand all Loading... |
68 int m_port; | 68 int m_port; |
69 }; | 69 }; |
70 | 70 |
71 // Return a vector of proxy servers for the given URL. | 71 // Return a vector of proxy servers for the given URL. |
72 PLATFORM_EXPORT Vector<ProxyServer> proxyServersForURL(const KURL&, const Networ
kingContext*); | 72 PLATFORM_EXPORT Vector<ProxyServer> proxyServersForURL(const KURL&, const Networ
kingContext*); |
73 | 73 |
74 // Converts the given vector of proxy servers to a PAC string, as described in | 74 // Converts the given vector of proxy servers to a PAC string, as described in |
75 // http://web.archive.org/web/20060424005037/wp.netscape.com/eng/mozilla/2.0/rel
notes/demo/proxy-live.html | 75 // http://web.archive.org/web/20060424005037/wp.netscape.com/eng/mozilla/2.0/rel
notes/demo/proxy-live.html |
76 PLATFORM_EXPORT String toString(const Vector<ProxyServer>&); | 76 PLATFORM_EXPORT String toString(const Vector<ProxyServer>&); |
77 | 77 |
78 } // namespace WebCore | 78 } // namespace blink |
79 | 79 |
80 #endif // ProxyServer_h | 80 #endif // ProxyServer_h |
OLD | NEW |