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_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> |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 virtual void Tab_OverrideEncoding(int tab, const char* encoding); | 148 virtual void Tab_OverrideEncoding(int tab, const char* encoding); |
149 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); |
150 virtual void CreateTab(ChromeProxyDelegate* delegate, | 150 virtual void CreateTab(ChromeProxyDelegate* delegate, |
151 const ExternalTabSettings& p); | 151 const ExternalTabSettings& p); |
152 virtual void ConnectTab(ChromeProxyDelegate* delegate, HWND hwnd, | 152 virtual void ConnectTab(ChromeProxyDelegate* delegate, HWND hwnd, |
153 uint64 cookie); | 153 uint64 cookie); |
154 virtual void BlockTab(uint64 cookie); | 154 virtual void BlockTab(uint64 cookie); |
155 virtual void Tab_RunUnloadHandlers(int tab); | 155 virtual void Tab_RunUnloadHandlers(int tab); |
156 | 156 |
157 ////////////////////////////////////////////////////////////////////////// | 157 ////////////////////////////////////////////////////////////////////////// |
158 // IPC::Channel::Listener | 158 // IPC::Channel::Listener implementation. |
159 virtual bool OnMessageReceived(const IPC::Message& message); | 159 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
160 virtual void OnChannelConnected(int32 peer_pid); | 160 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
161 virtual void OnChannelError(); | 161 virtual void OnChannelError() OVERRIDE; |
162 | 162 |
163 bool CalledOnIpcThread() const { | 163 bool CalledOnIpcThread() const { |
164 return base::PlatformThread::CurrentId() == ipc_thread_.thread_id(); | 164 return base::PlatformThread::CurrentId() == ipc_thread_.thread_id(); |
165 } | 165 } |
166 | 166 |
167 base::Thread ipc_thread_; | 167 base::Thread ipc_thread_; |
168 SyncMsgSender sync_dispatcher_; | 168 SyncMsgSender sync_dispatcher_; |
169 IPC::Message::Sender* ipc_sender_; | 169 IPC::Message::Sender* ipc_sender_; |
170 CFProxyTraits* api_; | 170 CFProxyTraits* api_; |
171 int delegate_count_; | 171 int delegate_count_; |
172 bool is_connected_; | 172 bool is_connected_; |
173 }; | 173 }; |
174 | 174 |
175 DISABLE_RUNNABLE_METHOD_REFCOUNT(CFProxy); | 175 DISABLE_RUNNABLE_METHOD_REFCOUNT(CFProxy); |
176 | 176 |
177 // Support functions. | 177 // Support functions. |
178 std::string GenerateChannelId(); | 178 std::string GenerateChannelId(); |
179 std::wstring BuildCmdLine(const std::string& channel_id, | 179 std::wstring BuildCmdLine(const std::string& channel_id, |
180 const FilePath& profile_path, | 180 const FilePath& profile_path, |
181 const std::wstring& extra_args); | 181 const std::wstring& extra_args); |
182 #endif // CHROME_FRAME_CFPROXY_PRIVATE_H_ | 182 #endif // CHROME_FRAME_CFPROXY_PRIVATE_H_ |
OLD | NEW |