| 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 #include "chrome/browser/renderer_host/resource_message_filter.h" | 5 #include "chrome/browser/renderer_host/resource_message_filter.h" |
| 6 | 6 |
| 7 #include "base/clipboard.h" | 7 #include "base/clipboard.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/gfx/native_widget_types.h" | 9 #include "base/gfx/native_widget_types.h" |
| 10 #include "base/histogram.h" | 10 #include "base/histogram.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "net/http/http_cache.h" | 45 #include "net/http/http_cache.h" |
| 46 #include "net/http/http_transaction_factory.h" | 46 #include "net/http/http_transaction_factory.h" |
| 47 #include "net/url_request/url_request_context.h" | 47 #include "net/url_request/url_request_context.h" |
| 48 #include "webkit/glue/plugins/plugin_list.h" | 48 #include "webkit/glue/plugins/plugin_list.h" |
| 49 #include "webkit/glue/webkit_glue.h" | 49 #include "webkit/glue/webkit_glue.h" |
| 50 #include "webkit/glue/webplugin.h" | 50 #include "webkit/glue/webplugin.h" |
| 51 | 51 |
| 52 #if defined(OS_WIN) | 52 #if defined(OS_WIN) |
| 53 #include "chrome/browser/printing/print_job_manager.h" | 53 #include "chrome/browser/printing/print_job_manager.h" |
| 54 #include "chrome/browser/printing/printer_query.h" | 54 #include "chrome/browser/printing/printer_query.h" |
| 55 #elif defined(OS_MACOSX) || defined(OS_LINUX) | 55 #elif defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) |
| 56 // TODO(port) remove this. | 56 // TODO(port) remove this. |
| 57 #include "chrome/common/temp_scaffolding_stubs.h" | 57 #include "chrome/common/temp_scaffolding_stubs.h" |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 using WebKit::WebCache; | 60 using WebKit::WebCache; |
| 61 | 61 |
| 62 namespace { | 62 namespace { |
| 63 | 63 |
| 64 // Context menus are somewhat complicated. We need to intercept them here on | 64 // Context menus are somewhat complicated. We need to intercept them here on |
| 65 // the I/O thread to add any spelling suggestions to them. After that's done, | 65 // the I/O thread to add any spelling suggestions to them. After that's done, |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 } | 974 } |
| 975 | 975 |
| 976 void ResourceMessageFilter::ReplyGetFileSize(int64 result, void* param) { | 976 void ResourceMessageFilter::ReplyGetFileSize(int64 result, void* param) { |
| 977 IPC::Message* reply_msg = static_cast<IPC::Message*>(param); | 977 IPC::Message* reply_msg = static_cast<IPC::Message*>(param); |
| 978 ViewHostMsg_GetFileSize::WriteReplyParams(reply_msg, result); | 978 ViewHostMsg_GetFileSize::WriteReplyParams(reply_msg, result); |
| 979 Send(reply_msg); | 979 Send(reply_msg); |
| 980 | 980 |
| 981 // Getting file size callback done, decrease the ref count. | 981 // Getting file size callback done, decrease the ref count. |
| 982 Release(); | 982 Release(); |
| 983 } | 983 } |
| OLD | NEW |