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

Side by Side Diff: chrome/utility/chrome_content_utility_client.cc

Issue 2114583002: Windows: Make it possible to print text with GDI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again, resolve conflicts Created 4 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
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/printing_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/utility/chrome_content_utility_client.h" 5 #include "chrome/utility/chrome_content_utility_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 callback.Run(std::move(data)); 95 callback.Run(std::move(data));
96 } 96 }
97 97
98 mojo::StrongBinding<mojom::ResourceUsageReporter> binding_; 98 mojo::StrongBinding<mojom::ResourceUsageReporter> binding_;
99 }; 99 };
100 100
101 void CreateResourceUsageReporter( 101 void CreateResourceUsageReporter(
102 mojo::InterfaceRequest<mojom::ResourceUsageReporter> request) { 102 mojo::InterfaceRequest<mojom::ResourceUsageReporter> request) {
103 new ResourceUsageReporterImpl(std::move(request)); 103 new ResourceUsageReporterImpl(std::move(request));
104 } 104 }
105 #endif // OS_ANDROID 105 #endif // !defined(OS_ANDROID)
106 106
107 void CreateImageDecoder(mojo::InterfaceRequest<mojom::ImageDecoder> request) { 107 void CreateImageDecoder(mojo::InterfaceRequest<mojom::ImageDecoder> request) {
108 content::UtilityThread::Get()->EnsureBlinkInitialized(); 108 content::UtilityThread::Get()->EnsureBlinkInitialized();
109 new ImageDecoderImpl(std::move(request)); 109 new ImageDecoderImpl(std::move(request));
110 } 110 }
111 111
112 } // namespace 112 } // namespace
113 113
114 ChromeContentUtilityClient::ChromeContentUtilityClient() 114 ChromeContentUtilityClient::ChromeContentUtilityClient()
115 : filter_messages_(false) { 115 : filter_messages_(false) {
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 safe_browsing::zip_analyzer::Results results; 311 safe_browsing::zip_analyzer::Results results;
312 safe_browsing::dmg::AnalyzeDMGFile( 312 safe_browsing::dmg::AnalyzeDMGFile(
313 IPC::PlatformFileForTransitToFile(dmg_file), &results); 313 IPC::PlatformFileForTransitToFile(dmg_file), &results);
314 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( 314 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished(
315 results)); 315 results));
316 ReleaseProcessIfNeeded(); 316 ReleaseProcessIfNeeded();
317 } 317 }
318 #endif // defined(OS_MACOSX) 318 #endif // defined(OS_MACOSX)
319 319
320 #endif // defined(FULL_SAFE_BROWSING) 320 #endif // defined(FULL_SAFE_BROWSING)
OLDNEW
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/printing_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698