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_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_ | 5 #ifndef BLIMP_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_ |
6 #define BLIMP_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_ | 6 #define BLIMP_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 | 48 |
49 namespace wm { | 49 namespace wm { |
50 class FocusController; | 50 class FocusController; |
51 } | 51 } |
52 | 52 |
53 namespace blimp { | 53 namespace blimp { |
54 | 54 |
55 class BlimpConnection; | 55 class BlimpConnection; |
56 class BlimpMessage; | 56 class BlimpMessage; |
57 class BlimpMessageThreadPipe; | 57 class BlimpMessageThreadPipe; |
58 class BlobCache; | |
59 class BlobChannelSender; | |
60 class HeliumBlobSenderDelegate; | |
58 class ThreadPipeManager; | 61 class ThreadPipeManager; |
59 class SettingsManager; | 62 class SettingsManager; |
60 | 63 |
61 namespace engine { | 64 namespace engine { |
62 | 65 |
63 class BlimpBrowserContext; | 66 class BlimpBrowserContext; |
64 class BlimpEngineConfig; | 67 class BlimpEngineConfig; |
65 class BlimpFocusClient; | 68 class BlimpFocusClient; |
66 class BlimpScreen; | 69 class BlimpScreen; |
67 class BlimpWindowTreeHost; | 70 class BlimpWindowTreeHost; |
(...skipping 14 matching lines...) Expand all Loading... | |
82 SettingsManager* settings_manager); | 85 SettingsManager* settings_manager); |
83 ~BlimpEngineSession() override; | 86 ~BlimpEngineSession() override; |
84 | 87 |
85 // Starts the network stack on the IO thread, and sets default placeholder | 88 // Starts the network stack on the IO thread, and sets default placeholder |
86 // values for e.g. screen size pending real values being supplied by the | 89 // values for e.g. screen size pending real values being supplied by the |
87 // client. | 90 // client. |
88 void Initialize(); | 91 void Initialize(); |
89 | 92 |
90 BlimpBrowserContext* browser_context() { return browser_context_.get(); } | 93 BlimpBrowserContext* browser_context() { return browser_context_.get(); } |
91 | 94 |
95 BlobChannelSender* blob_sender() { return blob_sender_.get(); } | |
nyquist
2016/05/24 00:05:41
Nit: blob_channel_sender() or rename class here as
Kevin M
2016/05/27 22:35:31
Done.
| |
96 | |
92 // Gets Engine's listening port. Invokes callback with the allocated port. | 97 // Gets Engine's listening port. Invokes callback with the allocated port. |
93 void GetEnginePortForTesting(const GetPortCallback& callback); | 98 void GetEnginePortForTesting(const GetPortCallback& callback); |
94 | 99 |
95 // BlimpMessageProcessor implementation. | 100 // BlimpMessageProcessor implementation. |
96 // This object handles incoming TAB_CONTROL and NAVIGATION messages directly. | 101 // This object handles incoming TAB_CONTROL and NAVIGATION messages directly. |
97 void ProcessMessage(std::unique_ptr<BlimpMessage> message, | 102 void ProcessMessage(std::unique_ptr<BlimpMessage> message, |
98 const net::CompletionCallback& callback) override; | 103 const net::CompletionCallback& callback) override; |
99 | 104 |
100 private: | 105 private: |
101 // Creates ThreadPipeManager, registers features, and then starts to accept | 106 // Creates ThreadPipeManager, registers features, and then starts to accept |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
200 // Manages all global settings for the engine session. | 205 // Manages all global settings for the engine session. |
201 SettingsManager* settings_manager_; | 206 SettingsManager* settings_manager_; |
202 | 207 |
203 // Handles all incoming messages for type SETTINGS. | 208 // Handles all incoming messages for type SETTINGS. |
204 EngineSettingsFeature settings_feature_; | 209 EngineSettingsFeature settings_feature_; |
205 | 210 |
206 // Handles all incoming and outgoing messages related to RenderWidget, | 211 // Handles all incoming and outgoing messages related to RenderWidget, |
207 // including INPUT, COMPOSITOR and RENDER_WIDGET messages. | 212 // including INPUT, COMPOSITOR and RENDER_WIDGET messages. |
208 EngineRenderWidgetFeature render_widget_feature_; | 213 EngineRenderWidgetFeature render_widget_feature_; |
209 | 214 |
215 HeliumBlobSenderDelegate* blob_delegate_; | |
Wez
2016/05/21 01:08:05
Add a comment to explain what this is for.
Kevin M
2016/05/27 22:35:31
Done.
| |
216 std::unique_ptr<BlobChannelSender> blob_sender_; | |
217 | |
210 // Container for connection manager, authentication handler, and | 218 // Container for connection manager, authentication handler, and |
211 // browser connection handler. The components run on the I/O thread, and | 219 // browser connection handler. The components run on the I/O thread, and |
212 // this object is destroyed there. | 220 // this object is destroyed there. |
213 std::unique_ptr<EngineNetworkComponents> net_components_; | 221 std::unique_ptr<EngineNetworkComponents> net_components_; |
214 | 222 |
215 std::unique_ptr<ThreadPipeManager> thread_pipe_manager_; | 223 std::unique_ptr<ThreadPipeManager> thread_pipe_manager_; |
216 | 224 |
217 // Used to send TAB_CONTROL or NAVIGATION messages to client. | 225 // Used to send TAB_CONTROL or NAVIGATION messages to client. |
218 std::unique_ptr<BlimpMessageProcessor> tab_control_message_sender_; | 226 std::unique_ptr<BlimpMessageProcessor> tab_control_message_sender_; |
219 std::unique_ptr<BlimpMessageProcessor> navigation_message_sender_; | 227 std::unique_ptr<BlimpMessageProcessor> navigation_message_sender_; |
220 | 228 |
221 DISALLOW_COPY_AND_ASSIGN(BlimpEngineSession); | 229 DISALLOW_COPY_AND_ASSIGN(BlimpEngineSession); |
222 }; | 230 }; |
223 | 231 |
224 } // namespace engine | 232 } // namespace engine |
225 } // namespace blimp | 233 } // namespace blimp |
226 | 234 |
227 #endif // BLIMP_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_ | 235 #endif // BLIMP_ENGINE_SESSION_BLIMP_ENGINE_SESSION_H_ |
OLD | NEW |