OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ANDROID_WEBVIEW_BROWSER_PRINTING_MESSAGE_FILTER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_PRINTING_MESSAGE_FILTER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_PRINTING_MESSAGE_FILTER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_PRINTING_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/browser_message_filter.h" | 9 #include "content/public/browser/browser_message_filter.h" |
10 | 10 |
| 11 namespace base { |
| 12 struct FileDescriptor; |
| 13 } |
| 14 |
11 namespace android_webview { | 15 namespace android_webview { |
12 | 16 |
13 // This class filters out incoming printing related IPC messages for the | 17 // This class filters out incoming printing related IPC messages for the |
14 // renderer process on the IPC thread. | 18 // renderer process on the IPC thread. |
15 class AwPrintingMessageFilter : public content::BrowserMessageFilter { | 19 class AwPrintingMessageFilter : public content::BrowserMessageFilter { |
16 public: | 20 public: |
17 explicit AwPrintingMessageFilter(int render_process_id); | 21 explicit AwPrintingMessageFilter(int render_process_id); |
18 | 22 |
19 // content::BrowserMessageFilter methods. | 23 // content::BrowserMessageFilter methods. |
20 void OverrideThreadForMessage(const IPC::Message& message, | 24 void OverrideThreadForMessage(const IPC::Message& message, |
(...skipping 11 matching lines...) Expand all Loading... |
32 void OnTempFileForPrintingWritten(int render_view_id, int sequence_number); | 36 void OnTempFileForPrintingWritten(int render_view_id, int sequence_number); |
33 | 37 |
34 const int render_process_id_; | 38 const int render_process_id_; |
35 | 39 |
36 DISALLOW_COPY_AND_ASSIGN(AwPrintingMessageFilter); | 40 DISALLOW_COPY_AND_ASSIGN(AwPrintingMessageFilter); |
37 }; | 41 }; |
38 | 42 |
39 } // namespace android_webview | 43 } // namespace android_webview |
40 | 44 |
41 #endif // ANDROID_WEBVIEW_BROWSER_PRINTING_MESSAGE_FILTER_H_ | 45 #endif // ANDROID_WEBVIEW_BROWSER_PRINTING_MESSAGE_FILTER_H_ |
OLD | NEW |