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

Unified Diff: blimp/engine/browser/blimp_engine_session.cc

Issue 1442853005: Add IPC messages to transfer compositor protos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trying to remove CC_EXPORT... 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/engine/browser/blimp_engine_session.h ('k') | cc/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/browser/blimp_engine_session.cc
diff --git a/blimp/engine/browser/blimp_engine_session.cc b/blimp/engine/browser/blimp_engine_session.cc
index 79c1a4042319c8756c8917f5775e40308f7322b8..0c7f6569010c99aae4bedb2113a9b110a6141453 100644
--- a/blimp/engine/browser/blimp_engine_session.cc
+++ b/blimp/engine/browser/blimp_engine_session.cc
@@ -138,7 +138,8 @@ void BlimpEngineSession::ProcessMessage(
scoped_ptr<BlimpMessage> message,
const net::CompletionCallback& callback) {
DCHECK(message->type() == BlimpMessage::CONTROL ||
- message->type() == BlimpMessage::NAVIGATION);
+ message->type() == BlimpMessage::NAVIGATION ||
+ message->type() == BlimpMessage::COMPOSITOR);
if (message->type() == BlimpMessage::CONTROL) {
switch (message->control().type()) {
@@ -233,6 +234,13 @@ void BlimpEngineSession::ActivateContents(content::WebContents* contents) {
contents->GetRenderViewHost()->GetWidget()->Focus();
}
+void BlimpEngineSession::ForwardCompositorProto(
+ const std::vector<uint8_t>& proto) {
+ // Send the compositor proto over the network layer to the client, which will
+ // apply the proto to their local compositor instance.
+ // TODO(dtrainor): Send the compositor proto.
+}
+
void BlimpEngineSession::PlatformSetContents(
scoped_ptr<content::WebContents> new_contents) {
new_contents->SetDelegate(this);
« no previous file with comments | « blimp/engine/browser/blimp_engine_session.h ('k') | cc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698