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

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

Issue 6878002: Move renderer_main and renderer_glue to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
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 CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_
6 #define CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_
7 #pragma once
8
9 #include "content/common/main_function_params.h"
10
11 class RendererMainPlatformDelegate {
12 public:
13 explicit RendererMainPlatformDelegate(const MainFunctionParams& parameters);
14 ~RendererMainPlatformDelegate();
15
16 // Called first thing and last thing in the process' lifecycle, i.e. before
17 // the sandbox is enabled.
18 void PlatformInitialize();
19 void PlatformUninitialize();
20
21 // Gives us an opportunity to initialize state used for tests before enabling
22 // the sandbox.
23 bool InitSandboxTests(bool no_sandbox);
24
25 // Initiate Lockdown, returns true on success.
26 bool EnableSandbox();
27
28 // Runs Sandbox tests.
29 void RunSandboxTests();
30
31 private:
32 const MainFunctionParams& parameters_;
33 #if defined(OS_WIN)
34 HMODULE sandbox_test_module_;
35 #endif
36
37 DISALLOW_COPY_AND_ASSIGN(RendererMainPlatformDelegate);
38 };
39
40 #endif // CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_main.cc ('k') | chrome/renderer/renderer_main_platform_delegate_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698