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

Side by Side Diff: base/win/startup_information.h

Issue 1507413003: clang/win: Let some chromium_code targets build with -Wextra. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_browsertests Created 5 years 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 | « base/win/scoped_variant_unittest.cc ('k') | build/common.gypi » ('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 BASE_WIN_STARTUP_INFORMATION_H_ 5 #ifndef BASE_WIN_STARTUP_INFORMATION_H_
6 #define BASE_WIN_STARTUP_INFORMATION_H_ 6 #define BASE_WIN_STARTUP_INFORMATION_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
(...skipping 13 matching lines...) Expand all
24 bool InitializeProcThreadAttributeList(DWORD attribute_count); 24 bool InitializeProcThreadAttributeList(DWORD attribute_count);
25 25
26 // Sets one entry in the initialized attribute list. 26 // Sets one entry in the initialized attribute list.
27 // |value| needs to live at least as long as the StartupInformation object 27 // |value| needs to live at least as long as the StartupInformation object
28 // this is called on. 28 // this is called on.
29 bool UpdateProcThreadAttribute(DWORD_PTR attribute, 29 bool UpdateProcThreadAttribute(DWORD_PTR attribute,
30 void* value, 30 void* value,
31 size_t size); 31 size_t size);
32 32
33 LPSTARTUPINFOW startup_info() { return &startup_info_.StartupInfo; } 33 LPSTARTUPINFOW startup_info() { return &startup_info_.StartupInfo; }
34 const LPSTARTUPINFOW startup_info() const { 34 LPSTARTUPINFOW startup_info() const {
35 return const_cast<const LPSTARTUPINFOW>(&startup_info_.StartupInfo); 35 return const_cast<const LPSTARTUPINFOW>(&startup_info_.StartupInfo);
36 } 36 }
37 37
38 bool has_extended_startup_info() const { 38 bool has_extended_startup_info() const {
39 return !!startup_info_.lpAttributeList; 39 return !!startup_info_.lpAttributeList;
40 } 40 }
41 41
42 private: 42 private:
43 STARTUPINFOEXW startup_info_; 43 STARTUPINFOEXW startup_info_;
44 DISALLOW_COPY_AND_ASSIGN(StartupInformation); 44 DISALLOW_COPY_AND_ASSIGN(StartupInformation);
45 }; 45 };
46 46
47 } // namespace win 47 } // namespace win
48 } // namespace base 48 } // namespace base
49 49
50 #endif // BASE_WIN_STARTUP_INFORMATION_H_ 50 #endif // BASE_WIN_STARTUP_INFORMATION_H_
OLDNEW
« no previous file with comments | « base/win/scoped_variant_unittest.cc ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698