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

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

Issue 1378353006: Implementation of dwrite font proxy and removal of dwrite font cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More codereview fixes. Jumped the gun on previous patchset. Created 5 years, 1 month 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/chrome_utility.gypi ('k') | chrome/utility/font_cache_handler_win.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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 21 matching lines...) Expand all
32 32
33 #if !defined(OS_ANDROID) 33 #if !defined(OS_ANDROID)
34 #include "chrome/common/resource_usage_reporter.mojom.h" 34 #include "chrome/common/resource_usage_reporter.mojom.h"
35 #include "chrome/utility/profile_import_handler.h" 35 #include "chrome/utility/profile_import_handler.h"
36 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" 36 #include "net/proxy/mojo_proxy_resolver_factory_impl.h"
37 #include "net/proxy/proxy_resolver_v8.h" 37 #include "net/proxy/proxy_resolver_v8.h"
38 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 38 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
39 #endif 39 #endif
40 40
41 #if defined(OS_WIN) 41 #if defined(OS_WIN)
42 #include "chrome/utility/font_cache_handler_win.h"
43 #include "chrome/utility/shell_handler_win.h" 42 #include "chrome/utility/shell_handler_win.h"
44 #endif 43 #endif
45 44
46 #if defined(ENABLE_EXTENSIONS) 45 #if defined(ENABLE_EXTENSIONS)
47 #include "chrome/utility/extensions/extensions_handler.h" 46 #include "chrome/utility/extensions/extensions_handler.h"
48 #include "chrome/utility/image_writer/image_writer_handler.h" 47 #include "chrome/utility/image_writer/image_writer_handler.h"
49 #endif 48 #endif
50 49
51 #if defined(ENABLE_PRINT_PREVIEW) || defined(OS_WIN) 50 #if defined(ENABLE_PRINT_PREVIEW) || defined(OS_WIN)
52 #include "chrome/utility/printing_handler.h" 51 #include "chrome/utility/printing_handler.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 130
132 #if defined(ENABLE_MDNS) 131 #if defined(ENABLE_MDNS)
133 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 132 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
134 switches::kUtilityProcessEnableMDns)) { 133 switches::kUtilityProcessEnableMDns)) {
135 handlers_.push_back(new local_discovery::ServiceDiscoveryMessageHandler()); 134 handlers_.push_back(new local_discovery::ServiceDiscoveryMessageHandler());
136 } 135 }
137 #endif 136 #endif
138 137
139 #if defined(OS_WIN) 138 #if defined(OS_WIN)
140 handlers_.push_back(new ShellHandler()); 139 handlers_.push_back(new ShellHandler());
141 handlers_.push_back(new FontCacheHandler());
142 #endif 140 #endif
143 141
144 handlers_.push_back(new SafeJsonParserHandler()); 142 handlers_.push_back(new SafeJsonParserHandler());
145 } 143 }
146 144
147 ChromeContentUtilityClient::~ChromeContentUtilityClient() { 145 ChromeContentUtilityClient::~ChromeContentUtilityClient() {
148 } 146 }
149 147
150 void ChromeContentUtilityClient::UtilityThreadStarted() { 148 void ChromeContentUtilityClient::UtilityThreadStarted() {
151 #if defined(ENABLE_EXTENSIONS) 149 #if defined(ENABLE_EXTENSIONS)
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 safe_browsing::zip_analyzer::Results results; 396 safe_browsing::zip_analyzer::Results results;
399 safe_browsing::dmg::AnalyzeDMGFile( 397 safe_browsing::dmg::AnalyzeDMGFile(
400 IPC::PlatformFileForTransitToFile(dmg_file), &results); 398 IPC::PlatformFileForTransitToFile(dmg_file), &results);
401 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( 399 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished(
402 results)); 400 results));
403 ReleaseProcessIfNeeded(); 401 ReleaseProcessIfNeeded();
404 } 402 }
405 #endif // defined(OS_MACOSX) 403 #endif // defined(OS_MACOSX)
406 404
407 #endif // defined(FULL_SAFE_BROWSING) 405 #endif // defined(FULL_SAFE_BROWSING)
OLDNEW
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | chrome/utility/font_cache_handler_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698