OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 PPAPI_SHARED_IMPL_FILE_IO_STATE_MANAGER_H_ | 5 #ifndef PPAPI_SHARED_IMPL_FILE_IO_STATE_MANAGER_H_ |
6 #define PPAPI_SHARED_IMPL_FILE_IO_STATE_MANAGER_H_ | 6 #define PPAPI_SHARED_IMPL_FILE_IO_STATE_MANAGER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
10 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
11 #include "ppapi/shared_impl/ppapi_shared_export.h" | 11 #include "ppapi/shared_impl/ppapi_shared_export.h" |
12 | 12 |
13 namespace ppapi { | 13 namespace ppapi { |
14 | 14 |
15 // FileIOStateManager is a helper class that maintains the state of operations. | 15 // FileIOStateManager is a helper class that maintains the state of operations. |
16 // For example, some operations are mutually exclusive, meaning that an | 16 // For example, some operations are mutually exclusive, meaning that an |
17 // operation could be rejected because of the current pending operation. Also, | 17 // operation could be rejected because of the current pending operation. Also, |
18 // most of the operations only work when the file has been opened. | 18 // most of the operations only work when the file has been opened. |
19 class PPAPI_SHARED_EXPORT FileIOStateManager { | 19 class PPAPI_SHARED_EXPORT FileIOStateManager { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Set to true when the file has been successfully opened. | 60 // Set to true when the file has been successfully opened. |
61 bool file_open_; | 61 bool file_open_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(FileIOStateManager); | 63 DISALLOW_COPY_AND_ASSIGN(FileIOStateManager); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace ppapi | 66 } // namespace ppapi |
67 | 67 |
68 #endif // PPAPI_SHARED_IMPL_FILE_IO_STATE_MANAGER_H_ | 68 #endif // PPAPI_SHARED_IMPL_FILE_IO_STATE_MANAGER_H_ |
OLD | NEW |