| 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // content::BrowserMessageFilter methods. | 23 // content::BrowserMessageFilter methods. |
| 24 void OverrideThreadForMessage(const IPC::Message& message, | 24 void OverrideThreadForMessage(const IPC::Message& message, |
| 25 content::BrowserThread::ID* thread) override; | 25 content::BrowserThread::ID* thread) override; |
| 26 bool OnMessageReceived(const IPC::Message& message) override; | 26 bool OnMessageReceived(const IPC::Message& message) override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 ~AwPrintingMessageFilter() override; | 29 ~AwPrintingMessageFilter() override; |
| 30 | 30 |
| 31 // Used to ask the browser allocate a temporary file for the renderer | 31 // Used to ask the browser allocate a temporary file for the renderer |
| 32 // to fill in resulting PDF in renderer. | 32 // to fill in resulting PDF in renderer. |
| 33 void OnAllocateTempFileForPrinting(int render_view_id, | 33 void OnAllocateTempFileForPrinting(int render_frame_id, |
| 34 base::FileDescriptor* temp_file_fd, | 34 base::FileDescriptor* temp_file_fd, |
| 35 int* sequence_number); | 35 int* sequence_number); |
| 36 void OnTempFileForPrintingWritten(int render_view_id, int sequence_number); | 36 void OnTempFileForPrintingWritten(int render_frame_id, int sequence_number); |
| 37 | 37 |
| 38 const int render_process_id_; | 38 const int render_process_id_; |
| 39 | 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(AwPrintingMessageFilter); | 40 DISALLOW_COPY_AND_ASSIGN(AwPrintingMessageFilter); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace android_webview | 43 } // namespace android_webview |
| 44 | 44 |
| 45 #endif // ANDROID_WEBVIEW_BROWSER_PRINTING_MESSAGE_FILTER_H_ | 45 #endif // ANDROID_WEBVIEW_BROWSER_PRINTING_MESSAGE_FILTER_H_ |
| OLD | NEW |