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

Side by Side Diff: mojo/edk/system/shared_buffer_dispatcher.h

Issue 1915153002: EDK: Add Dispatcher::SupportsEntrypointClass(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ 5 #ifndef MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_
6 #define MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ 6 #define MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "mojo/edk/system/memory.h" 10 #include "mojo/edk/system/memory.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Returns null on error; |*result| will be set to an appropriate result 49 // Returns null on error; |*result| will be set to an appropriate result
50 // code). 50 // code).
51 static util::RefPtr<SharedBufferDispatcher> Create( 51 static util::RefPtr<SharedBufferDispatcher> Create(
52 embedder::PlatformSupport* platform_support, 52 embedder::PlatformSupport* platform_support,
53 const MojoCreateSharedBufferOptions& validated_options, 53 const MojoCreateSharedBufferOptions& validated_options,
54 uint64_t num_bytes, 54 uint64_t num_bytes,
55 MojoResult* result); 55 MojoResult* result);
56 56
57 // |Dispatcher| public methods: 57 // |Dispatcher| public methods:
58 Type GetType() const override; 58 Type GetType() const override;
59 bool SupportsEntrypointClass(EntrypointClass entrypoint_class) const override;
59 60
60 // The "opposite" of |SerializeAndClose()|. (Typically this is called by 61 // The "opposite" of |SerializeAndClose()|. (Typically this is called by
61 // |Dispatcher::Deserialize()|.) 62 // |Dispatcher::Deserialize()|.)
62 static util::RefPtr<SharedBufferDispatcher> Deserialize( 63 static util::RefPtr<SharedBufferDispatcher> Deserialize(
63 Channel* channel, 64 Channel* channel,
64 const void* source, 65 const void* source,
65 size_t size, 66 size_t size,
66 std::vector<platform::ScopedPlatformHandle>* platform_handles); 67 std::vector<platform::ScopedPlatformHandle>* platform_handles);
67 68
68 private: 69 private:
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 util::RefPtr<platform::PlatformSharedBuffer> shared_buffer_ 114 util::RefPtr<platform::PlatformSharedBuffer> shared_buffer_
114 MOJO_GUARDED_BY(mutex()); 115 MOJO_GUARDED_BY(mutex());
115 116
116 MOJO_DISALLOW_COPY_AND_ASSIGN(SharedBufferDispatcher); 117 MOJO_DISALLOW_COPY_AND_ASSIGN(SharedBufferDispatcher);
117 }; 118 };
118 119
119 } // namespace system 120 } // namespace system
120 } // namespace mojo 121 } // namespace mojo
121 122
122 #endif // MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_ 123 #endif // MOJO_EDK_SYSTEM_SHARED_BUFFER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/platform_handle_dispatcher_unittest.cc ('k') | mojo/edk/system/shared_buffer_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698