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

Side by Side Diff: sandbox/win/sandbox_poc/pocdll/utils.h

Issue 1539423002: Revert of Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « sandbox/win/sandbox_poc/main_ui_window.cc ('k') | sandbox/win/src/Wow64.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 SANDBOX_SANDBOX_POC_POCDLL_UTILS_H__ 5 #ifndef SANDBOX_SANDBOX_POC_POCDLL_UTILS_H__
6 #define SANDBOX_SANDBOX_POC_POCDLL_UTILS_H__ 6 #define SANDBOX_SANDBOX_POC_POCDLL_UTILS_H__
7 7
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <io.h> 9 #include <io.h>
10 #include "base/basictypes.h"
10 11
11 // Class to convert a HANDLE to a FILE *. The FILE * is closed when the 12 // Class to convert a HANDLE to a FILE *. The FILE * is closed when the
12 // object goes out of scope 13 // object goes out of scope
13 class HandleToFile { 14 class HandleToFile {
14 public: 15 public:
15 HandleToFile() { 16 HandleToFile() {
16 file_ = NULL; 17 file_ = NULL;
17 }; 18 };
18 19
19 // Note: c_file_handle_ does not need to be closed because fclose does it. 20 // Note: c_file_handle_ does not need to be closed because fclose does it.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 return file_; 56 return file_;
56 }; 57 };
57 private: 58 private:
58 // the FILE* returned. We need to closed it at the end. 59 // the FILE* returned. We need to closed it at the end.
59 FILE* file_; 60 FILE* file_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(HandleToFile); 62 DISALLOW_COPY_AND_ASSIGN(HandleToFile);
62 }; 63 };
63 64
64 #endif // SANDBOX_SANDBOX_POC_POCDLL_UTILS_H__ 65 #endif // SANDBOX_SANDBOX_POC_POCDLL_UTILS_H__
OLDNEW
« no previous file with comments | « sandbox/win/sandbox_poc/main_ui_window.cc ('k') | sandbox/win/src/Wow64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698