OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
7 | 7 |
8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 void OnGetAutoCorrectWord(const std::wstring& word, | 166 void OnGetAutoCorrectWord(const std::wstring& word, |
167 IPC::Message* reply_msg); | 167 IPC::Message* reply_msg); |
168 void OnDnsPrefetch(const std::vector<std::string>& hostnames); | 168 void OnDnsPrefetch(const std::vector<std::string>& hostnames); |
169 void OnRendererHistograms(int sequence_number, | 169 void OnRendererHistograms(int sequence_number, |
170 const std::vector<std::string>& histogram_info); | 170 const std::vector<std::string>& histogram_info); |
171 void OnReceiveContextMenuMsg(const IPC::Message& msg); | 171 void OnReceiveContextMenuMsg(const IPC::Message& msg); |
172 // Clipboard messages | 172 // Clipboard messages |
173 void OnClipboardWriteObjects(const Clipboard::ObjectMap& objects); | 173 void OnClipboardWriteObjects(const Clipboard::ObjectMap& objects); |
174 | 174 |
175 void OnClipboardIsFormatAvailable(Clipboard::FormatType format, | 175 void OnClipboardIsFormatAvailable(Clipboard::FormatType format, |
| 176 Clipboard::Buffer buffer, |
176 IPC::Message* reply); | 177 IPC::Message* reply); |
177 void OnClipboardReadText(IPC::Message* reply); | 178 void OnClipboardReadText(Clipboard::Buffer buffer, IPC::Message* reply); |
178 void OnClipboardReadAsciiText(IPC::Message* reply); | 179 void OnClipboardReadAsciiText(Clipboard::Buffer buffer, IPC::Message* reply); |
179 void OnClipboardReadHTML(IPC::Message* reply); | 180 void OnClipboardReadHTML(Clipboard::Buffer buffer, IPC::Message* reply); |
180 | 181 |
181 #if !defined(OS_MACOSX) | 182 #if !defined(OS_MACOSX) |
182 // Not handled in the IO thread on Mac. | 183 // Not handled in the IO thread on Mac. |
183 void OnGetWindowRect(gfx::NativeViewId window, IPC::Message* reply); | 184 void OnGetWindowRect(gfx::NativeViewId window, IPC::Message* reply); |
184 void OnGetRootWindowRect(gfx::NativeViewId window, IPC::Message* reply); | 185 void OnGetRootWindowRect(gfx::NativeViewId window, IPC::Message* reply); |
185 #endif | 186 #endif |
186 void OnGetMimeTypeFromExtension(const FilePath::StringType& ext, | 187 void OnGetMimeTypeFromExtension(const FilePath::StringType& ext, |
187 std::string* mime_type); | 188 std::string* mime_type); |
188 void OnGetMimeTypeFromFile(const FilePath& file_path, | 189 void OnGetMimeTypeFromFile(const FilePath& file_path, |
189 std::string* mime_type); | 190 std::string* mime_type); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 248 |
248 void OnGetFileSize(const FilePath& path, IPC::Message* reply_msg); | 249 void OnGetFileSize(const FilePath& path, IPC::Message* reply_msg); |
249 void ReplyGetFileSize(int64 result, void* param); | 250 void ReplyGetFileSize(int64 result, void* param); |
250 | 251 |
251 #if defined(OS_LINUX) | 252 #if defined(OS_LINUX) |
252 void SendDelayedReply(IPC::Message* reply_msg); | 253 void SendDelayedReply(IPC::Message* reply_msg); |
253 void DoOnGetScreenInfo(gfx::NativeViewId view, IPC::Message* reply_msg); | 254 void DoOnGetScreenInfo(gfx::NativeViewId view, IPC::Message* reply_msg); |
254 void DoOnGetWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg); | 255 void DoOnGetWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg); |
255 void DoOnGetRootWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg); | 256 void DoOnGetRootWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg); |
256 void DoOnClipboardIsFormatAvailable(Clipboard::FormatType format, | 257 void DoOnClipboardIsFormatAvailable(Clipboard::FormatType format, |
| 258 Clipboard::Buffer buffer, |
257 IPC::Message* reply_msg); | 259 IPC::Message* reply_msg); |
258 void DoOnClipboardReadText(IPC::Message* reply_msg); | 260 void DoOnClipboardReadText(Clipboard::Buffer buffer, IPC::Message* reply_msg); |
259 void DoOnClipboardReadAsciiText(IPC::Message* reply_msg); | 261 void DoOnClipboardReadAsciiText(Clipboard::Buffer buffer, |
260 void DoOnClipboardReadHTML(IPC::Message* reply_msg); | 262 IPC::Message* reply_msg); |
| 263 void DoOnClipboardReadHTML(Clipboard::Buffer buffer, IPC::Message* reply_msg); |
261 #endif | 264 #endif |
262 | 265 |
263 bool CheckBenchmarkingEnabled(); | 266 bool CheckBenchmarkingEnabled(); |
264 | 267 |
265 // We have our own clipboard because we want to access the clipboard on the | 268 // We have our own clipboard because we want to access the clipboard on the |
266 // IO thread instead of forwarding (possibly synchronous) messages to the UI | 269 // IO thread instead of forwarding (possibly synchronous) messages to the UI |
267 // thread. This instance of the clipboard should be accessed only on the IO | 270 // thread. This instance of the clipboard should be accessed only on the IO |
268 // thread. | 271 // thread. |
269 static Clipboard* GetClipboard(); | 272 static Clipboard* GetClipboard(); |
270 | 273 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 // Whether this process is used for off the record tabs. | 336 // Whether this process is used for off the record tabs. |
334 bool off_the_record_; | 337 bool off_the_record_; |
335 | 338 |
336 // A callback to create a routing id for the associated renderer process. | 339 // A callback to create a routing id for the associated renderer process. |
337 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; | 340 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; |
338 | 341 |
339 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); | 342 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); |
340 }; | 343 }; |
341 | 344 |
342 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 345 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
OLD | NEW |