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

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

Issue 1845063002: Revert of Remove font cache code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/common/chrome_utility_messages.h ('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 <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 26 matching lines...) Expand all
37 37
38 #if !defined(OS_ANDROID) 38 #if !defined(OS_ANDROID)
39 #include "chrome/common/resource_usage_reporter.mojom.h" 39 #include "chrome/common/resource_usage_reporter.mojom.h"
40 #include "chrome/utility/profile_import_handler.h" 40 #include "chrome/utility/profile_import_handler.h"
41 #include "mojo/public/cpp/bindings/strong_binding.h" 41 #include "mojo/public/cpp/bindings/strong_binding.h"
42 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" 42 #include "net/proxy/mojo_proxy_resolver_factory_impl.h"
43 #include "net/proxy/proxy_resolver_v8.h" 43 #include "net/proxy/proxy_resolver_v8.h"
44 #endif 44 #endif
45 45
46 #if defined(OS_WIN) 46 #if defined(OS_WIN)
47 #include "chrome/utility/font_cache_handler_win.h"
47 #include "chrome/utility/shell_handler_win.h" 48 #include "chrome/utility/shell_handler_win.h"
48 #endif 49 #endif
49 50
50 #if defined(ENABLE_EXTENSIONS) 51 #if defined(ENABLE_EXTENSIONS)
51 #include "chrome/utility/extensions/extensions_handler.h" 52 #include "chrome/utility/extensions/extensions_handler.h"
52 #include "chrome/utility/image_writer/image_writer_handler.h" 53 #include "chrome/utility/image_writer/image_writer_handler.h"
53 #endif 54 #endif
54 55
55 #if defined(ENABLE_PRINT_PREVIEW) || defined(OS_WIN) 56 #if defined(ENABLE_PRINT_PREVIEW) || defined(OS_WIN)
56 #include "chrome/utility/printing_handler.h" 57 #include "chrome/utility/printing_handler.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 handlers_.push_back(new extensions::ExtensionsHandler(this)); 125 handlers_.push_back(new extensions::ExtensionsHandler(this));
125 handlers_.push_back(new image_writer::ImageWriterHandler()); 126 handlers_.push_back(new image_writer::ImageWriterHandler());
126 #endif 127 #endif
127 128
128 #if defined(ENABLE_PRINT_PREVIEW) || defined(OS_WIN) 129 #if defined(ENABLE_PRINT_PREVIEW) || defined(OS_WIN)
129 handlers_.push_back(new printing::PrintingHandler()); 130 handlers_.push_back(new printing::PrintingHandler());
130 #endif 131 #endif
131 132
132 #if defined(OS_WIN) 133 #if defined(OS_WIN)
133 handlers_.push_back(new ShellHandler()); 134 handlers_.push_back(new ShellHandler());
135 handlers_.push_back(new FontCacheHandler());
134 #endif 136 #endif
135 137
136 handlers_.push_back(new SafeJsonParserHandler()); 138 handlers_.push_back(new SafeJsonParserHandler());
137 } 139 }
138 140
139 ChromeContentUtilityClient::~ChromeContentUtilityClient() { 141 ChromeContentUtilityClient::~ChromeContentUtilityClient() {
140 } 142 }
141 143
142 void ChromeContentUtilityClient::UtilityThreadStarted() { 144 void ChromeContentUtilityClient::UtilityThreadStarted() {
143 #if defined(ENABLE_EXTENSIONS) 145 #if defined(ENABLE_EXTENSIONS)
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 safe_browsing::zip_analyzer::Results results; 407 safe_browsing::zip_analyzer::Results results;
406 safe_browsing::dmg::AnalyzeDMGFile( 408 safe_browsing::dmg::AnalyzeDMGFile(
407 IPC::PlatformFileForTransitToFile(dmg_file), &results); 409 IPC::PlatformFileForTransitToFile(dmg_file), &results);
408 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( 410 Send(new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished(
409 results)); 411 results));
410 ReleaseProcessIfNeeded(); 412 ReleaseProcessIfNeeded();
411 } 413 }
412 #endif // defined(OS_MACOSX) 414 #endif // defined(OS_MACOSX)
413 415
414 #endif // defined(FULL_SAFE_BROWSING) 416 #endif // defined(FULL_SAFE_BROWSING)
OLDNEW
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/utility/font_cache_handler_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698