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

Side by Side Diff: mojo/edk/embedder/simple_platform_shared_buffer.h

Issue 621153003: Move mojo edk into mojo/edk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix checkdeps Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_SYSTEM_SIMPLE_PLATFORM_SHARED_BUFFER_H_ 5 #ifndef MOJO_EDK_EMBEDDER_SIMPLE_PLATFORM_SHARED_BUFFER_H_
6 #define MOJO_SYSTEM_SIMPLE_PLATFORM_SHARED_BUFFER_H_ 6 #define MOJO_EDK_EMBEDDER_SIMPLE_PLATFORM_SHARED_BUFFER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "mojo/embedder/platform_shared_buffer.h" 11 #include "mojo/edk/embedder/platform_shared_buffer.h"
12 #include "mojo/system/system_impl_export.h" 12 #include "mojo/edk/system/system_impl_export.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace embedder { 15 namespace embedder {
16 16
17 // A simple implementation of |PlatformSharedBuffer|. 17 // A simple implementation of |PlatformSharedBuffer|.
18 class MOJO_SYSTEM_IMPL_EXPORT SimplePlatformSharedBuffer 18 class MOJO_SYSTEM_IMPL_EXPORT SimplePlatformSharedBuffer
19 : public PlatformSharedBuffer { 19 : public PlatformSharedBuffer {
20 public: 20 public:
21 // Creates a shared buffer of size |num_bytes| bytes (initially zero-filled). 21 // Creates a shared buffer of size |num_bytes| bytes (initially zero-filled).
22 // |num_bytes| must be nonzero. Returns null on failure. 22 // |num_bytes| must be nonzero. Returns null on failure.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 void* const real_base_; 93 void* const real_base_;
94 const size_t real_length_; 94 const size_t real_length_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(SimplePlatformSharedBufferMapping); 96 DISALLOW_COPY_AND_ASSIGN(SimplePlatformSharedBufferMapping);
97 }; 97 };
98 98
99 } // namespace embedder 99 } // namespace embedder
100 } // namespace mojo 100 } // namespace mojo
101 101
102 #endif // MOJO_SYSTEM_SIMPLE_PLATFORM_SHARED_BUFFER_H_ 102 #endif // MOJO_EDK_EMBEDDER_SIMPLE_PLATFORM_SHARED_BUFFER_H_
OLDNEW
« no previous file with comments | « mojo/edk/embedder/scoped_platform_handle.h ('k') | mojo/edk/embedder/simple_platform_shared_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698