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

Side by Side Diff: base/platform_file.h

Issue 7044095: Hooking MHTML generation to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved the GetFileForProcess to IPC::PlatformFile Created 9 years, 6 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 | « no previous file | chrome/browser/browser_process.h » ('j') | ipc/ipc_platform_file.cc » ('J')
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 #ifndef BASE_PLATFORM_FILE_H_ 5 #ifndef BASE_PLATFORM_FILE_H_
6 #define BASE_PLATFORM_FILE_H_ 6 #define BASE_PLATFORM_FILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <windows.h> 11 #include <windows.h>
12 #endif 12 #endif
13 13
14 #include <string> 14 #include <string>
15 15
16 #include "base/base_api.h" 16 #include "base/base_api.h"
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "base/file_path.h" 18 #include "base/file_path.h"
19 #include "base/process.h"
brettw 2011/06/14 15:17:24 Is this necessary any more?
19 #include "base/time.h" 20 #include "base/time.h"
20 21
21 namespace base { 22 namespace base {
22 23
23 #if defined(OS_WIN) 24 #if defined(OS_WIN)
24 typedef HANDLE PlatformFile; 25 typedef HANDLE PlatformFile;
25 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE; 26 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE;
26 #elif defined(OS_POSIX) 27 #elif defined(OS_POSIX)
27 typedef int PlatformFile; 28 typedef int PlatformFile;
28 const PlatformFile kInvalidPlatformFileValue = -1; 29 const PlatformFile kInvalidPlatformFileValue = -1;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 return temp; 175 return temp;
175 } 176 }
176 177
177 private: 178 private:
178 PlatformFile* value_; 179 PlatformFile* value_;
179 }; 180 };
180 181
181 } // namespace base 182 } // namespace base
182 183
183 #endif // BASE_PLATFORM_FILE_H_ 184 #endif // BASE_PLATFORM_FILE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_process.h » ('j') | ipc/ipc_platform_file.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698