summaryrefslogtreecommitdiffstats
path: root/net/base/file_stream_whence.h
blob: e256d6fa3f8d14c4d009828f74cb3d22f4f5ae9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_BASE_FILE_STREAM_WHENCE_H_
#define NET_BASE_FILE_STREAM_WHENCE_H_
#pragma once

namespace net {

// TODO(darin): Move this to a more generic location.
// This explicit mapping matches both FILE_ on Windows and SEEK_ on Linux.
enum Whence {
  FROM_BEGIN   = 0,
  FROM_CURRENT = 1,
  FROM_END     = 2
};

}  // namespace net

#endif  // NET_BASE_FILE_STREAM_WHENCE_H_