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

Side by Side Diff: content/utility/utility_service_factory.cc

Issue 2968293002: Introduce SystemNetworkContextManager. (Closed)
Patch Set: Fix windows non-component build (??) Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/utility/utility_service_factory.h" 5 #include "content/utility/utility_service_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "content/child/child_process.h" 9 #include "content/child/child_process.h"
10 #include "content/network/network_service.h" 10 #include "content/network/network_service_impl.h"
11 #include "content/public/common/content_client.h" 11 #include "content/public/common/content_client.h"
12 #include "content/public/common/content_features.h" 12 #include "content/public/common/content_features.h"
13 #include "content/public/common/content_switches.h" 13 #include "content/public/common/content_switches.h"
14 #include "content/public/common/service_names.mojom.h" 14 #include "content/public/common/service_names.mojom.h"
15 #include "content/public/utility/content_utility_client.h" 15 #include "content/public/utility/content_utility_client.h"
16 #include "content/public/utility/utility_thread.h" 16 #include "content/public/utility/utility_thread.h"
17 #include "content/utility/utility_thread_impl.h" 17 #include "content/utility/utility_thread_impl.h"
18 #include "ppapi/features/features.h" 18 #include "ppapi/features/features.h"
19 #include "services/data_decoder/data_decoder_service.h" 19 #include "services/data_decoder/data_decoder_service.h"
20 #include "services/data_decoder/public/interfaces/constants.mojom.h" 20 #include "services/data_decoder/public/interfaces/constants.mojom.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 void UtilityServiceFactory::OnLoadFailed() { 127 void UtilityServiceFactory::OnLoadFailed() {
128 UtilityThreadImpl* utility_thread = 128 UtilityThreadImpl* utility_thread =
129 static_cast<UtilityThreadImpl*>(UtilityThread::Get()); 129 static_cast<UtilityThreadImpl*>(UtilityThread::Get());
130 utility_thread->Shutdown(); 130 utility_thread->Shutdown();
131 utility_thread->ReleaseProcessIfNeeded(); 131 utility_thread->ReleaseProcessIfNeeded();
132 } 132 }
133 133
134 std::unique_ptr<service_manager::Service> 134 std::unique_ptr<service_manager::Service>
135 UtilityServiceFactory::CreateNetworkService() { 135 UtilityServiceFactory::CreateNetworkService() {
136 return base::MakeUnique<NetworkService>(std::move(network_registry_)); 136 return base::MakeUnique<NetworkServiceImpl>(std::move(network_registry_));
137 } 137 }
138 138
139 } // namespace content 139 } // namespace content
OLDNEW
« content/public/test/test_url_loader_client.h ('K') | « content/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698