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

Unified Diff: base/win/startup_information.h

Issue 10870093: Rename ScopedStartupInfoEx to StartupInformation and cleanup accesors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « base/win/scoped_startup_info_ex_unittest.cc ('k') | base/win/startup_information.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/startup_information.h
===================================================================
--- base/win/startup_information.h (revision 153000)
+++ base/win/startup_information.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_WIN_SCOPED_STARTUP_INFO_EX_H_
-#define BASE_WIN_SCOPED_STARTUP_INFO_EX_H_
+#ifndef BASE_WIN_STARTUP_INFORMATION_H_
+#define BASE_WIN_STARTUP_INFORMATION_H_
#include <windows.h>
@@ -14,11 +14,11 @@
namespace win {
// Manages the lifetime of additional attributes in STARTUPINFOEX.
-class BASE_EXPORT ScopedStartupInfoEx {
+class BASE_EXPORT StartupInformation {
public:
- ScopedStartupInfoEx();
+ StartupInformation();
- ~ScopedStartupInfoEx();
+ ~StartupInformation();
// Initialize the attribute list for the specified number of entries.
bool InitializeProcThreadAttributeList(DWORD attribute_count);
@@ -28,11 +28,18 @@
void* value,
size_t size);
- STARTUPINFO* startup_info() { return &startup_info_.StartupInfo; }
+ LPSTARTUPINFOW startup_info() { return &startup_info_.StartupInfo; }
+ const LPSTARTUPINFOW startup_info() const {
+ return const_cast<const LPSTARTUPINFOW>(&startup_info_.StartupInfo);
+ }
+ bool has_extended_startup_info() const {
+ return !!startup_info_.lpAttributeList;
+ }
+
private:
- STARTUPINFOEX startup_info_;
- DISALLOW_COPY_AND_ASSIGN(ScopedStartupInfoEx);
+ STARTUPINFOEXW startup_info_;
+ DISALLOW_COPY_AND_ASSIGN(StartupInformation);
};
} // namespace win
« no previous file with comments | « base/win/scoped_startup_info_ex_unittest.cc ('k') | base/win/startup_information.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698