| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 #include "components/crash/content/browser/crash_handler_host_linux.h" | 56 #include "components/crash/content/browser/crash_handler_host_linux.h" |
| 57 #include "content/public/common/content_descriptors.h" | 57 #include "content/public/common/content_descriptors.h" |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 #if defined(OS_WIN) | 60 #if defined(OS_WIN) |
| 61 #include "content/common/sandbox_win.h" | 61 #include "content/common/sandbox_win.h" |
| 62 #include "sandbox/win/src/sandbox.h" | 62 #include "sandbox/win/src/sandbox.h" |
| 63 #endif | 63 #endif |
| 64 | 64 |
| 65 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) | 65 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) |
| 66 #include "media/mojo/services/mojo_media_application_factory.h" // nogncheck | 66 #include "media/mojo/services/media_service_factory.h" // nogncheck |
| 67 #endif | 67 #endif |
| 68 | 68 |
| 69 namespace content { | 69 namespace content { |
| 70 | 70 |
| 71 namespace { | 71 namespace { |
| 72 | 72 |
| 73 ShellContentBrowserClient* g_browser_client; | 73 ShellContentBrowserClient* g_browser_client; |
| 74 bool g_swap_processes_for_redirect = false; | 74 bool g_swap_processes_for_redirect = false; |
| 75 | 75 |
| 76 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) | 76 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 if (url.scheme() == kProtocolList[i]) | 184 if (url.scheme() == kProtocolList[i]) |
| 185 return true; | 185 return true; |
| 186 } | 186 } |
| 187 return false; | 187 return false; |
| 188 } | 188 } |
| 189 | 189 |
| 190 void ShellContentBrowserClient::RegisterInProcessServices( | 190 void ShellContentBrowserClient::RegisterInProcessServices( |
| 191 StaticServiceMap* services) { | 191 StaticServiceMap* services) { |
| 192 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) | 192 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) |
| 193 content::ServiceInfo info; | 193 content::ServiceInfo info; |
| 194 info.factory = base::Bind(&media::CreateMojoMediaApplication); | 194 info.factory = base::Bind(&media::CreateMediaService); |
| 195 services->insert(std::make_pair("service:media", info)); | 195 services->insert(std::make_pair("service:media", info)); |
| 196 #endif | 196 #endif |
| 197 } | 197 } |
| 198 | 198 |
| 199 void ShellContentBrowserClient::RegisterOutOfProcessServices( | 199 void ShellContentBrowserClient::RegisterOutOfProcessServices( |
| 200 OutOfProcessServiceMap* services) { | 200 OutOfProcessServiceMap* services) { |
| 201 services->insert(std::make_pair(kTestServiceUrl, | 201 services->insert(std::make_pair(kTestServiceUrl, |
| 202 base::UTF8ToUTF16("Test Service"))); | 202 base::UTF8ToUTF16("Test Service"))); |
| 203 } | 203 } |
| 204 | 204 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 ShellBrowserContext* ShellContentBrowserClient::browser_context() { | 372 ShellBrowserContext* ShellContentBrowserClient::browser_context() { |
| 373 return shell_browser_main_parts_->browser_context(); | 373 return shell_browser_main_parts_->browser_context(); |
| 374 } | 374 } |
| 375 | 375 |
| 376 ShellBrowserContext* | 376 ShellBrowserContext* |
| 377 ShellContentBrowserClient::off_the_record_browser_context() { | 377 ShellContentBrowserClient::off_the_record_browser_context() { |
| 378 return shell_browser_main_parts_->off_the_record_browser_context(); | 378 return shell_browser_main_parts_->off_the_record_browser_context(); |
| 379 } | 379 } |
| 380 | 380 |
| 381 } // namespace content | 381 } // namespace content |
| OLD | NEW |