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

Side by Side Diff: content/common/sandbox_init_wrapper.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: fix exports for switches, content_main Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_COMMON_SANDBOX_INIT_WRAPPER_H_ 5 #ifndef CONTENT_COMMON_SANDBOX_INIT_WRAPPER_H_
6 #define CONTENT_COMMON_SANDBOX_INIT_WRAPPER_H_ 6 #define CONTENT_COMMON_SANDBOX_INIT_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 // Wraps the sandbox initialization and platform variables to consolodate 9 // Wraps the sandbox initialization and platform variables to consolodate
10 // the code and reduce the number of platform ifdefs elsewhere. The POSIX 10 // the code and reduce the number of platform ifdefs elsewhere. The POSIX
11 // version of this wrapper is basically empty. 11 // version of this wrapper is basically empty.
12 12
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 14
15 #include <string> 15 #include <string>
16 16
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "content/common/content_export.h"
19
18 #if defined(OS_WIN) 20 #if defined(OS_WIN)
19 #include "sandbox/src/sandbox.h" 21 #include "sandbox/src/sandbox.h"
20 #endif 22 #endif
21 23
22 class CommandLine; 24 class CommandLine;
23 25
24 #if defined(OS_WIN) 26 #if defined(OS_WIN)
25 27
26 class SandboxInitWrapper { 28 class CONTENT_EXPORT SandboxInitWrapper {
27 public: 29 public:
28 SandboxInitWrapper() : broker_services_(), target_services_() { } 30 SandboxInitWrapper() : broker_services_(), target_services_() { }
29 // SetServices() needs to be called before InitializeSandbox() on Win32 with 31 // SetServices() needs to be called before InitializeSandbox() on Win32 with
30 // the info received from the chrome exe main. 32 // the info received from the chrome exe main.
31 void SetServices(sandbox::SandboxInterfaceInfo* sandbox_info); 33 void SetServices(sandbox::SandboxInterfaceInfo* sandbox_info);
32 sandbox::BrokerServices* BrokerServices() const { return broker_services_; } 34 sandbox::BrokerServices* BrokerServices() const { return broker_services_; }
33 sandbox::TargetServices* TargetServices() const { return target_services_; } 35 sandbox::TargetServices* TargetServices() const { return target_services_; }
34 36
35 // Initialize the sandbox for renderer, gpu, utility, worker, nacl, and 37 // Initialize the sandbox for renderer, gpu, utility, worker, nacl, and
36 // plug-in processes, depending on the command line flags. The browser 38 // plug-in processes, depending on the command line flags. The browser
(...skipping 24 matching lines...) Expand all
61 bool InitializeSandbox(const CommandLine& parsed_command_line, 63 bool InitializeSandbox(const CommandLine& parsed_command_line,
62 const std::string& process_type); 64 const std::string& process_type);
63 65
64 private: 66 private:
65 DISALLOW_COPY_AND_ASSIGN(SandboxInitWrapper); 67 DISALLOW_COPY_AND_ASSIGN(SandboxInitWrapper);
66 }; 68 };
67 69
68 #endif 70 #endif
69 71
70 #endif // CONTENT_COMMON_SANDBOX_INIT_WRAPPER_H_ 72 #endif // CONTENT_COMMON_SANDBOX_INIT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698