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

Side by Side Diff: blimp/common/create_blimp_message.cc

Issue 1492643003: [Blimp Net] Add EngineAuthHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses comments and adds unit tests 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
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 #include "blimp/common/create_blimp_message.h" 5 #include "blimp/common/create_blimp_message.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "blimp/common/proto/blimp_message.pb.h" 9 #include "blimp/common/proto/blimp_message.pb.h"
10 #include "blimp/common/proto/compositor.pb.h" 10 #include "blimp/common/proto/compositor.pb.h"
(...skipping 25 matching lines...) Expand all
36 RenderWidgetMessage** render_widget_message, 36 RenderWidgetMessage** render_widget_message,
37 int target_tab_id) { 37 int target_tab_id) {
38 DCHECK(render_widget_message); 38 DCHECK(render_widget_message);
39 scoped_ptr<BlimpMessage> output(new BlimpMessage); 39 scoped_ptr<BlimpMessage> output(new BlimpMessage);
40 output->set_type(BlimpMessage::RENDER_WIDGET); 40 output->set_type(BlimpMessage::RENDER_WIDGET);
41 output->set_target_tab_id(target_tab_id); 41 output->set_target_tab_id(target_tab_id);
42 *render_widget_message = output->mutable_render_widget(); 42 *render_widget_message = output->mutable_render_widget();
43 return output; 43 return output;
44 } 44 }
45 45
46 scoped_ptr<BlimpMessage> CreateBlimpMessage(
47 StartConnectionMessage** start_connection_message) {
48 DCHECK(start_connection_message);
49 scoped_ptr<BlimpMessage> output(new BlimpMessage);
50 output->set_type(BlimpMessage::PROTOCOL_CONTROL);
51 ProtocolControlMessage* control_message = output->mutable_protocol_control();
52 control_message->set_type(ProtocolControlMessage::START_CONNECTION);
53 *start_connection_message = control_message->mutable_start_connection();
54 return output;
55 }
56
46 } // namespace blimp 57 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698