| OLD | NEW |
| 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 <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "blimp/common/blimp_common_export.h" | 13 #include "blimp/common/blimp_common_export.h" |
| 14 | 14 |
| 15 namespace blimp { | 15 namespace blimp { |
| 16 | 16 |
| 17 class BlimpMessage; | 17 class BlimpMessage; |
| 18 class CompositorMessage; | 18 class CompositorMessage; |
| 19 class EngineSettingsMessage; |
| 19 class ImeMessage; | 20 class ImeMessage; |
| 20 class InputMessage; | 21 class InputMessage; |
| 21 class NavigationMessage; | 22 class NavigationMessage; |
| 22 class RenderWidgetMessage; | 23 class RenderWidgetMessage; |
| 24 class SettingsMessage; |
| 23 class SizeMessage; | 25 class SizeMessage; |
| 24 class StartConnectionMessage; | 26 class StartConnectionMessage; |
| 25 class TabControlMessage; | 27 class TabControlMessage; |
| 26 | 28 |
| 27 // Suite of helper methods to simplify the repetitive task of creating | 29 // Suite of helper methods to simplify the repetitive task of creating |
| 28 // new BlimpMessages, initializing them, and extracting type-specific | 30 // new BlimpMessages, initializing them, and extracting type-specific |
| 29 // inner messages. | 31 // inner messages. |
| 30 // | 32 // |
| 31 // | 33 // |
| 32 // Every specialization of CreateBlimpMessage returns an initialized | 34 // Every specialization of CreateBlimpMessage returns an initialized |
| (...skipping 21 matching lines...) Expand all Loading... |
| 54 ImeMessage** ime_message, | 56 ImeMessage** ime_message, |
| 55 int target_tab_id); | 57 int target_tab_id); |
| 56 | 58 |
| 57 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( | 59 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( |
| 58 RenderWidgetMessage** render_widget_message, | 60 RenderWidgetMessage** render_widget_message, |
| 59 int target_tab_id); | 61 int target_tab_id); |
| 60 | 62 |
| 61 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( | 63 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( |
| 62 SizeMessage** size_message); | 64 SizeMessage** size_message); |
| 63 | 65 |
| 66 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( |
| 67 EngineSettingsMessage** engine_settings); |
| 68 |
| 64 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateStartConnectionMessage( | 69 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateStartConnectionMessage( |
| 65 const std::string& client_token, | 70 const std::string& client_token, |
| 66 int protocol_version); | 71 int protocol_version); |
| 67 | 72 |
| 68 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateCheckpointAckMessage( | 73 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateCheckpointAckMessage( |
| 69 int64_t checkpoint_id); | 74 int64_t checkpoint_id); |
| 70 | 75 |
| 71 } // namespace blimp | 76 } // namespace blimp |
| 72 | 77 |
| 73 #endif // BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_ | 78 #endif // BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_ |
| OLD | NEW |