| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PRINTING_PRINTING_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" |
| 11 #include "base/prefs/pref_member.h" | 14 #include "base/prefs/pref_member.h" |
| 15 #include "build/build_config.h" |
| 12 #include "content/public/browser/browser_message_filter.h" | 16 #include "content/public/browser/browser_message_filter.h" |
| 13 | 17 |
| 14 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
| 15 #include "base/memory/shared_memory.h" | 19 #include "base/memory/shared_memory.h" |
| 16 #endif | 20 #endif |
| 17 | 21 |
| 18 struct PrintHostMsg_ScriptedPrint_Params; | 22 struct PrintHostMsg_ScriptedPrint_Params; |
| 19 class Profile; | 23 class Profile; |
| 20 class ProfileIOData; | 24 class ProfileIOData; |
| 21 | 25 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // handled by the print worker thread and the UI thread. The reply occurs on | 99 // handled by the print worker thread and the UI thread. The reply occurs on |
| 96 // the IO thread. | 100 // the IO thread. |
| 97 void OnUpdatePrintSettings(int document_cookie, | 101 void OnUpdatePrintSettings(int document_cookie, |
| 98 const base::DictionaryValue& job_settings, | 102 const base::DictionaryValue& job_settings, |
| 99 IPC::Message* reply_msg); | 103 IPC::Message* reply_msg); |
| 100 void OnUpdatePrintSettingsReply(scoped_refptr<PrinterQuery> printer_query, | 104 void OnUpdatePrintSettingsReply(scoped_refptr<PrinterQuery> printer_query, |
| 101 IPC::Message* reply_msg); | 105 IPC::Message* reply_msg); |
| 102 | 106 |
| 103 #if defined(ENABLE_PRINT_PREVIEW) | 107 #if defined(ENABLE_PRINT_PREVIEW) |
| 104 // Check to see if print preview has been cancelled. | 108 // Check to see if print preview has been cancelled. |
| 105 void OnCheckForCancel(int32 preview_ui_id, | 109 void OnCheckForCancel(int32_t preview_ui_id, |
| 106 int preview_request_id, | 110 int preview_request_id, |
| 107 bool* cancel); | 111 bool* cancel); |
| 108 #endif | 112 #endif |
| 109 | 113 |
| 110 scoped_ptr<BooleanPrefMember, content::BrowserThread::DeleteOnUIThread> | 114 scoped_ptr<BooleanPrefMember, content::BrowserThread::DeleteOnUIThread> |
| 111 is_printing_enabled_; | 115 is_printing_enabled_; |
| 112 | 116 |
| 113 const int render_process_id_; | 117 const int render_process_id_; |
| 114 | 118 |
| 115 scoped_refptr<PrintQueriesQueue> queue_; | 119 scoped_refptr<PrintQueriesQueue> queue_; |
| 116 | 120 |
| 117 DISALLOW_COPY_AND_ASSIGN(PrintingMessageFilter); | 121 DISALLOW_COPY_AND_ASSIGN(PrintingMessageFilter); |
| 118 }; | 122 }; |
| 119 | 123 |
| 120 } // namespace printing | 124 } // namespace printing |
| 121 | 125 |
| 122 #endif // CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ | 126 #endif // CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ |
| OLD | NEW |