| OLD | NEW |
| 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 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 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Some callers of synchronous messages wants a context to be passed back | 34 // Some callers of synchronous messages wants a context to be passed back |
| 35 // in order to identify the call they made. Presumably one can make | 35 // in order to identify the call they made. Presumably one can make |
| 36 // multiple sync calls of same type (as async) and want to identify what | 36 // multiple sync calls of same type (as async) and want to identify what |
| 37 // is what. | 37 // is what. |
| 38 struct SyncMessageContext { | 38 struct SyncMessageContext { |
| 39 virtual ~SyncMessageContext() {} | 39 virtual ~SyncMessageContext() {} |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 | 42 |
| 43 /* | 43 /* |
| 44 [npapi] UIDelegate (UI_THREAD) | 44 [activex] UIDelegate (UI_THREAD) |
| 45 [activex] <---------------+ | 45 [activedoc] <---------------+ |
| 46 [activedoc] | | |
| 47 | | 46 | |
| 48 | ChromeProxy (UI_THREAD) | 47 | ChromeProxy (UI_THREAD) |
| 49 +----------------+ --------------> +-------+ | 48 +----------------+ --------------> +-------+ |
| 50 URL_FETCHER <---------|ExternalTabProxy| |CFProxy| | 49 URL_FETCHER <---------|ExternalTabProxy| |CFProxy| |
| 51 +----------------+ +-------+ | 50 +----------------+ +-------+ |
| 52 | | 51 | |
| 53 ^ | | 52 ^ | |
| 54 | | | 53 | | |
| 55 +-----------------------------+ | 54 +-----------------------------+ |
| 56 | 55 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 void GetProxy(ChromeProxyDelegate* delegate, const ProxyParams& params); | 160 void GetProxy(ChromeProxyDelegate* delegate, const ProxyParams& params); |
| 162 bool ReleaseProxy(ChromeProxyDelegate* delegate, const std::string& profile); | 161 bool ReleaseProxy(ChromeProxyDelegate* delegate, const std::string& profile); |
| 163 protected: | 162 protected: |
| 164 virtual ChromeProxy* CreateProxy(); | 163 virtual ChromeProxy* CreateProxy(); |
| 165 typedef std::map<std::string, ChromeProxy*> ProxyMap; | 164 typedef std::map<std::string, ChromeProxy*> ProxyMap; |
| 166 ProxyMap proxies_; | 165 ProxyMap proxies_; |
| 167 base::Lock lock_; | 166 base::Lock lock_; |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 #endif // CHROME_FRAME_CFPROXY_H_ | 169 #endif // CHROME_FRAME_CFPROXY_H_ |
| OLD | NEW |