| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 virtual void Tab_Navigate(int tab, const GURL& url, const GURL& referrer); | 156 virtual void Tab_Navigate(int tab, const GURL& url, const GURL& referrer); |
| 157 virtual void CreateTab(ChromeProxyDelegate* delegate, | 157 virtual void CreateTab(ChromeProxyDelegate* delegate, |
| 158 const ExternalTabSettings& p); | 158 const ExternalTabSettings& p); |
| 159 virtual void ConnectTab(ChromeProxyDelegate* delegate, HWND hwnd, | 159 virtual void ConnectTab(ChromeProxyDelegate* delegate, HWND hwnd, |
| 160 uint64 cookie); | 160 uint64 cookie); |
| 161 virtual void BlockTab(uint64 cookie); | 161 virtual void BlockTab(uint64 cookie); |
| 162 virtual void Tab_RunUnloadHandlers(int tab); | 162 virtual void Tab_RunUnloadHandlers(int tab); |
| 163 | 163 |
| 164 ////////////////////////////////////////////////////////////////////////// | 164 ////////////////////////////////////////////////////////////////////////// |
| 165 // IPC::Channel::Listener | 165 // IPC::Channel::Listener |
| 166 virtual void OnMessageReceived(const IPC::Message& message); | 166 virtual bool OnMessageReceived(const IPC::Message& message); |
| 167 virtual void OnChannelConnected(int32 peer_pid); | 167 virtual void OnChannelConnected(int32 peer_pid); |
| 168 virtual void OnChannelError(); | 168 virtual void OnChannelError(); |
| 169 | 169 |
| 170 bool CalledOnIpcThread() const { | 170 bool CalledOnIpcThread() const { |
| 171 return PlatformThread::CurrentId() == ipc_thread_.thread_id(); | 171 return PlatformThread::CurrentId() == ipc_thread_.thread_id(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 base::Thread ipc_thread_; | 174 base::Thread ipc_thread_; |
| 175 SyncMsgSender sync_dispatcher_; | 175 SyncMsgSender sync_dispatcher_; |
| 176 IPC::Message::Sender* ipc_sender_; | 176 IPC::Message::Sender* ipc_sender_; |
| 177 CFProxyTraits* api_; | 177 CFProxyTraits* api_; |
| 178 int delegate_count_; | 178 int delegate_count_; |
| 179 bool is_connected_; | 179 bool is_connected_; |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 DISABLE_RUNNABLE_METHOD_REFCOUNT(CFProxy); | 182 DISABLE_RUNNABLE_METHOD_REFCOUNT(CFProxy); |
| 183 | 183 |
| 184 // Support functions. | 184 // Support functions. |
| 185 std::string GenerateChannelId(); | 185 std::string GenerateChannelId(); |
| 186 std::wstring BuildCmdLine(const std::string& channel_id, | 186 std::wstring BuildCmdLine(const std::string& channel_id, |
| 187 const FilePath& profile_path, | 187 const FilePath& profile_path, |
| 188 const std::wstring& extra_args); | 188 const std::wstring& extra_args); |
| 189 #endif // CHROME_FRAME_CFPROXY_PRIVATE_H_ | 189 #endif // CHROME_FRAME_CFPROXY_PRIVATE_H_ |
| OLD | NEW |