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

Side by Side Diff: cc/trees/remote_proto_channel.h

Issue 1442853005: Add IPC messages to transfer compositor protos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup Created 5 years, 1 month 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
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
no sievers 2015/11/14 00:13:43 nit: drop (c)
David Trainor- moved to gerrit 2015/11/16 04:33:58 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_TREES_REMOTE_PROTO_CHANNEL_H_
6 #define CC_TREES_REMOTE_PROTO_CHANNEL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h"
10
11 namespace cc {
12
13 namespace proto {
14 class CompositorMessage;
15 }
16
17 // Provides a bridge for getting compositor protobuf messages to/from the
18 // outside world.
19 class CC_EXPORT RemoteProtoChannel {
20 public:
21 // Meant to be implemented by a RemoteChannel that needs to receive and parse
22 // incoming protobufs.
23 class Receiver {
24 public:
25 virtual void OnProtoReceived(const proto::CompositorMessage& proto) = 0;
26 };
27
28 virtual void SetReceiver(Receiver* receiver) = 0;
29 virtual void SendCompositorProto(const proto::CompositorMessage& proto) = 0;
30 };
31
32 } // namespace cc
33
34 #endif // CC_TREES_REMOTE_PROTO_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698