OLD | NEW |
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 "content/public/app/content_main_runner.h" | 5 #include "content/public/app/content_main_runner.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 #include <string> | 10 #include <string> |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 int RunNamedProcessTypeMain( | 350 int RunNamedProcessTypeMain( |
351 const std::string& process_type, | 351 const std::string& process_type, |
352 const MainFunctionParams& main_function_params, | 352 const MainFunctionParams& main_function_params, |
353 ContentMainDelegate* delegate) { | 353 ContentMainDelegate* delegate) { |
354 static const MainFunction kMainFunctions[] = { | 354 static const MainFunction kMainFunctions[] = { |
355 #if !defined(CHROME_MULTIPLE_DLL_CHILD) | 355 #if !defined(CHROME_MULTIPLE_DLL_CHILD) |
356 { "", BrowserMain }, | 356 { "", BrowserMain }, |
357 #endif | 357 #endif |
358 #if !defined(CHROME_MULTIPLE_DLL_BROWSER) | 358 #if !defined(CHROME_MULTIPLE_DLL_BROWSER) |
359 #if defined(ENABLE_PLUGINS) | 359 #if defined(ENABLE_PLUGINS) |
360 #if !defined(OS_LINUX) | |
361 { switches::kPluginProcess, PluginMain }, | |
362 #endif | |
363 { switches::kPpapiPluginProcess, PpapiPluginMain }, | 360 { switches::kPpapiPluginProcess, PpapiPluginMain }, |
364 { switches::kPpapiBrokerProcess, PpapiBrokerMain }, | 361 { switches::kPpapiBrokerProcess, PpapiBrokerMain }, |
365 #endif // ENABLE_PLUGINS | 362 #endif // ENABLE_PLUGINS |
366 { switches::kUtilityProcess, UtilityMain }, | 363 { switches::kUtilityProcess, UtilityMain }, |
367 { switches::kRendererProcess, RendererMain }, | 364 { switches::kRendererProcess, RendererMain }, |
368 { switches::kGpuProcess, GpuMain }, | 365 { switches::kGpuProcess, GpuMain }, |
369 #if defined(OS_ANDROID) | 366 #if defined(OS_ANDROID) |
370 { switches::kDownloadProcess, DownloadMain}, | 367 { switches::kDownloadProcess, DownloadMain}, |
371 #endif | 368 #endif |
372 #endif // !CHROME_MULTIPLE_DLL_BROWSER | 369 #endif // !CHROME_MULTIPLE_DLL_BROWSER |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 | 807 |
811 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 808 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
812 }; | 809 }; |
813 | 810 |
814 // static | 811 // static |
815 ContentMainRunner* ContentMainRunner::Create() { | 812 ContentMainRunner* ContentMainRunner::Create() { |
816 return new ContentMainRunnerImpl(); | 813 return new ContentMainRunnerImpl(); |
817 } | 814 } |
818 | 815 |
819 } // namespace content | 816 } // namespace content |
OLD | NEW |