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

Side by Side Diff: components/printing/renderer/print_web_view_helper_linux.cc

Issue 2843113002: make base::SharedMemoryHandle a class on POSIX. (Closed)
Patch Set: Fix test error. Created 3 years, 7 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 #include "components/printing/renderer/print_web_view_helper.h" 5 #include "components/printing/renderer/print_web_view_helper.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 return false; 87 return false;
88 } 88 }
89 89
90 printed_page_params.data_size = metafile.GetDataSize(); 90 printed_page_params.data_size = metafile.GetDataSize();
91 printed_page_params.document_cookie = params.params.document_cookie; 91 printed_page_params.document_cookie = params.params.document_cookie;
92 92
93 for (size_t i = 0; i < printed_pages.size(); ++i) { 93 for (size_t i = 0; i < printed_pages.size(); ++i) {
94 printed_page_params.page_number = printed_pages[i]; 94 printed_page_params.page_number = printed_pages[i];
95 Send(new PrintHostMsg_DidPrintPage(routing_id(), printed_page_params)); 95 Send(new PrintHostMsg_DidPrintPage(routing_id(), printed_page_params));
96 // Send the rest of the pages with an invalid metafile handle. 96 // Send the rest of the pages with an invalid metafile handle.
97 printed_page_params.metafile_data_handle.fd = -1; 97 printed_page_params.metafile_data_handle.Release();
98 } 98 }
99 return true; 99 return true;
100 #endif // defined(OS_ANDROID) 100 #endif // defined(OS_ANDROID)
101 } 101 }
102 #endif // BUILDFLAG(ENABLE_BASIC_PRINTING) 102 #endif // BUILDFLAG(ENABLE_BASIC_PRINTING)
103 103
104 } // namespace printing 104 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698