| 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_PRIVATE_H_ | 5 #ifndef CHROME_FRAME_CFPROXY_PRIVATE_H_ |
| 6 #define CHROME_FRAME_CFPROXY_PRIVATE_H_ | 6 #define CHROME_FRAME_CFPROXY_PRIVATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual void Tab_Zoom(int tab, PageZoom::Function zoom_level); | 83 virtual void Tab_Zoom(int tab, PageZoom::Function zoom_level); |
| 84 virtual void Tab_FontSize(int tab, enum AutomationPageFontSize font_size); | 84 virtual void Tab_FontSize(int tab, enum AutomationPageFontSize font_size); |
| 85 virtual void Tab_SetInitialFocus(int tab, bool reverse, | 85 virtual void Tab_SetInitialFocus(int tab, bool reverse, |
| 86 bool restore_focus_to_view); | 86 bool restore_focus_to_view); |
| 87 virtual void Tab_SetParentWindow(int tab); | 87 virtual void Tab_SetParentWindow(int tab); |
| 88 virtual void Tab_Resize(int tab); | 88 virtual void Tab_Resize(int tab); |
| 89 virtual void Tab_ProcessAccelerator(int tab, const MSG& msg); | 89 virtual void Tab_ProcessAccelerator(int tab, const MSG& msg); |
| 90 | 90 |
| 91 // Misc. | 91 // Misc. |
| 92 virtual void Tab_OnHostMoved(int tab); | 92 virtual void Tab_OnHostMoved(int tab); |
| 93 virtual void Tab_SetEnableExtensionAutomation(int tab, | |
| 94 const std::vector<std::string>& functions_enabled); | |
| 95 protected: | 93 protected: |
| 96 ~Interface2IPCMessage() {} | 94 ~Interface2IPCMessage() {} |
| 97 private: | 95 private: |
| 98 IPC::Message::Sender* sender_; | 96 IPC::Message::Sender* sender_; |
| 99 }; | 97 }; |
| 100 | 98 |
| 101 // Simple class to keep a list of pointers to ChromeProxyDelegate for a | 99 // Simple class to keep a list of pointers to ChromeProxyDelegate for a |
| 102 // specific proxy as well as mapping between tab_id -> ChromeProxyDelegate. | 100 // specific proxy as well as mapping between tab_id -> ChromeProxyDelegate. |
| 103 class DelegateHolder { | 101 class DelegateHolder { |
| 104 protected: | 102 protected: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void LaunchTimeOut(); | 136 void LaunchTimeOut(); |
| 139 // Close channel, inform delegates. | 137 // Close channel, inform delegates. |
| 140 void OnPeerLost(ChromeProxyDelegate::DisconnectReason reason); | 138 void OnPeerLost(ChromeProxyDelegate::DisconnectReason reason); |
| 141 // Queues message to be send in IPC thread. | 139 // Queues message to be send in IPC thread. |
| 142 void SendIpcMessage(IPC::Message* m); | 140 void SendIpcMessage(IPC::Message* m); |
| 143 // Same but in IPC thread. | 141 // Same but in IPC thread. |
| 144 void SendIpcMessageOnIoThread(IPC::Message* m); | 142 void SendIpcMessageOnIoThread(IPC::Message* m); |
| 145 | 143 |
| 146 ////////////////////////////////////////////////////////////////////////// | 144 ////////////////////////////////////////////////////////////////////////// |
| 147 // Sync messages. | 145 // Sync messages. |
| 148 virtual void InstallExtension(ChromeProxyDelegate* delegate, | |
| 149 const FilePath& crx_path, SyncMessageContext* ctx); | |
| 150 virtual void LoadExtension(ChromeProxyDelegate* delegate, | |
| 151 const FilePath& path, SyncMessageContext* ctx); | |
| 152 virtual void GetEnabledExtensions(ChromeProxyDelegate* delegate, | |
| 153 SyncMessageContext* ctx); | |
| 154 virtual void Tab_Find(int tab, const string16& search_string, | 146 virtual void Tab_Find(int tab, const string16& search_string, |
| 155 FindInPageDirection forward, FindInPageCase match_case, bool find_next); | 147 FindInPageDirection forward, FindInPageCase match_case, bool find_next); |
| 156 virtual void Tab_OverrideEncoding(int tab, const char* encoding); | 148 virtual void Tab_OverrideEncoding(int tab, const char* encoding); |
| 157 virtual void Tab_Navigate(int tab, const GURL& url, const GURL& referrer); | 149 virtual void Tab_Navigate(int tab, const GURL& url, const GURL& referrer); |
| 158 virtual void CreateTab(ChromeProxyDelegate* delegate, | 150 virtual void CreateTab(ChromeProxyDelegate* delegate, |
| 159 const ExternalTabSettings& p); | 151 const ExternalTabSettings& p); |
| 160 virtual void ConnectTab(ChromeProxyDelegate* delegate, HWND hwnd, | 152 virtual void ConnectTab(ChromeProxyDelegate* delegate, HWND hwnd, |
| 161 uint64 cookie); | 153 uint64 cookie); |
| 162 virtual void BlockTab(uint64 cookie); | 154 virtual void BlockTab(uint64 cookie); |
| 163 virtual void Tab_RunUnloadHandlers(int tab); | 155 virtual void Tab_RunUnloadHandlers(int tab); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 181 }; | 173 }; |
| 182 | 174 |
| 183 DISABLE_RUNNABLE_METHOD_REFCOUNT(CFProxy); | 175 DISABLE_RUNNABLE_METHOD_REFCOUNT(CFProxy); |
| 184 | 176 |
| 185 // Support functions. | 177 // Support functions. |
| 186 std::string GenerateChannelId(); | 178 std::string GenerateChannelId(); |
| 187 std::wstring BuildCmdLine(const std::string& channel_id, | 179 std::wstring BuildCmdLine(const std::string& channel_id, |
| 188 const FilePath& profile_path, | 180 const FilePath& profile_path, |
| 189 const std::wstring& extra_args); | 181 const std::wstring& extra_args); |
| 190 #endif // CHROME_FRAME_CFPROXY_PRIVATE_H_ | 182 #endif // CHROME_FRAME_CFPROXY_PRIVATE_H_ |
| OLD | NEW |