Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: content/renderer/renderer_main_platform_delegate.h

Issue 285283003: Remove flag --test-sandbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change requested by resek, thanks Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_ 5 #ifndef CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_
6 #define CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_ 6 #define CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 explicit RendererMainPlatformDelegate( 28 explicit RendererMainPlatformDelegate(
29 const MainFunctionParams& parameters); 29 const MainFunctionParams& parameters);
30 ~RendererMainPlatformDelegate(); 30 ~RendererMainPlatformDelegate();
31 31
32 // Called first thing and last thing in the process' lifecycle, i.e. before 32 // Called first thing and last thing in the process' lifecycle, i.e. before
33 // the sandbox is enabled. 33 // the sandbox is enabled.
34 void PlatformInitialize(); 34 void PlatformInitialize();
35 void PlatformUninitialize(); 35 void PlatformUninitialize();
36 36
37 // Gives us an opportunity to initialize state used for tests before enabling
38 // the sandbox.
39 bool InitSandboxTests(bool no_sandbox);
40
41 // Initiate Lockdown, returns true on success. 37 // Initiate Lockdown, returns true on success.
42 bool EnableSandbox(); 38 bool EnableSandbox();
43 39
44 // Runs Sandbox tests.
45 void RunSandboxTests(bool no_sandbox);
46
47 private: 40 private:
48 const MainFunctionParams& parameters_; 41 const MainFunctionParams& parameters_;
49 #if defined(OS_WIN) 42 #if defined(OS_WIN)
50 HMODULE sandbox_test_module_; 43 HMODULE sandbox_test_module_;
51 #elif defined(OS_MACOSX) 44 #elif defined(OS_MACOSX)
52 NSBundle* sandbox_tests_bundle_; 45 NSBundle* sandbox_tests_bundle_;
53 #endif 46 #endif
54 47
55 DISALLOW_COPY_AND_ASSIGN(RendererMainPlatformDelegate); 48 DISALLOW_COPY_AND_ASSIGN(RendererMainPlatformDelegate);
56 }; 49 };
57 50
58 } // namespace content 51 } // namespace content
59 52
60 #endif // CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_ 53 #endif // CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_main.cc ('k') | content/renderer/renderer_main_platform_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698