OLD | NEW |
1 // Copyright (c) 2010 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 CHROME_FRAME_CFPROXY_H_ | 5 #ifndef CHROME_FRAME_CFPROXY_H_ |
6 #define CHROME_FRAME_CFPROXY_H_ | 6 #define CHROME_FRAME_CFPROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 #include <map> // for proxy factory | 10 #include <map> // for proxy factory |
11 #include <vector> | 11 #include <vector> |
(...skipping 13 matching lines...) Expand all Loading... |
25 SMALLEST_FONT = 8, | 25 SMALLEST_FONT = 8, |
26 SMALL_FONT = 12, | 26 SMALL_FONT = 12, |
27 MEDIUM_FONT = 16, | 27 MEDIUM_FONT = 16, |
28 LARGE_FONT = 24, | 28 LARGE_FONT = 24, |
29 LARGEST_FONT = 36 | 29 LARGEST_FONT = 36 |
30 }; | 30 }; |
31 | 31 |
32 class ChromeProxyDelegate; | 32 class ChromeProxyDelegate; |
33 class ChromeProxyFactory; | 33 class ChromeProxyFactory; |
34 class GURL; | 34 class GURL; |
35 class URLRequestStatus; | |
36 struct AttachExternalTabParams; | 35 struct AttachExternalTabParams; |
37 struct AutomationURLRequest; | 36 struct AutomationURLRequest; |
38 struct ExternalTabSettings; | 37 struct ExternalTabSettings; |
39 struct MiniContextMenuParams; | 38 struct MiniContextMenuParams; |
40 struct NavigationInfo; | 39 struct NavigationInfo; |
41 struct ProxyParams; | 40 struct ProxyParams; |
42 | 41 |
| 42 namespace net { |
| 43 class URLRequestStatus; |
| 44 } // namespace net |
| 45 |
43 // Some callers of synchronous messages wants a context to be passed back | 46 // Some callers of synchronous messages wants a context to be passed back |
44 // in order to identify the call they made. Presumably one can make | 47 // in order to identify the call they made. Presumably one can make |
45 // multiple sync calls of same type (as async) and want to identify what | 48 // multiple sync calls of same type (as async) and want to identify what |
46 // is what. | 49 // is what. |
47 struct SyncMessageContext { | 50 struct SyncMessageContext { |
48 virtual ~SyncMessageContext() {} | 51 virtual ~SyncMessageContext() {} |
49 }; | 52 }; |
50 | 53 |
51 | 54 |
52 /* | 55 /* |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 void GetProxy(ChromeProxyDelegate* delegate, const ProxyParams& params); | 189 void GetProxy(ChromeProxyDelegate* delegate, const ProxyParams& params); |
187 bool ReleaseProxy(ChromeProxyDelegate* delegate, const std::string& profile); | 190 bool ReleaseProxy(ChromeProxyDelegate* delegate, const std::string& profile); |
188 protected: | 191 protected: |
189 virtual ChromeProxy* CreateProxy(); | 192 virtual ChromeProxy* CreateProxy(); |
190 typedef std::map<std::string, ChromeProxy*> ProxyMap; | 193 typedef std::map<std::string, ChromeProxy*> ProxyMap; |
191 ProxyMap proxies_; | 194 ProxyMap proxies_; |
192 Lock lock_; | 195 Lock lock_; |
193 }; | 196 }; |
194 | 197 |
195 #endif // CHROME_FRAME_CFPROXY_H_ | 198 #endif // CHROME_FRAME_CFPROXY_H_ |
OLD | NEW |