OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shell/browser/shell_content_browser_client.h" | 5 #include "content/shell/browser/shell_content_browser_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/base_switches.h" | 10 #include "base/base_switches.h" |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 #endif | 213 #endif |
214 } | 214 } |
215 | 215 |
216 void ShellContentBrowserClient::RegisterOutOfProcessServices( | 216 void ShellContentBrowserClient::RegisterOutOfProcessServices( |
217 OutOfProcessServiceMap* services) { | 217 OutOfProcessServiceMap* services) { |
218 services->insert(std::make_pair(kTestServiceUrl, | 218 services->insert(std::make_pair(kTestServiceUrl, |
219 base::UTF8ToUTF16("Test Service"))); | 219 base::UTF8ToUTF16("Test Service"))); |
220 } | 220 } |
221 | 221 |
222 std::unique_ptr<base::Value> | 222 std::unique_ptr<base::Value> |
223 ShellContentBrowserClient::GetServiceManifestOverlay( | 223 ShellContentBrowserClient::GetServiceManifestOverlay(base::StringPiece name) { |
224 const std::string& name) { | |
225 int id = -1; | 224 int id = -1; |
226 if (name == content::mojom::kBrowserServiceName) | 225 if (name == content::mojom::kBrowserServiceName) |
227 id = IDR_CONTENT_SHELL_BROWSER_MANIFEST_OVERLAY; | 226 id = IDR_CONTENT_SHELL_BROWSER_MANIFEST_OVERLAY; |
228 else if (name == content::mojom::kRendererServiceName) | 227 else if (name == content::mojom::kRendererServiceName) |
229 id = IDR_CONTENT_SHELL_RENDERER_MANIFEST_OVERLAY; | 228 id = IDR_CONTENT_SHELL_RENDERER_MANIFEST_OVERLAY; |
230 else if (name == content::mojom::kUtilityServiceName) | 229 else if (name == content::mojom::kUtilityServiceName) |
231 id = IDR_CONTENT_SHELL_UTILITY_MANIFEST_OVERLAY; | 230 id = IDR_CONTENT_SHELL_UTILITY_MANIFEST_OVERLAY; |
232 if (id == -1) | 231 if (id == -1) |
233 return nullptr; | 232 return nullptr; |
234 | 233 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 ShellBrowserContext* ShellContentBrowserClient::browser_context() { | 395 ShellBrowserContext* ShellContentBrowserClient::browser_context() { |
397 return shell_browser_main_parts_->browser_context(); | 396 return shell_browser_main_parts_->browser_context(); |
398 } | 397 } |
399 | 398 |
400 ShellBrowserContext* | 399 ShellBrowserContext* |
401 ShellContentBrowserClient::off_the_record_browser_context() { | 400 ShellContentBrowserClient::off_the_record_browser_context() { |
402 return shell_browser_main_parts_->off_the_record_browser_context(); | 401 return shell_browser_main_parts_->off_the_record_browser_context(); |
403 } | 402 } |
404 | 403 |
405 } // namespace content | 404 } // namespace content |
OLD | NEW |