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

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

Issue 1118473005: Apply automated fixits for Chrome clang plugin to sandbox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « sandbox/win/src/sync_dispatcher.h ('k') | sandbox/win/src/win2k_threadpool.h » ('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) 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 SANDBOX_SRC_TARGET_SERVICES_H__ 5 #ifndef SANDBOX_SRC_TARGET_SERVICES_H__
6 #define SANDBOX_SRC_TARGET_SERVICES_H__ 6 #define SANDBOX_SRC_TARGET_SERVICES_H__
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "sandbox/win/src/sandbox.h" 9 #include "sandbox/win/src/sandbox.h"
10 #include "sandbox/win/src/win_utils.h" 10 #include "sandbox/win/src/win_utils.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // This class is an implementation of the TargetServices. 37 // This class is an implementation of the TargetServices.
38 // Look in the documentation of sandbox::TargetServices for more info. 38 // Look in the documentation of sandbox::TargetServices for more info.
39 // Do NOT add a destructor to this class without changing the implementation of 39 // Do NOT add a destructor to this class without changing the implementation of
40 // the factory method. 40 // the factory method.
41 class TargetServicesBase : public TargetServices { 41 class TargetServicesBase : public TargetServices {
42 public: 42 public:
43 TargetServicesBase(); 43 TargetServicesBase();
44 44
45 // Public interface of TargetServices. 45 // Public interface of TargetServices.
46 virtual ResultCode Init(); 46 ResultCode Init() override;
47 virtual void LowerToken(); 47 void LowerToken() override;
48 virtual ProcessState* GetState(); 48 ProcessState* GetState() override;
49 virtual ResultCode DuplicateHandle(HANDLE source_handle, 49 ResultCode DuplicateHandle(HANDLE source_handle,
50 DWORD target_process_id, 50 DWORD target_process_id,
51 HANDLE* target_handle, 51 HANDLE* target_handle,
52 DWORD desired_access, 52 DWORD desired_access,
53 DWORD options); 53 DWORD options) override;
54 54
55 // Factory method. 55 // Factory method.
56 static TargetServicesBase* GetInstance(); 56 static TargetServicesBase* GetInstance();
57 57
58 // Sends a simple IPC Message that has a well-known answer. Returns true 58 // Sends a simple IPC Message that has a well-known answer. Returns true
59 // if the IPC was successful and false otherwise. There are 2 versions of 59 // if the IPC was successful and false otherwise. There are 2 versions of
60 // this test: 1 and 2. The first one send a simple message while the 60 // this test: 1 and 2. The first one send a simple message while the
61 // second one send a message with an in/out param. 61 // second one send a message with an in/out param.
62 bool TestIPCPing(int version); 62 bool TestIPCPing(int version);
63 63
64 private: 64 private:
65 ProcessState process_state_; 65 ProcessState process_state_;
66 DISALLOW_COPY_AND_ASSIGN(TargetServicesBase); 66 DISALLOW_COPY_AND_ASSIGN(TargetServicesBase);
67 }; 67 };
68 68
69 } // namespace sandbox 69 } // namespace sandbox
70 70
71 #endif // SANDBOX_SRC_TARGET_SERVICES_H__ 71 #endif // SANDBOX_SRC_TARGET_SERVICES_H__
OLDNEW
« no previous file with comments | « sandbox/win/src/sync_dispatcher.h ('k') | sandbox/win/src/win2k_threadpool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698