Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: chrome/browser/printing/printing_message_filter.h

Issue 23116003: Adds PrintingContext implementation stub for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes some build targets and try bots. Some other nits. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 private: 48 private:
49 virtual ~PrintingMessageFilter(); 49 virtual ~PrintingMessageFilter();
50 50
51 #if defined(OS_WIN) 51 #if defined(OS_WIN)
52 // Used to pass resulting EMF from renderer to browser in printing. 52 // Used to pass resulting EMF from renderer to browser in printing.
53 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, 53 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle,
54 base::SharedMemoryHandle* browser_handle); 54 base::SharedMemoryHandle* browser_handle);
55 #endif 55 #endif
56 56
57 #if defined(OS_CHROMEOS) 57 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
58 // Used to ask the browser allocate a temporary file for the renderer 58 // Used to ask the browser allocate a temporary file for the renderer
59 // to fill in resulting PDF in renderer. 59 // to fill in resulting PDF in renderer.
60 void OnAllocateTempFileForPrinting(base::FileDescriptor* temp_file_fd, 60 void OnAllocateTempFileForPrinting(int render_view_id,
61 base::FileDescriptor* temp_file_fd,
61 int* sequence_number); 62 int* sequence_number);
62 void OnTempFileForPrintingWritten(int render_view_id, int sequence_number); 63 void OnTempFileForPrintingWritten(int render_view_id, int sequence_number);
64 #endif
65
66 #if defined(OS_CHROMEOS)
63 void CreatePrintDialogForFile(int render_view_id, const base::FilePath& path); 67 void CreatePrintDialogForFile(int render_view_id, const base::FilePath& path);
64 #endif 68 #endif
65 69
70 #if defined(OS_ANDROID)
71 // Updates the file descriptor for the PrintViewManagerBasic of a given
72 // render_view_id.
73 void UpdateFileDescriptor(int render_view_id, int fd);
74 #endif
75
66 // Given a render_view_id get the corresponding WebContents. 76 // Given a render_view_id get the corresponding WebContents.
67 // Must be called on the UI thread. 77 // Must be called on the UI thread.
68 content::WebContents* GetWebContentsForRenderView(int render_view_id); 78 content::WebContents* GetWebContentsForRenderView(int render_view_id);
69 79
70 // GetPrintSettingsForRenderView must be called via PostTask and 80 // GetPrintSettingsForRenderView must be called via PostTask and
71 // base::Bind. Collapse the settings-specific params into a 81 // base::Bind. Collapse the settings-specific params into a
72 // struct to avoid running into issues with too many params 82 // struct to avoid running into issues with too many params
73 // to base::Bind. 83 // to base::Bind.
74 struct GetPrintSettingsForRenderViewParams; 84 struct GetPrintSettingsForRenderViewParams;
75 85
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 printing::PrintJobManager* print_job_manager_; 129 printing::PrintJobManager* print_job_manager_;
120 130
121 ProfileIOData* profile_io_data_; 131 ProfileIOData* profile_io_data_;
122 132
123 const int render_process_id_; 133 const int render_process_id_;
124 134
125 DISALLOW_COPY_AND_ASSIGN(PrintingMessageFilter); 135 DISALLOW_COPY_AND_ASSIGN(PrintingMessageFilter);
126 }; 136 };
127 137
128 #endif // CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ 138 #endif // CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698