| 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 |
| 11 #include <vector> | 11 #include <vector> |
| 12 #include <string> | 12 #include <string> |
| 13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
| 14 #include "base/time.h" // for base::TimeDelta | 14 #include "base/time.h" // for base::TimeDelta |
| 15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 16 #include "chrome/common/automation_constants.h" | 16 #include "chrome/common/automation_constants.h" |
| 17 #include "content/common/page_zoom.h" | 17 #include "content/common/page_zoom.h" |
| 18 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
| 19 | 19 |
| 20 enum FindInPageDirection { BACK = 0, FWD = 1 }; | |
| 21 enum FindInPageCase { IGNORE_CASE = 0, CASE_SENSITIVE = 1 }; | |
| 22 // Specifies the font size on a page which is requested by an automation | |
| 23 // client. | |
| 24 enum AutomationPageFontSize { | |
| 25 SMALLEST_FONT = 8, | |
| 26 SMALL_FONT = 12, | |
| 27 MEDIUM_FONT = 16, | |
| 28 LARGE_FONT = 24, | |
| 29 LARGEST_FONT = 36 | |
| 30 }; | |
| 31 | |
| 32 class ChromeProxyDelegate; | 20 class ChromeProxyDelegate; |
| 33 class ChromeProxyFactory; | 21 class ChromeProxyFactory; |
| 34 class GURL; | 22 class GURL; |
| 35 struct AttachExternalTabParams; | 23 struct AttachExternalTabParams; |
| 36 struct AutomationURLRequest; | 24 struct AutomationURLRequest; |
| 37 struct ExternalTabSettings; | 25 struct ExternalTabSettings; |
| 38 struct MiniContextMenuParams; | 26 struct MiniContextMenuParams; |
| 39 struct NavigationInfo; | 27 struct NavigationInfo; |
| 40 struct ProxyParams; | 28 struct ProxyParams; |
| 41 | 29 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 void GetProxy(ChromeProxyDelegate* delegate, const ProxyParams& params); | 161 void GetProxy(ChromeProxyDelegate* delegate, const ProxyParams& params); |
| 174 bool ReleaseProxy(ChromeProxyDelegate* delegate, const std::string& profile); | 162 bool ReleaseProxy(ChromeProxyDelegate* delegate, const std::string& profile); |
| 175 protected: | 163 protected: |
| 176 virtual ChromeProxy* CreateProxy(); | 164 virtual ChromeProxy* CreateProxy(); |
| 177 typedef std::map<std::string, ChromeProxy*> ProxyMap; | 165 typedef std::map<std::string, ChromeProxy*> ProxyMap; |
| 178 ProxyMap proxies_; | 166 ProxyMap proxies_; |
| 179 base::Lock lock_; | 167 base::Lock lock_; |
| 180 }; | 168 }; |
| 181 | 169 |
| 182 #endif // CHROME_FRAME_CFPROXY_H_ | 170 #endif // CHROME_FRAME_CFPROXY_H_ |
| OLD | NEW |