| 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 #ifndef CHROME_NACL_NACL_MAIN_PLATFORM_DELEGATE_H_ | 5 #ifndef CHROME_NACL_NACL_MAIN_PLATFORM_DELEGATE_H_ |
| 6 #define CHROME_NACL_NACL_MAIN_PLATFORM_DELEGATE_H_ | 6 #define CHROME_NACL_NACL_MAIN_PLATFORM_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/public/common/main_function_params.h" | 9 |
| 10 namespace content { |
| 11 struct MainFunctionParams; |
| 12 } |
| 10 | 13 |
| 11 class NaClMainPlatformDelegate { | 14 class NaClMainPlatformDelegate { |
| 12 public: | 15 public: |
| 13 explicit NaClMainPlatformDelegate( | 16 NaClMainPlatformDelegate() = default; |
| 14 const content::MainFunctionParams& parameters); | |
| 15 ~NaClMainPlatformDelegate(); | |
| 16 | 17 |
| 17 // Initiate Lockdown. | 18 // Initiate Lockdown. |
| 18 void EnableSandbox(); | 19 void EnableSandbox(const content::MainFunctionParams& parameters); |
| 19 | 20 |
| 20 private: | 21 private: |
| 21 const content::MainFunctionParams& parameters_; | |
| 22 | |
| 23 DISALLOW_COPY_AND_ASSIGN(NaClMainPlatformDelegate); | 22 DISALLOW_COPY_AND_ASSIGN(NaClMainPlatformDelegate); |
| 24 }; | 23 }; |
| 25 | 24 |
| 26 #endif // CHROME_NACL_NACL_MAIN_PLATFORM_DELEGATE_H_ | 25 #endif // CHROME_NACL_NACL_MAIN_PLATFORM_DELEGATE_H_ |
| OLD | NEW |