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

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: Fix Android to use GetVersionNumber() Created 4 years, 6 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
« no previous file with comments | « blimp/common/BUILD.gn ('k') | blimp/common/create_blimp_message.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 BlobChannelMessage; 19 class BlobChannelMessage;
19 class CompositorMessage; 20 class CompositorMessage;
20 class EngineSettingsMessage; 21 class EngineSettingsMessage;
21 class ImeMessage; 22 class ImeMessage;
22 class InputMessage; 23 class InputMessage;
23 class NavigationMessage; 24 class NavigationMessage;
24 class RenderWidgetMessage; 25 class RenderWidgetMessage;
25 class SettingsMessage; 26 class SettingsMessage;
26 class SizeMessage; 27 class SizeMessage;
27 class StartConnectionMessage;
28 class TabControlMessage; 28 class TabControlMessage;
29 29
30 // Suite of helper methods to simplify the repetitive task of creating 30 // Suite of helper methods to simplify the repetitive task of creating
31 // new BlimpMessages, initializing them, and extracting type-specific 31 // new BlimpMessages, initializing them, and extracting type-specific
32 // inner messages. 32 // inner messages.
33 // 33 //
34 // 34 //
35 // Every specialization of CreateBlimpMessage returns an initialized 35 // Every specialization of CreateBlimpMessage returns an initialized
36 // BlimpMessage object. In addition, a pointer to the type-specific inner 36 // BlimpMessage object. In addition, a pointer to the type-specific inner
37 // message is returned via the initial double-pointer parameter. 37 // message is returned via the initial double-pointer parameter.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateBlimpMessage( 70 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateBlimpMessage(
71 BlobChannelMessage** blob_channel_message); 71 BlobChannelMessage** blob_channel_message);
72 72
73 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateStartConnectionMessage( 73 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateStartConnectionMessage(
74 const std::string& client_token, 74 const std::string& client_token,
75 int protocol_version); 75 int protocol_version);
76 76
77 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateCheckpointAckMessage( 77 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateCheckpointAckMessage(
78 int64_t checkpoint_id); 78 int64_t checkpoint_id);
79 79
80 BLIMP_COMMON_EXPORT std::unique_ptr<BlimpMessage> CreateEndConnectionMessage(
81 EndConnectionMessage::Reason reason);
82
80 } // namespace blimp 83 } // namespace blimp
81 84
82 #endif // BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_ 85 #endif // BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_
OLDNEW
« no previous file with comments | « blimp/common/BUILD.gn ('k') | blimp/common/create_blimp_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698