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

Unified Diff: sandbox/tests/common/controller.h

Issue 9924010: Revert 129627 - Add a sandbox API for broker handle duplication (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/src/target_services.cc ('k') | sandbox/tests/common/controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/tests/common/controller.h
===================================================================
--- sandbox/tests/common/controller.h (revision 129628)
+++ sandbox/tests/common/controller.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2010 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.
@@ -8,7 +8,6 @@
#include <windows.h>
#include <string>
-#include "base/win/scoped_handle.h"
#include "sandbox/src/sandbox.h"
namespace sandbox {
@@ -92,9 +91,6 @@
// Sets the timeout value for the child to run the command and return.
void SetTimeout(DWORD timeout_ms);
- // Sets TestRunner to return without waiting for the process to exit.
- void SetAsynchronous(bool is_async) { is_async_ = is_async; }
-
// Sets the desired state for the test to run.
void SetTestState(SboxTestsState desired_state);
@@ -102,12 +98,6 @@
// the policy manually.
TargetPolicy* GetPolicy();
- // Return the process handle for an asynchronous test.
- HANDLE process() { return target_process_; }
-
- // Return the process ID for an asynchronous test.
- DWORD process_id() { return target_process_id_; }
-
private:
// Initializes the data in the object. Sets is_init_ to tree if the
// function succeeds. This is meant to be called from the constructor.
@@ -122,9 +112,6 @@
DWORD timeout_;
SboxTestsState state_;
bool is_init_;
- bool is_async_;
- base::win::ScopedHandle target_process_;
- DWORD target_process_id_;
};
// Returns the broker services.
« no previous file with comments | « sandbox/src/target_services.cc ('k') | sandbox/tests/common/controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698