Index: cc/trees/remote_channel_host_client.h |
diff --git a/cc/trees/remote_channel_host_client.h b/cc/trees/remote_channel_host_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d922d44c013ad0f9791a4b98030ce73bce5d8a3d |
--- /dev/null |
+++ b/cc/trees/remote_channel_host_client.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CC_TREES_REMOTE_CHANNEL_HOST_CLIENT_H_ |
+#define CC_TREES_REMOTE_CHANNEL_HOST_CLIENT_H_ |
+ |
+#include "base/macros.h" |
+#include "cc/base/cc_export.h" |
+#include "cc/trees/layer_tree_settings.h" |
+ |
+namespace cc { |
+ |
+class RemoteChannelHostClient { |
+ public: |
+ // Allows the client to override any LayerTreeSettings received from the |
+ // main compositor. |
+ virtual void OverrideLayerTreeSettings(LayerTreeSettings* settings) {} |
+ |
+ // Informs the client that the RemoteChannelHost has been shutdown. The |
+ // RemoteChannelHost can not be used after this method is called. |
+ virtual void DidShutdown() = 0; |
+ |
+ virtual ~RemoteChannelHostClient() {} |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_TREES_REMOTE_CHANNEL_HOST_CLIENT_H_ |