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

Side by Side Diff: base/win/resource_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/registry.h ('k') | base/win/sampling_profiler.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains utility functions for accessing resources in external 5 // This file contains utility functions for accessing resources in external
6 // files (DLLs) or embedded in the executable itself. 6 // files (DLLs) or embedded in the executable itself.
7 7
8 #ifndef BASE_WIN_RESOURCE_UTIL_H__ 8 #ifndef BASE_WIN_RESOURCE_UTIL_H__
9 #define BASE_WIN_RESOURCE_UTIL_H__ 9 #define BASE_WIN_RESOURCE_UTIL_H__
10 #pragma once
11 10
12 #include <windows.h> 11 #include <windows.h>
13 12
14 #include "base/base_export.h" 13 #include "base/base_export.h"
15 #include "base/basictypes.h" 14 #include "base/basictypes.h"
16 15
17 namespace base { 16 namespace base {
18 namespace win { 17 namespace win {
19 18
20 // Function for getting a data resource (BINDATA) from a dll. Some 19 // Function for getting a data resource (BINDATA) from a dll. Some
21 // resources are optional, especially in unit tests, so this returns false 20 // resources are optional, especially in unit tests, so this returns false
22 // but doesn't raise an error if the resource can't be loaded. 21 // but doesn't raise an error if the resource can't be loaded.
23 bool BASE_EXPORT GetDataResourceFromModule(HMODULE module, int resource_id, 22 bool BASE_EXPORT GetDataResourceFromModule(HMODULE module, int resource_id,
24 void** data, size_t* length); 23 void** data, size_t* length);
25 24
26 } // namespace win 25 } // namespace win
27 } // namespace base 26 } // namespace base
28 27
29 #endif // BASE_WIN_RESOURCE_UTIL_H__ 28 #endif // BASE_WIN_RESOURCE_UTIL_H__
OLDNEW
« no previous file with comments | « base/win/registry.h ('k') | base/win/sampling_profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698