| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "components/prefs/pref_member.h" | 15 #include "components/prefs/pref_member.h" |
| 16 #include "content/public/browser/browser_message_filter.h" | 16 #include "content/public/browser/browser_message_filter.h" |
| 17 #include "printing/features/features.h" | 17 #include "printing/features/features.h" |
| 18 | 18 |
| 19 struct PrintHostMsg_ScriptedPrint_Params; | 19 struct PrintHostMsg_ScriptedPrint_Params; |
| 20 class Profile; | 20 class Profile; |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class DictionaryValue; | 23 class DictionaryValue; |
| 24 #if defined(OS_ANDROID) |
| 25 struct FileDescriptor; |
| 26 #endif |
| 24 } | 27 } |
| 25 | 28 |
| 26 namespace printing { | 29 namespace printing { |
| 27 | 30 |
| 28 class PrintQueriesQueue; | 31 class PrintQueriesQueue; |
| 29 class PrinterQuery; | 32 class PrinterQuery; |
| 30 | 33 |
| 31 // This class filters out incoming printing related IPC messages for the | 34 // This class filters out incoming printing related IPC messages for the |
| 32 // renderer process on the IPC thread. | 35 // renderer process on the IPC thread. |
| 33 class PrintingMessageFilter : public content::BrowserMessageFilter { | 36 class PrintingMessageFilter : public content::BrowserMessageFilter { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 const int render_process_id_; | 96 const int render_process_id_; |
| 94 | 97 |
| 95 scoped_refptr<PrintQueriesQueue> queue_; | 98 scoped_refptr<PrintQueriesQueue> queue_; |
| 96 | 99 |
| 97 DISALLOW_COPY_AND_ASSIGN(PrintingMessageFilter); | 100 DISALLOW_COPY_AND_ASSIGN(PrintingMessageFilter); |
| 98 }; | 101 }; |
| 99 | 102 |
| 100 } // namespace printing | 103 } // namespace printing |
| 101 | 104 |
| 102 #endif // CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ | 105 #endif // CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ |
| OLD | NEW |