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

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

Issue 8082019: more content exports needed for unit_tests and browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert export of browser_accessibility_win for now Created 9 years, 2 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
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 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 #pragma once 7 #pragma once
8 8
9 #include "content/common/content_export.h"
9 #include "content/common/main_function_params.h" 10 #include "content/common/main_function_params.h"
10 11
11 class RendererMainPlatformDelegate { 12 class CONTENT_EXPORT RendererMainPlatformDelegate {
12 public: 13 public:
13 explicit RendererMainPlatformDelegate(const MainFunctionParams& parameters); 14 explicit RendererMainPlatformDelegate(const MainFunctionParams& parameters);
14 ~RendererMainPlatformDelegate(); 15 ~RendererMainPlatformDelegate();
15 16
16 // Called first thing and last thing in the process' lifecycle, i.e. before 17 // Called first thing and last thing in the process' lifecycle, i.e. before
17 // the sandbox is enabled. 18 // the sandbox is enabled.
18 void PlatformInitialize(); 19 void PlatformInitialize();
19 void PlatformUninitialize(); 20 void PlatformUninitialize();
20 21
21 // Gives us an opportunity to initialize state used for tests before enabling 22 // Gives us an opportunity to initialize state used for tests before enabling
22 // the sandbox. 23 // the sandbox.
23 bool InitSandboxTests(bool no_sandbox); 24 bool InitSandboxTests(bool no_sandbox);
24 25
25 // Initiate Lockdown, returns true on success. 26 // Initiate Lockdown, returns true on success.
26 bool EnableSandbox(); 27 bool EnableSandbox();
27 28
28 // Runs Sandbox tests. 29 // Runs Sandbox tests.
29 void RunSandboxTests(); 30 void RunSandboxTests();
30 31
31 private: 32 private:
32 const MainFunctionParams& parameters_; 33 const MainFunctionParams& parameters_;
33 #if defined(OS_WIN) 34 #if defined(OS_WIN)
34 HMODULE sandbox_test_module_; 35 HMODULE sandbox_test_module_;
35 #endif 36 #endif
36 37
37 DISALLOW_COPY_AND_ASSIGN(RendererMainPlatformDelegate); 38 DISALLOW_COPY_AND_ASSIGN(RendererMainPlatformDelegate);
38 }; 39 };
39 40
40 #endif // CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_ 41 #endif // CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698