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

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

Issue 1876983002: Use Chromium BUILD to approximate Blimp protocol version, and check it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add disconnection message and unit-tests Created 4 years, 8 months 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "blimp/common/blimp_common_export.h" 13 #include "blimp/common/blimp_common_export.h"
14 #include "blimp/common/proto/protocol_control.pb.h"
14 15
15 namespace blimp { 16 namespace blimp {
16 17
17 class BlimpMessage; 18 class BlimpMessage;
18 class CompositorMessage; 19 class CompositorMessage;
19 class EngineSettingsMessage; 20 class EngineSettingsMessage;
20 class ImeMessage; 21 class ImeMessage;
21 class InputMessage; 22 class InputMessage;
22 class NavigationMessage; 23 class NavigationMessage;
23 class RenderWidgetMessage; 24 class RenderWidgetMessage;
24 class SettingsMessage; 25 class SettingsMessage;
25 class SizeMessage; 26 class SizeMessage;
26 class StartConnectionMessage;
27 class TabControlMessage; 27 class TabControlMessage;
28 28
29 // Suite of helper methods to simplify the repetitive task of creating 29 // Suite of helper methods to simplify the repetitive task of creating
30 // new BlimpMessages, initializing them, and extracting type-specific 30 // new BlimpMessages, initializing them, and extracting type-specific
31 // inner messages. 31 // inner messages.
32 // 32 //
33 // 33 //
34 // Every specialization of CreateBlimpMessage returns an initialized 34 // Every specialization of CreateBlimpMessage returns an initialized
35 // BlimpMessage object. In addition, a pointer to the type-specific inner 35 // BlimpMessage object. In addition, a pointer to the type-specific inner
36 // message is returned via the initial double-pointer parameter. 36 // message is returned via the initial double-pointer parameter.
(...skipping 29 matching lines...) Expand all
66 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateBlimpMessage( 66 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateBlimpMessage(
67 EngineSettingsMessage** engine_settings); 67 EngineSettingsMessage** engine_settings);
68 68
69 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateStartConnectionMessage( 69 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateStartConnectionMessage(
70 const std::string& client_token, 70 const std::string& client_token,
71 int protocol_version); 71 int protocol_version);
72 72
73 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateCheckpointAckMessage( 73 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateCheckpointAckMessage(
74 int64_t checkpoint_id); 74 int64_t checkpoint_id);
75 75
76 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateEndConnectionMessage(
77 EndConnectionMessage::Reason reason);
78
76 } // namespace blimp 79 } // namespace blimp
77 80
78 #endif // BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_ 81 #endif // BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698