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

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

Issue 2645813006: Download web payment manifests. (Closed)
Patch Set: At most INT_MAX sections in manifest and fingperints in section Created 3 years, 9 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 "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 #include <vector> 9 #include <vector>
10 10
(...skipping 24 matching lines...) Expand all
35 #include "services/service_manager/public/cpp/interface_registry.h" 35 #include "services/service_manager/public/cpp/interface_registry.h"
36 #include "third_party/zlib/google/zip.h" 36 #include "third_party/zlib/google/zip.h"
37 #include "ui/gfx/geometry/size.h" 37 #include "ui/gfx/geometry/size.h"
38 38
39 #if !defined(OS_ANDROID) 39 #if !defined(OS_ANDROID)
40 #include "chrome/common/resource_usage_reporter.mojom.h" 40 #include "chrome/common/resource_usage_reporter.mojom.h"
41 #include "chrome/utility/profile_import_handler.h" 41 #include "chrome/utility/profile_import_handler.h"
42 #include "mojo/public/cpp/bindings/strong_binding.h" 42 #include "mojo/public/cpp/bindings/strong_binding.h"
43 #include "net/proxy/mojo_proxy_resolver_factory_impl.h" 43 #include "net/proxy/mojo_proxy_resolver_factory_impl.h"
44 #include "net/proxy/proxy_resolver_v8.h" 44 #include "net/proxy/proxy_resolver_v8.h"
45 #else
46 #include "components/payments/content/android/utility/payment_manifest_parser.h"
45 #endif 47 #endif
46 48
47 #if defined(OS_CHROMEOS) 49 #if defined(OS_CHROMEOS)
48 #include "chrome/common/zip_file_creator.mojom.h" 50 #include "chrome/common/zip_file_creator.mojom.h"
49 #endif 51 #endif
50 52
51 #if defined(OS_WIN) 53 #if defined(OS_WIN)
52 #include "chrome/utility/ipc_shell_handler_win.h" 54 #include "chrome/utility/ipc_shell_handler_win.h"
53 #include "chrome/utility/shell_handler_impl_win.h" 55 #include "chrome/utility/shell_handler_impl_win.h"
54 #endif 56 #endif
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // services to the interface registry. 246 // services to the interface registry.
245 if (utility_process_running_elevated_) 247 if (utility_process_running_elevated_)
246 return; 248 return;
247 249
248 registry->AddInterface(base::Bind(&FilePatcherImpl::Create)); 250 registry->AddInterface(base::Bind(&FilePatcherImpl::Create));
249 #if !defined(OS_ANDROID) 251 #if !defined(OS_ANDROID)
250 registry->AddInterface<net::interfaces::ProxyResolverFactory>( 252 registry->AddInterface<net::interfaces::ProxyResolverFactory>(
251 base::Bind(CreateProxyResolverFactory)); 253 base::Bind(CreateProxyResolverFactory));
252 registry->AddInterface(base::Bind(CreateResourceUsageReporter)); 254 registry->AddInterface(base::Bind(CreateResourceUsageReporter));
253 registry->AddInterface(base::Bind(&ProfileImportHandler::Create)); 255 registry->AddInterface(base::Bind(&ProfileImportHandler::Create));
256 #else
257 registry->AddInterface(base::Bind(&payments::PaymentManifestParser::Create));
254 #endif 258 #endif
255 registry->AddInterface( 259 registry->AddInterface(
256 base::Bind(&safe_json::SafeJsonParserMojoImpl::Create)); 260 base::Bind(&safe_json::SafeJsonParserMojoImpl::Create));
257 #if defined(OS_WIN) 261 #if defined(OS_WIN)
258 registry->AddInterface(base::Bind(&ShellHandlerImpl::Create)); 262 registry->AddInterface(base::Bind(&ShellHandlerImpl::Create));
259 #endif 263 #endif
260 #if defined(OS_CHROMEOS) 264 #if defined(OS_CHROMEOS)
261 registry->AddInterface(base::Bind(&ZipFileCreatorImpl::Create)); 265 registry->AddInterface(base::Bind(&ZipFileCreatorImpl::Create));
262 #endif 266 #endif
263 } 267 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 safe_browsing::dmg::AnalyzeDMGFile( 301 safe_browsing::dmg::AnalyzeDMGFile(
298 IPC::PlatformFileForTransitToFile(dmg_file), &results); 302 IPC::PlatformFileForTransitToFile(dmg_file), &results);
299 content::UtilityThread::Get()->Send( 303 content::UtilityThread::Get()->Send(
300 new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished( 304 new ChromeUtilityHostMsg_AnalyzeDmgFileForDownloadProtection_Finished(
301 results)); 305 results));
302 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); 306 content::UtilityThread::Get()->ReleaseProcessIfNeeded();
303 } 307 }
304 #endif // defined(OS_MACOSX) 308 #endif // defined(OS_MACOSX)
305 309
306 #endif // defined(FULL_SAFE_BROWSING) 310 #endif // defined(FULL_SAFE_BROWSING)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698