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/public/common/page_zoom.h" |
18 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
19 | 19 |
20 class ChromeProxyDelegate; | 20 class ChromeProxyDelegate; |
21 class ChromeProxyFactory; | 21 class ChromeProxyFactory; |
22 class GURL; | 22 class GURL; |
23 struct AttachExternalTabParams; | 23 struct AttachExternalTabParams; |
24 struct AutomationURLRequest; | 24 struct AutomationURLRequest; |
25 struct ContextMenuModel; | 25 struct ContextMenuModel; |
26 struct ExternalTabSettings; | 26 struct ExternalTabSettings; |
27 struct MiniContextMenuParams; | 27 struct MiniContextMenuParams; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 virtual void Tab_Cut(int tab) = 0; | 86 virtual void Tab_Cut(int tab) = 0; |
87 virtual void Tab_Copy(int tab) = 0; | 87 virtual void Tab_Copy(int tab) = 0; |
88 virtual void Tab_Paste(int tab) = 0; | 88 virtual void Tab_Paste(int tab) = 0; |
89 virtual void Tab_SelectAll(int tab) = 0; | 89 virtual void Tab_SelectAll(int tab) = 0; |
90 virtual void Tab_Find(int tab, const string16& search_string, | 90 virtual void Tab_Find(int tab, const string16& search_string, |
91 FindInPageDirection forward, FindInPageCase match_case, | 91 FindInPageDirection forward, FindInPageCase match_case, |
92 bool find_next) = 0; | 92 bool find_next) = 0; |
93 virtual void Tab_MenuCommand(int tab, int selected_command) = 0; | 93 virtual void Tab_MenuCommand(int tab, int selected_command) = 0; |
94 | 94 |
95 // UI | 95 // UI |
96 virtual void Tab_Zoom(int tab, PageZoom::Function zoom_level) = 0; | 96 virtual void Tab_Zoom(int tab, content::PageZoom zoom_level) = 0; |
97 virtual void Tab_FontSize(int tab, enum AutomationPageFontSize font_size) = 0; | 97 virtual void Tab_FontSize(int tab, enum AutomationPageFontSize font_size) = 0; |
98 virtual void Tab_SetInitialFocus(int tab, | 98 virtual void Tab_SetInitialFocus(int tab, |
99 bool reverse, bool restore_focus_to_view) = 0; | 99 bool reverse, bool restore_focus_to_view) = 0; |
100 virtual void Tab_SetParentWindow(int tab) = 0; | 100 virtual void Tab_SetParentWindow(int tab) = 0; |
101 virtual void Tab_Resize(int tab) = 0; | 101 virtual void Tab_Resize(int tab) = 0; |
102 virtual void Tab_ProcessAccelerator(int tab, const MSG& msg) = 0; | 102 virtual void Tab_ProcessAccelerator(int tab, const MSG& msg) = 0; |
103 | 103 |
104 // Misc. | 104 // Misc. |
105 virtual void Tab_OnHostMoved(int tab) = 0; | 105 virtual void Tab_OnHostMoved(int tab) = 0; |
106 virtual void Tab_RunUnloadHandlers(int tab) = 0; | 106 virtual void Tab_RunUnloadHandlers(int tab) = 0; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 void GetProxy(ChromeProxyDelegate* delegate, const ProxyParams& params); | 161 void GetProxy(ChromeProxyDelegate* delegate, const ProxyParams& params); |
162 bool ReleaseProxy(ChromeProxyDelegate* delegate, const std::string& profile); | 162 bool ReleaseProxy(ChromeProxyDelegate* delegate, const std::string& profile); |
163 protected: | 163 protected: |
164 virtual ChromeProxy* CreateProxy(); | 164 virtual ChromeProxy* CreateProxy(); |
165 typedef std::map<std::string, ChromeProxy*> ProxyMap; | 165 typedef std::map<std::string, ChromeProxy*> ProxyMap; |
166 ProxyMap proxies_; | 166 ProxyMap proxies_; |
167 base::Lock lock_; | 167 base::Lock lock_; |
168 }; | 168 }; |
169 | 169 |
170 #endif // CHROME_FRAME_CFPROXY_H_ | 170 #endif // CHROME_FRAME_CFPROXY_H_ |
OLD | NEW |