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

Side by Side Diff: mojo/edk/system/platform_handle_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_PLATFORM_HANDLE_DISPATCHER_H_ 5 #ifndef MOJO_EDK_SYSTEM_PLATFORM_HANDLE_DISPATCHER_H_
6 #define MOJO_EDK_SYSTEM_PLATFORM_HANDLE_DISPATCHER_H_ 6 #define MOJO_EDK_SYSTEM_PLATFORM_HANDLE_DISPATCHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "mojo/edk/platform/scoped_platform_handle.h" 10 #include "mojo/edk/platform/scoped_platform_handle.h"
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 static util::RefPtr<PlatformHandleDispatcher> Create( 23 static util::RefPtr<PlatformHandleDispatcher> Create(
24 platform::ScopedPlatformHandle platform_handle) { 24 platform::ScopedPlatformHandle platform_handle) {
25 return AdoptRef(new PlatformHandleDispatcher(platform_handle.Pass())); 25 return AdoptRef(new PlatformHandleDispatcher(platform_handle.Pass()));
26 } 26 }
27 27
28 platform::ScopedPlatformHandle PassPlatformHandle(); 28 platform::ScopedPlatformHandle PassPlatformHandle();
29 29
30 // |Dispatcher| public methods: 30 // |Dispatcher| public methods:
31 Type GetType() const override; 31 Type GetType() const override;
32 bool SupportsEntrypointClass(EntrypointClass entrypoint_class) const override;
32 33
33 // The "opposite" of |SerializeAndClose()|. (Typically this is called by 34 // The "opposite" of |SerializeAndClose()|. (Typically this is called by
34 // |Dispatcher::Deserialize()|.) 35 // |Dispatcher::Deserialize()|.)
35 static util::RefPtr<PlatformHandleDispatcher> Deserialize( 36 static util::RefPtr<PlatformHandleDispatcher> Deserialize(
36 Channel* channel, 37 Channel* channel,
37 const void* source, 38 const void* source,
38 size_t size, 39 size_t size,
39 std::vector<platform::ScopedPlatformHandle>* platform_handles); 40 std::vector<platform::ScopedPlatformHandle>* platform_handles);
40 41
41 private: 42 private:
(...skipping 18 matching lines...) Expand all
60 61
61 platform::ScopedPlatformHandle platform_handle_ MOJO_GUARDED_BY(mutex()); 62 platform::ScopedPlatformHandle platform_handle_ MOJO_GUARDED_BY(mutex());
62 63
63 MOJO_DISALLOW_COPY_AND_ASSIGN(PlatformHandleDispatcher); 64 MOJO_DISALLOW_COPY_AND_ASSIGN(PlatformHandleDispatcher);
64 }; 65 };
65 66
66 } // namespace system 67 } // namespace system
67 } // namespace mojo 68 } // namespace mojo
68 69
69 #endif // MOJO_EDK_SYSTEM_PLATFORM_HANDLE_DISPATCHER_H_ 70 #endif // MOJO_EDK_SYSTEM_PLATFORM_HANDLE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/mock_simple_dispatcher.cc ('k') | mojo/edk/system/platform_handle_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698