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_BROWSER_RENDERER_HOST_RESOURCE_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_MESSAGE_FILTER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MESSAGE_FILTER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MESSAGE_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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 void OnOpenChannelToExtension(int routing_id, | 308 void OnOpenChannelToExtension(int routing_id, |
309 const std::string& source_extension_id, | 309 const std::string& source_extension_id, |
310 const std::string& target_extension_id, | 310 const std::string& target_extension_id, |
311 const std::string& channel_name, int* port_id); | 311 const std::string& channel_name, int* port_id); |
312 void OnOpenChannelToTab(int routing_id, int tab_id, | 312 void OnOpenChannelToTab(int routing_id, int tab_id, |
313 const std::string& extension_id, | 313 const std::string& extension_id, |
314 const std::string& channel_name, int* port_id); | 314 const std::string& channel_name, int* port_id); |
315 | 315 |
316 void OnCloseCurrentConnections(); | 316 void OnCloseCurrentConnections(); |
317 void OnSetCacheMode(bool enabled); | 317 void OnSetCacheMode(bool enabled); |
318 | 318 void OnCacheableMetadataAvailable(const GURL& url, |
| 319 double expected_response_time, |
| 320 const std::vector<char>& data); |
319 void OnGetFileSize(const FilePath& path, IPC::Message* reply_msg); | 321 void OnGetFileSize(const FilePath& path, IPC::Message* reply_msg); |
320 void OnGetFileModificationTime(const FilePath& path, IPC::Message* reply_msg); | 322 void OnGetFileModificationTime(const FilePath& path, IPC::Message* reply_msg); |
321 void OnGetFileInfoOnFileThread(const FilePath& path, | 323 void OnGetFileInfoOnFileThread(const FilePath& path, |
322 IPC::Message* reply_msg, | 324 IPC::Message* reply_msg, |
323 FileInfoWriteFunc write_func); | 325 FileInfoWriteFunc write_func); |
324 void OnOpenFile(const FilePath& path, int mode,IPC::Message* reply_msg); | 326 void OnOpenFile(const FilePath& path, int mode,IPC::Message* reply_msg); |
325 void OnOpenFileOnFileThread(const FilePath& path, | 327 void OnOpenFileOnFileThread(const FilePath& path, |
326 int mode, | 328 int mode, |
327 IPC::Message* reply_msg); | 329 IPC::Message* reply_msg); |
328 void OnKeygen(uint32 key_size_index, const std::string& challenge_string, | 330 void OnKeygen(uint32 key_size_index, const std::string& challenge_string, |
(...skipping 16 matching lines...) Expand all Loading... |
345 void DoOnClipboardIsFormatAvailable(Clipboard::FormatType format, | 347 void DoOnClipboardIsFormatAvailable(Clipboard::FormatType format, |
346 Clipboard::Buffer buffer, | 348 Clipboard::Buffer buffer, |
347 IPC::Message* reply_msg); | 349 IPC::Message* reply_msg); |
348 void DoOnClipboardReadText(Clipboard::Buffer buffer, IPC::Message* reply_msg); | 350 void DoOnClipboardReadText(Clipboard::Buffer buffer, IPC::Message* reply_msg); |
349 void DoOnClipboardReadAsciiText(Clipboard::Buffer buffer, | 351 void DoOnClipboardReadAsciiText(Clipboard::Buffer buffer, |
350 IPC::Message* reply_msg); | 352 IPC::Message* reply_msg); |
351 void DoOnClipboardReadHTML(Clipboard::Buffer buffer, IPC::Message* reply_msg); | 353 void DoOnClipboardReadHTML(Clipboard::Buffer buffer, IPC::Message* reply_msg); |
352 void DoOnAllocateTempFileForPrinting(IPC::Message* reply_msg); | 354 void DoOnAllocateTempFileForPrinting(IPC::Message* reply_msg); |
353 #endif | 355 #endif |
354 | 356 |
355 bool CheckBenchmarkingEnabled(); | 357 bool CheckBenchmarkingEnabled() const; |
| 358 bool CheckPreparsedJsCachingEnabled() const; |
356 | 359 |
357 // We have our own clipboard because we want to access the clipboard on the | 360 // We have our own clipboard because we want to access the clipboard on the |
358 // IO thread instead of forwarding (possibly synchronous) messages to the UI | 361 // IO thread instead of forwarding (possibly synchronous) messages to the UI |
359 // thread. This instance of the clipboard should be accessed only on the IO | 362 // thread. This instance of the clipboard should be accessed only on the IO |
360 // thread. | 363 // thread. |
361 static Clipboard* GetClipboard(); | 364 static Clipboard* GetClipboard(); |
362 | 365 |
363 NotificationRegistrar registrar_; | 366 NotificationRegistrar registrar_; |
364 | 367 |
365 // The channel associated with the renderer connection. This pointer is not | 368 // The channel associated with the renderer connection. This pointer is not |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 // A callback to create a routing id for the associated renderer process. | 428 // A callback to create a routing id for the associated renderer process. |
426 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; | 429 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; |
427 | 430 |
428 // Used to handle geolocation-related messages. | 431 // Used to handle geolocation-related messages. |
429 scoped_refptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; | 432 scoped_refptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; |
430 | 433 |
431 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); | 434 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); |
432 }; | 435 }; |
433 | 436 |
434 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MESSAGE_FILTER_H_ | 437 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MESSAGE_FILTER_H_ |
OLD | NEW |