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

Side by Side Diff: ipc/ipc_mojo_bootstrap.h

Issue 2316963005: Reworks Channel pausing behavior (Closed)
Patch Set: Created 4 years, 3 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 | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_mojo_bootstrap.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 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 IPC_IPC_MOJO_BOOTSTRAP_H_ 5 #ifndef IPC_IPC_MOJO_BOOTSTRAP_H_
6 #define IPC_IPC_MOJO_BOOTSTRAP_H_ 6 #define IPC_IPC_MOJO_BOOTSTRAP_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // mode as specified by |mode|. The result is passed to |delegate|. 45 // mode as specified by |mode|. The result is passed to |delegate|.
46 static std::unique_ptr<MojoBootstrap> Create( 46 static std::unique_ptr<MojoBootstrap> Create(
47 mojo::ScopedMessagePipeHandle handle, 47 mojo::ScopedMessagePipeHandle handle,
48 Channel::Mode mode, 48 Channel::Mode mode,
49 Delegate* delegate, 49 Delegate* delegate,
50 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner); 50 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner);
51 51
52 // Start the handshake over the underlying message pipe. 52 // Start the handshake over the underlying message pipe.
53 virtual void Connect() = 0; 53 virtual void Connect() = 0;
54 54
55 // Stop transmitting messages and start queueing them instead.
56 virtual void Pause() = 0;
57
55 // Stop queuing new messages and start transmitting them instead. 58 // Stop queuing new messages and start transmitting them instead.
56 virtual void Start() = 0; 59 virtual void Unpause() = 0;
57 60
58 // Flush outgoing messages which were queued before Start(). 61 // Flush outgoing messages which were queued before Start().
59 virtual void Flush() = 0; 62 virtual void Flush() = 0;
60 63
61 virtual mojo::AssociatedGroup* GetAssociatedGroup() = 0; 64 virtual mojo::AssociatedGroup* GetAssociatedGroup() = 0;
62 }; 65 };
63 66
64 } // namespace IPC 67 } // namespace IPC
65 68
66 #endif // IPC_IPC_MOJO_BOOTSTRAP_H_ 69 #endif // IPC_IPC_MOJO_BOOTSTRAP_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_mojo_bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698