xref: /aosp_15_r20/external/cronet/components/nacl/loader/nacl_main_platform_delegate.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2013 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef COMPONENTS_NACL_LOADER_NACL_MAIN_PLATFORM_DELEGATE_H_
6 #define COMPONENTS_NACL_LOADER_NACL_MAIN_PLATFORM_DELEGATE_H_
7 
8 namespace content {
9 struct MainFunctionParams;
10 }
11 
12 class NaClMainPlatformDelegate {
13  public:
14   NaClMainPlatformDelegate() = default;
15 
16   NaClMainPlatformDelegate(const NaClMainPlatformDelegate&) = delete;
17   NaClMainPlatformDelegate& operator=(const NaClMainPlatformDelegate&) = delete;
18 
19   // Initiate Lockdown.
20   void EnableSandbox(const content::MainFunctionParams& parameters);
21 };
22 
23 #endif  // COMPONENTS_NACL_LOADER_NACL_MAIN_PLATFORM_DELEGATE_H_
24