Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / native_client_sdk / src / libraries / nacl_io / error.h
blobfe6e3048b4e57c50d8bd75f95cd1f2ff14887dde
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef LIBRARIES_NACL_IO_ERROR_H_
5 #define LIBRARIES_NACL_IO_ERROR_H_
7 namespace nacl_io {
9 struct Error {
10 // TODO(binji): Add debugging constructor w/ __FILE__, __LINE__.
11 // crbug.com/247816
12 Error(int error) : error(error) {}
13 operator int() const { return error; }
15 int error;
18 } // namespace nacl_io
20 #endif // LIBRARIES_NACL_IO_ERROR_H_