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

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

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/win/scoped_variant.h ('k') | base/win/windows_version.h » ('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 // ============================================================================= 5 // =============================================================================
6 // PLEASE READ 6 // PLEASE READ
7 // 7 //
8 // In general, you should not be adding stuff to this file. 8 // In general, you should not be adding stuff to this file.
9 // 9 //
10 // - If your thing is only used in one place, just put it in a reasonable 10 // - If your thing is only used in one place, just put it in a reasonable
11 // location in or near that one place. It's nice you want people to be able 11 // location in or near that one place. It's nice you want people to be able
12 // to re-use your function, but realistically, if it hasn't been necessary 12 // to re-use your function, but realistically, if it hasn't been necessary
13 // before after so many years of development, it's probably not going to be 13 // before after so many years of development, it's probably not going to be
14 // used in other places in the future unless you know of them now. 14 // used in other places in the future unless you know of them now.
15 // 15 //
16 // - If your thing is used by multiple callers and is UI-related, it should 16 // - If your thing is used by multiple callers and is UI-related, it should
17 // probably be in app/win/ instead. Try to put it in the most specific file 17 // probably be in app/win/ instead. Try to put it in the most specific file
18 // possible (avoiding the *_util files when practical). 18 // possible (avoiding the *_util files when practical).
19 // 19 //
20 // ============================================================================= 20 // =============================================================================
21 21
22 #ifndef BASE_WIN_WIN_UTIL_H_ 22 #ifndef BASE_WIN_WIN_UTIL_H_
23 #define BASE_WIN_WIN_UTIL_H_ 23 #define BASE_WIN_WIN_UTIL_H_
24 #pragma once
25 24
26 #include <windows.h> 25 #include <windows.h>
27 26
28 #include <string> 27 #include <string>
29 28
30 #include "base/base_export.h" 29 #include "base/base_export.h"
31 #include "base/string16.h" 30 #include "base/string16.h"
32 31
33 struct IPropertyStore; 32 struct IPropertyStore;
34 struct _tagpropertykey; 33 struct _tagpropertykey;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // This is necessary to set compatible struct sizes for different versions 108 // This is necessary to set compatible struct sizes for different versions
110 // of certain Windows APIs (e.g. SystemParametersInfo). 109 // of certain Windows APIs (e.g. SystemParametersInfo).
111 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ 110 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \
112 offsetof(struct_name, member) + \ 111 offsetof(struct_name, member) + \
113 (sizeof static_cast<struct_name*>(NULL)->member) 112 (sizeof static_cast<struct_name*>(NULL)->member)
114 113
115 } // namespace win 114 } // namespace win
116 } // namespace base 115 } // namespace base
117 116
118 #endif // BASE_WIN_WIN_UTIL_H_ 117 #endif // BASE_WIN_WIN_UTIL_H_
OLDNEW
« no previous file with comments | « base/win/scoped_variant.h ('k') | base/win/windows_version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698