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

Unified Diff: sandbox/win/src/target_services.h

Issue 1851213002: Remove sandbox on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nacl compile issues Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/win/src/target_process.cc ('k') | sandbox/win/src/target_services.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/target_services.h
diff --git a/sandbox/win/src/target_services.h b/sandbox/win/src/target_services.h
deleted file mode 100644
index 37169485d6c3d1ad123746858e6c9208b5cfa20d..0000000000000000000000000000000000000000
--- a/sandbox/win/src/target_services.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SANDBOX_SRC_TARGET_SERVICES_H__
-#define SANDBOX_SRC_TARGET_SERVICES_H__
-
-#include "base/macros.h"
-#include "sandbox/win/src/sandbox.h"
-#include "sandbox/win/src/win_utils.h"
-
-namespace sandbox {
-
-class ProcessState {
- public:
- ProcessState();
- // Returns true if kernel32.dll has been loaded.
- bool IsKernel32Loaded() const;
- // Returns true if main has been called.
- bool InitCalled() const;
- // Returns true if LowerToken has been called.
- bool RevertedToSelf() const;
- // Returns true if Csrss is connected.
- bool IsCsrssConnected() const;
- // Set the current state.
- void SetKernel32Loaded();
- void SetInitCalled();
- void SetRevertedToSelf();
- void SetCsrssConnected(bool csrss_connected);
-
- private:
- int process_state_;
- bool csrss_connected_;
- DISALLOW_COPY_AND_ASSIGN(ProcessState);
-};
-
-// This class is an implementation of the TargetServices.
-// Look in the documentation of sandbox::TargetServices for more info.
-// Do NOT add a destructor to this class without changing the implementation of
-// the factory method.
-class TargetServicesBase : public TargetServices {
- public:
- TargetServicesBase();
-
- // Public interface of TargetServices.
- ResultCode Init() override;
- void LowerToken() override;
- ProcessState* GetState() override;
- ResultCode DuplicateHandle(HANDLE source_handle,
- DWORD target_process_id,
- HANDLE* target_handle,
- DWORD desired_access,
- DWORD options) override;
-
- // Factory method.
- static TargetServicesBase* GetInstance();
-
- // Sends a simple IPC Message that has a well-known answer. Returns true
- // if the IPC was successful and false otherwise. There are 2 versions of
- // this test: 1 and 2. The first one send a simple message while the
- // second one send a message with an in/out param.
- bool TestIPCPing(int version);
-
- private:
- ProcessState process_state_;
- DISALLOW_COPY_AND_ASSIGN(TargetServicesBase);
-};
-
-} // namespace sandbox
-
-#endif // SANDBOX_SRC_TARGET_SERVICES_H__
« no previous file with comments | « sandbox/win/src/target_process.cc ('k') | sandbox/win/src/target_services.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698