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

Side by Side Diff: sandbox/win/src/process_thread_policy.h

Issue 109843003: Replace wstring with string16 in sandbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « sandbox/win/src/process_thread_dispatcher.cc ('k') | sandbox/win/src/process_thread_policy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2010 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 SANDBOX_SRC_PROCESS_THREAD_POLICY_H_ 5 #ifndef SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
6 #define SANDBOX_SRC_PROCESS_THREAD_POLICY_H_ 6 #define SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "sandbox/win/src/policy_low_level.h" 10 #include "sandbox/win/src/policy_low_level.h"
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/strings/string16.h"
13 #include "sandbox/win/src/crosscall_server.h" 14 #include "sandbox/win/src/crosscall_server.h"
14 #include "sandbox/win/src/sandbox_policy.h" 15 #include "sandbox/win/src/sandbox_policy.h"
15 16
16 namespace sandbox { 17 namespace sandbox {
17 18
18 enum EvalResult; 19 enum EvalResult;
19 20
20 // This class centralizes most of the knowledge related to process execution. 21 // This class centralizes most of the knowledge related to process execution.
21 class ProcessPolicy { 22 class ProcessPolicy {
22 public: 23 public:
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 uint32 attributes, 65 uint32 attributes,
65 HANDLE* handle); 66 HANDLE* handle);
66 67
67 // Processes a 'CreateProcessW()' request from the target. 68 // Processes a 'CreateProcessW()' request from the target.
68 // 'client_info' : the target process that is making the request. 69 // 'client_info' : the target process that is making the request.
69 // 'eval_result' : The desired policy action to accomplish. 70 // 'eval_result' : The desired policy action to accomplish.
70 // 'app_name' : The full path of the process to be created. 71 // 'app_name' : The full path of the process to be created.
71 // 'command_line' : The command line passed to the created process. 72 // 'command_line' : The command line passed to the created process.
72 static DWORD CreateProcessWAction(EvalResult eval_result, 73 static DWORD CreateProcessWAction(EvalResult eval_result,
73 const ClientInfo& client_info, 74 const ClientInfo& client_info,
74 const std::wstring &app_name, 75 const base::string16 &app_name,
75 const std::wstring &command_line, 76 const base::string16 &command_line,
76 PROCESS_INFORMATION* process_info); 77 PROCESS_INFORMATION* process_info);
77 }; 78 };
78 79
79 } // namespace sandbox 80 } // namespace sandbox
80 81
81 82
82 #endif // SANDBOX_SRC_PROCESS_THREAD_POLICY_H_ 83 #endif // SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
OLDNEW
« no previous file with comments | « sandbox/win/src/process_thread_dispatcher.cc ('k') | sandbox/win/src/process_thread_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698