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

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

Issue 1537593002: Fix UAF in new Mojo EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improve comment Created 5 years 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 | « no previous file | mojo/edk/system/broker_state.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 MOJO_EDK_SYSTEM_BROKER_H_ 5 #ifndef MOJO_EDK_SYSTEM_BROKER_H_
6 #define MOJO_EDK_SYSTEM_BROKER_H_ 6 #define MOJO_EDK_SYSTEM_BROKER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "mojo/edk/embedder/scoped_platform_handle.h" 10 #include "mojo/edk/embedder/scoped_platform_handle.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Called by |message_pipe| so that it receives messages for the given 49 // Called by |message_pipe| so that it receives messages for the given
50 // globally unique |pipe_id|. When the connection is established, 50 // globally unique |pipe_id|. When the connection is established,
51 // MessagePipeDispatcher::GotNonTransferableChannel is called with the channel 51 // MessagePipeDispatcher::GotNonTransferableChannel is called with the channel
52 // that it can use for sending messages. 52 // that it can use for sending messages.
53 virtual void ConnectMessagePipe(uint64_t pipe_id, 53 virtual void ConnectMessagePipe(uint64_t pipe_id,
54 MessagePipeDispatcher* message_pipe) = 0; 54 MessagePipeDispatcher* message_pipe) = 0;
55 55
56 // Called by |message_pipe| when it's closing so that its route can be 56 // Called by |message_pipe| when it's closing so that its route can be
57 // unregistered. 57 // unregistered.
58 // It's ok to call this from a callback (i.e. from OnError or
59 // GotNonTransferableChannel).
58 virtual void CloseMessagePipe(uint64_t pipe_id, 60 virtual void CloseMessagePipe(uint64_t pipe_id,
59 MessagePipeDispatcher* message_pipe) = 0; 61 MessagePipeDispatcher* message_pipe) = 0;
60 }; 62 };
61 63
62 } // namespace edk 64 } // namespace edk
63 } // namespace mojo 65 } // namespace mojo
64 66
65 #endif // MOJO_EDK_SYSTEM_BROKER_H_ 67 #endif // MOJO_EDK_SYSTEM_BROKER_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/system/broker_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698