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

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

Issue 1492643003: [Blimp Net] Add EngineAuthHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses wez's comments 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 #ifndef BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_ 5 #ifndef BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_
6 #define BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_ 6 #define BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_
7 7
8 #include <string>
9
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 #include "blimp/common/blimp_common_export.h" 11 #include "blimp/common/blimp_common_export.h"
10 12
11 namespace blimp { 13 namespace blimp {
12 14
13 class BlimpMessage; 15 class BlimpMessage;
14 class CompositorMessage; 16 class CompositorMessage;
15 class InputMessage; 17 class InputMessage;
16 class RenderWidgetMessage; 18 class RenderWidgetMessage;
19 class StartConnectionMessage;
17 20
18 // Suite of helper methods to simplify the repetitive task of creating 21 // Suite of helper methods to simplify the repetitive task of creating
19 // new BlimpMessages, initializing them, and extracting type-specific 22 // new BlimpMessages, initializing them, and extracting type-specific
20 // inner messages. 23 // inner messages.
21 // 24 //
22 // 25 //
23 // Every specialization of CreateBlimpMessage returns an initialized 26 // Every specialization of CreateBlimpMessage returns an initialized
24 // BlimpMessage object. In addition, a pointer to the type-specific inner 27 // BlimpMessage object. In addition, a pointer to the type-specific inner
25 // message is returned via the initial double-pointer parameter. 28 // message is returned via the initial double-pointer parameter.
26 // 29 //
27 // Additional initialization arguments may be taken depending on the 30 // Additional initialization arguments may be taken depending on the
28 // message type. 31 // message type.
29 32
30 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( 33 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage(
31 CompositorMessage** compositor_message, 34 CompositorMessage** compositor_message,
32 int target_tab_id); 35 int target_tab_id);
33 36
34 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( 37 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage(
35 InputMessage** input_message); 38 InputMessage** input_message);
36 39
37 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( 40 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage(
38 RenderWidgetMessage** render_widget_message, 41 RenderWidgetMessage** render_widget_message,
39 int target_tab_id); 42 int target_tab_id);
40 43
44 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateStartConnectionMessage(
45 const std::string& client_token,
46 int protocol_version);
47
41 } // namespace blimp 48 } // namespace blimp
42 49
43 #endif // BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_ 50 #endif // BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/common/create_blimp_message.cc » ('j') | blimp/common/create_blimp_message.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698