summaryrefslogtreecommitdiffstats
path: root/chrome/nacl
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/nacl')
-rw-r--r--chrome/nacl/nacl_exe_win_64.cc8
-rw-r--r--chrome/nacl/nacl_helper_linux.cc2
-rw-r--r--chrome/nacl/nacl_main.cc4
-rw-r--r--chrome/nacl/nacl_main_platform_delegate.h7
-rw-r--r--chrome/nacl/nacl_main_platform_delegate_linux.cc2
-rw-r--r--chrome/nacl/nacl_main_platform_delegate_mac.mm2
-rw-r--r--chrome/nacl/nacl_main_platform_delegate_win.cc2
7 files changed, 14 insertions, 13 deletions
diff --git a/chrome/nacl/nacl_exe_win_64.cc b/chrome/nacl/nacl_exe_win_64.cc
index c347c7b..9bddf80 100644
--- a/chrome/nacl/nacl_exe_win_64.cc
+++ b/chrome/nacl/nacl_exe_win_64.cc
@@ -17,16 +17,16 @@
#include "chrome/nacl/nacl_listener.h"
#include "chrome/nacl/nacl_main_platform_delegate.h"
#include "content/common/hi_res_timer_manager.h"
-#include "content/common/main_function_params.h"
#include "content/public/app/startup_helper_win.h"
+#include "content/public/common/main_function_params.h"
#include "content/public/common/sandbox_init.h"
#include "sandbox/src/sandbox_types.h"
-extern int NaClMain(const MainFunctionParams&);
+extern int NaClMain(const content::MainFunctionParams&);
// main() routine for the NaCl broker process.
// This is necessary for supporting NaCl in Chrome on Win64.
-int NaClBrokerMain(const MainFunctionParams& parameters) {
+int NaClBrokerMain(const content::MainFunctionParams& parameters) {
const CommandLine& parsed_command_line = parameters.command_line;
MessageLoopForIO main_message_loop;
@@ -67,7 +67,7 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
// Die if the sandbox can't be enabled.
CHECK(sandbox_initialized_ok) << "Error initializing sandbox for "
<< process_type;
- MainFunctionParams main_params(command_line);
+ content::MainFunctionParams main_params(command_line);
main_params.sandbox_info = &sandbox_info;
if (process_type == switches::kNaClLoaderProcess)
diff --git a/chrome/nacl/nacl_helper_linux.cc b/chrome/nacl/nacl_helper_linux.cc
index 3f8646f..a90b589 100644
--- a/chrome/nacl/nacl_helper_linux.cc
+++ b/chrome/nacl/nacl_helper_linux.cc
@@ -15,12 +15,12 @@
#include <vector>
#include "base/at_exit.h"
+#include "base/command_line.h"
#include "base/eintr_wrapper.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/rand_util.h"
#include "chrome/nacl/nacl_listener.h"
-#include "content/common/main_function_params.h"
#include "content/common/unix_domain_socket_posix.h"
#include "ipc/ipc_switches.h"
#include "native_client/src/trusted/service_runtime/sel_memory.h"
diff --git a/chrome/nacl/nacl_main.cc b/chrome/nacl/nacl_main.cc
index 87e37eb..3029dbb 100644
--- a/chrome/nacl/nacl_main.cc
+++ b/chrome/nacl/nacl_main.cc
@@ -14,7 +14,7 @@
#include "chrome/nacl/nacl_main_platform_delegate.h"
#include "content/common/child_process.h"
#include "content/common/hi_res_timer_manager.h"
-#include "content/common/main_function_params.h"
+#include "content/public/common/main_function_params.h"
// This function provides some ways to test crash and assertion handling
// behavior of the renderer.
@@ -29,7 +29,7 @@ static void HandleNaClTestParameters(const CommandLine& command_line) {
}
// main() routine for the NaCl loader process.
-int NaClMain(const MainFunctionParams& parameters) {
+int NaClMain(const content::MainFunctionParams& parameters) {
const CommandLine& parsed_command_line = parameters.command_line;
// This function allows pausing execution using the --nacl-startup-dialog
diff --git a/chrome/nacl/nacl_main_platform_delegate.h b/chrome/nacl/nacl_main_platform_delegate.h
index b1c56f6..7979516 100644
--- a/chrome/nacl/nacl_main_platform_delegate.h
+++ b/chrome/nacl/nacl_main_platform_delegate.h
@@ -7,14 +7,15 @@
#pragma once
#include "base/native_library.h"
-#include "content/common/main_function_params.h"
+#include "content/public/common/main_function_params.h"
typedef bool (*RunNaClLoaderTests)(void);
const char kNaClLoaderTestCall[] = "RunNaClLoaderTests";
class NaClMainPlatformDelegate {
public:
- explicit NaClMainPlatformDelegate(const MainFunctionParams& parameters);
+ explicit NaClMainPlatformDelegate(
+ const content::MainFunctionParams& parameters);
~NaClMainPlatformDelegate();
// Called first thing and last thing in the process' lifecycle, i.e. before
@@ -35,7 +36,7 @@ class NaClMainPlatformDelegate {
bool RunSandboxTests();
private:
- const MainFunctionParams& parameters_;
+ const content::MainFunctionParams& parameters_;
base::NativeLibrary sandbox_test_module_;
DISALLOW_COPY_AND_ASSIGN(NaClMainPlatformDelegate);
diff --git a/chrome/nacl/nacl_main_platform_delegate_linux.cc b/chrome/nacl/nacl_main_platform_delegate_linux.cc
index d8e4b23..2941c55 100644
--- a/chrome/nacl/nacl_main_platform_delegate_linux.cc
+++ b/chrome/nacl/nacl_main_platform_delegate_linux.cc
@@ -8,7 +8,7 @@
#include "seccompsandbox/sandbox.h"
NaClMainPlatformDelegate::NaClMainPlatformDelegate(
- const MainFunctionParams& parameters)
+ const content::MainFunctionParams& parameters)
: parameters_(parameters), sandbox_test_module_(NULL) {
}
diff --git a/chrome/nacl/nacl_main_platform_delegate_mac.mm b/chrome/nacl/nacl_main_platform_delegate_mac.mm
index c5eb65a..6e3121e 100644
--- a/chrome/nacl/nacl_main_platform_delegate_mac.mm
+++ b/chrome/nacl/nacl_main_platform_delegate_mac.mm
@@ -14,7 +14,7 @@
#include "content/public/common/sandbox_init.h"
NaClMainPlatformDelegate::NaClMainPlatformDelegate(
- const MainFunctionParams& parameters)
+ const content::MainFunctionParams& parameters)
: parameters_(parameters), sandbox_test_module_(NULL) {
}
diff --git a/chrome/nacl/nacl_main_platform_delegate_win.cc b/chrome/nacl/nacl_main_platform_delegate_win.cc
index 1ce923e..d2ce5f3 100644
--- a/chrome/nacl/nacl_main_platform_delegate_win.cc
+++ b/chrome/nacl/nacl_main_platform_delegate_win.cc
@@ -12,7 +12,7 @@
#include "sandbox/src/sandbox.h"
NaClMainPlatformDelegate::NaClMainPlatformDelegate(
- const MainFunctionParams& parameters)
+ const content::MainFunctionParams& parameters)
: parameters_(parameters), sandbox_test_module_(NULL) {
}