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

Unified Diff: sandbox/win/src/app_container.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/address_sanitizer_test.cc ('k') | sandbox/win/src/app_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/app_container.h
diff --git a/sandbox/win/src/app_container.h b/sandbox/win/src/app_container.h
deleted file mode 100644
index fe2b18933408e00b81847a888f066fca614a6339..0000000000000000000000000000000000000000
--- a/sandbox/win/src/app_container.h
+++ /dev/null
@@ -1,70 +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_WIN_SRC_APP_CONTAINER_H_
-#define SANDBOX_WIN_SRC_APP_CONTAINER_H_
-
-#include <windows.h>
-
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/strings/string16.h"
-#include "sandbox/win/src/sandbox_types.h"
-
-namespace base {
-namespace win {
-class StartupInformation;
-}
-}
-
-namespace sandbox {
-
-// Maintains an attribute list to be used during creation of a new sandboxed
-// process.
-class AppContainerAttributes {
- public:
- AppContainerAttributes();
- ~AppContainerAttributes();
-
- // Sets the AppContainer and capabilities to be used with the new process.
- ResultCode SetAppContainer(const base::string16& app_container_sid,
- const std::vector<base::string16>& capabilities);
-
- // Updates the proc_thred attribute list of the provided startup_information
- // with the app container related data.
- // WARNING: startup_information just points back to our internal memory, so
- // the lifetime of this object has to be greater than the lifetime of the
- // provided startup_information.
- ResultCode ShareForStartup(
- base::win::StartupInformation* startup_information) const;
-
- bool HasAppContainer() const;
-
- private:
- SECURITY_CAPABILITIES capabilities_;
- std::vector<SID_AND_ATTRIBUTES> attributes_;
-
- DISALLOW_COPY_AND_ASSIGN(AppContainerAttributes);
-};
-
-// Creates a new AppContainer on the system. |sid| is the identifier of the new
-// AppContainer, and |name| will be used as both the display name and moniker.
-// This function fails if the OS doesn't support AppContainers, or if there is
-// an AppContainer registered with the same id.
-ResultCode CreateAppContainer(const base::string16& sid,
- const base::string16& name);
-
-// Deletes an AppContainer previously created with a successful call to
-// CreateAppContainer.
-ResultCode DeleteAppContainer(const base::string16& sid);
-
-// Retrieves the name associated with the provided AppContainer sid. Returns an
-// empty string if the AppContainer is not registered with the system.
-base::string16 LookupAppContainer(const base::string16& sid);
-
-} // namespace sandbox
-
-#endif // SANDBOX_WIN_SRC_APP_CONTAINER_H_
« no previous file with comments | « sandbox/win/src/address_sanitizer_test.cc ('k') | sandbox/win/src/app_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698