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

Side by Side Diff: chrome/browser/printing/pwg_raster_converter.cc

Issue 2317123002: c/browser, c/common, components O-P: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/printing/pwg_raster_converter.h" 5 #include "chrome/browser/printing/pwg_raster_converter.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 FileHandlers() {} 45 FileHandlers() {}
46 46
47 ~FileHandlers() { 47 ~FileHandlers() {
48 DCHECK_CURRENTLY_ON(BrowserThread::FILE); 48 DCHECK_CURRENTLY_ON(BrowserThread::FILE);
49 } 49 }
50 50
51 void Init(base::RefCountedMemory* data); 51 void Init(base::RefCountedMemory* data);
52 bool IsValid(); 52 bool IsValid();
53 53
54 base::FilePath GetPwgPath() const { 54 base::FilePath GetPwgPath() const {
55 return temp_dir_.path().AppendASCII("output.pwg"); 55 return temp_dir_.GetPath().AppendASCII("output.pwg");
56 } 56 }
57 57
58 base::FilePath GetPdfPath() const { 58 base::FilePath GetPdfPath() const {
59 return temp_dir_.path().AppendASCII("input.pdf"); 59 return temp_dir_.GetPath().AppendASCII("input.pdf");
60 } 60 }
61 61
62 IPC::PlatformFileForTransit GetPdfForProcess() { 62 IPC::PlatformFileForTransit GetPdfForProcess() {
63 DCHECK(pdf_file_.IsValid()); 63 DCHECK(pdf_file_.IsValid());
64 IPC::PlatformFileForTransit transit = 64 IPC::PlatformFileForTransit transit =
65 IPC::TakePlatformFileForTransit(std::move(pdf_file_)); 65 IPC::TakePlatformFileForTransit(std::move(pdf_file_));
66 return transit; 66 return transit;
67 } 67 }
68 68
69 IPC::PlatformFileForTransit GetPwgForProcess() { 69 IPC::PlatformFileForTransit GetPwgForProcess() {
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 342 }
343 } 343 }
344 344
345 result.rotate_all_pages = raster_capability.value().rotate_all_pages; 345 result.rotate_all_pages = raster_capability.value().rotate_all_pages;
346 346
347 result.reverse_page_order = raster_capability.value().reverse_order_streaming; 347 result.reverse_page_order = raster_capability.value().reverse_order_streaming;
348 return result; 348 return result;
349 } 349 }
350 350
351 } // namespace printing 351 } // namespace printing
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_pdf_generated_browsertest.cc ('k') | chrome/browser/process_singleton_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698