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

Side by Side Diff: net/base/file_stream_win.cc

Issue 115870: Reduce header dependencies in net/ (Closed)
Patch Set: Created 11 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
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "net/base/file_stream.h" 5 #include "net/base/file_stream.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include "base/file_path.h"
9 #include "base/logging.h" 10 #include "base/logging.h"
10 #include "base/message_loop.h" 11 #include "base/message_loop.h"
11 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
12 13
13 namespace net { 14 namespace net {
14 15
15 // Ensure that we can just use our Whence values directly. 16 // Ensure that we can just use our Whence values directly.
16 COMPILE_ASSERT(FROM_BEGIN == FILE_BEGIN, bad_whence_begin); 17 COMPILE_ASSERT(FROM_BEGIN == FILE_BEGIN, bad_whence_begin);
17 COMPILE_ASSERT(FROM_CURRENT == FILE_CURRENT, bad_whence_current); 18 COMPILE_ASSERT(FROM_CURRENT == FILE_CURRENT, bad_whence_current);
18 COMPILE_ASSERT(FROM_END == FILE_END, bad_whence_end); 19 COMPILE_ASSERT(FROM_END == FILE_END, bad_whence_end);
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 DWORD error = GetLastError(); 306 DWORD error = GetLastError();
306 LOG(WARNING) << "SetEndOfFile failed: " << error; 307 LOG(WARNING) << "SetEndOfFile failed: " << error;
307 return MapErrorCode(error); 308 return MapErrorCode(error);
308 } 309 }
309 310
310 // Success. 311 // Success.
311 return seek_position; 312 return seek_position;
312 } 313 }
313 314
314 } // namespace net 315 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698