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

Side by Side Diff: mojo/services/files/c/lib/real_errno_impl.h

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « mojo/services/files/c/lib/mojio_unistd.cc ('k') | mojo/services/files/c/lib/real_errno_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SERVICES_FILES_C_LIB_REAL_ERRNO_IMPL_H_ 5 #ifndef SERVICES_FILES_C_LIB_REAL_ERRNO_IMPL_H_
6 #define SERVICES_FILES_C_LIB_REAL_ERRNO_IMPL_H_ 6 #define SERVICES_FILES_C_LIB_REAL_ERRNO_IMPL_H_
7 7
8 #include "files/public/c/lib/errno_impl.h" 8 #include "files/c/lib/errno_impl.h"
9 #include "mojo/public/cpp/system/macros.h" 9 #include "mojo/public/cpp/system/macros.h"
10 10
11 namespace mojio { 11 namespace mojio {
12 12
13 // An implementation of |ErrnoImpl| using the "real" errno. 13 // An implementation of |ErrnoImpl| using the "real" errno.
14 class RealErrnoImpl : public ErrnoImpl { 14 class RealErrnoImpl : public ErrnoImpl {
15 public: 15 public:
16 // Important: The constructor and the destructor must not modify (or result in 16 // Important: The constructor and the destructor must not modify (or result in
17 // modifications to) the "real" errno. 17 // modifications to) the "real" errno.
18 RealErrnoImpl() {} 18 RealErrnoImpl() {}
19 ~RealErrnoImpl() override {} 19 ~RealErrnoImpl() override {}
20 20
21 int Get() const override; 21 int Get() const override;
22 void Set(int error) override; 22 void Set(int error) override;
23 23
24 private: 24 private:
25 MOJO_DISALLOW_COPY_AND_ASSIGN(RealErrnoImpl); 25 MOJO_DISALLOW_COPY_AND_ASSIGN(RealErrnoImpl);
26 }; 26 };
27 27
28 } // namespace mojio 28 } // namespace mojio
29 29
30 #endif // SERVICES_FILES_C_LIB_REAL_ERRNO_IMPL_H_ 30 #endif // SERVICES_FILES_C_LIB_REAL_ERRNO_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/files/c/lib/mojio_unistd.cc ('k') | mojo/services/files/c/lib/real_errno_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698