Chromium Code Reviews| 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 #include "blimp/client/session/blimp_client_session.h" | 5 #include "blimp/client/session/blimp_client_session.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/sequenced_task_runner.h" | 15 #include "base/sequenced_task_runner.h" |
| 16 #include "base/threading/sequenced_task_runner_handle.h" | 16 #include "base/threading/sequenced_task_runner_handle.h" |
| 17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
| 18 #include "base/threading/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
| 19 #include "blimp/client/core/blimp_client_switches.h" | 19 #include "blimp/client/core/blimp_client_switches.h" |
| 20 #include "blimp/client/core/contents/ime_feature.h" | 20 #include "blimp/client/core/contents/ime_feature.h" |
| 21 #include "blimp/client/core/contents/navigation_feature.h" | 21 #include "blimp/client/core/contents/navigation_feature.h" |
| 22 #include "blimp/client/core/contents/tab_control_feature.h" | 22 #include "blimp/client/core/contents/tab_control_feature.h" |
| 23 #include "blimp/client/core/render_widget/render_widget_feature.h" | |
| 23 #include "blimp/client/core/session/client_network_components.h" | 24 #include "blimp/client/core/session/client_network_components.h" |
| 24 #include "blimp/client/core/session/cross_thread_network_event_observer.h" | 25 #include "blimp/client/core/session/cross_thread_network_event_observer.h" |
| 25 #include "blimp/client/feature/render_widget_feature.h" | 26 #include "blimp/client/core/settings/settings_feature.h" |
| 26 #include "blimp/client/feature/settings_feature.h" | |
| 27 #include "blimp/common/blob_cache/in_memory_blob_cache.h" | 27 #include "blimp/common/blob_cache/in_memory_blob_cache.h" |
| 28 #include "blimp/net/blimp_message_thread_pipe.h" | 28 #include "blimp/net/blimp_message_thread_pipe.h" |
| 29 #include "blimp/net/blimp_stats.h" | 29 #include "blimp/net/blimp_stats.h" |
| 30 #include "blimp/net/blob_channel/blob_channel_receiver.h" | 30 #include "blimp/net/blob_channel/blob_channel_receiver.h" |
| 31 #include "blimp/net/blob_channel/helium_blob_receiver_delegate.h" | 31 #include "blimp/net/blob_channel/helium_blob_receiver_delegate.h" |
| 32 #include "blimp/net/thread_pipe_manager.h" | 32 #include "blimp/net/thread_pipe_manager.h" |
| 33 #include "url/gurl.h" | 33 #include "url/gurl.h" |
| 34 | 34 |
| 35 namespace blimp { | 35 namespace blimp { |
| 36 namespace client { | 36 namespace client { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 tab_control_feature_.get())); | 113 tab_control_feature_.get())); |
| 114 navigation_feature_->set_outgoing_message_processor( | 114 navigation_feature_->set_outgoing_message_processor( |
| 115 thread_pipe_manager_->RegisterFeature(BlimpMessage::kNavigation, | 115 thread_pipe_manager_->RegisterFeature(BlimpMessage::kNavigation, |
| 116 navigation_feature_.get())); | 116 navigation_feature_.get())); |
| 117 render_widget_feature_->set_outgoing_input_message_processor( | 117 render_widget_feature_->set_outgoing_input_message_processor( |
| 118 thread_pipe_manager_->RegisterFeature(BlimpMessage::kInput, | 118 thread_pipe_manager_->RegisterFeature(BlimpMessage::kInput, |
| 119 render_widget_feature_.get())); | 119 render_widget_feature_.get())); |
| 120 render_widget_feature_->set_outgoing_compositor_message_processor( | 120 render_widget_feature_->set_outgoing_compositor_message_processor( |
| 121 thread_pipe_manager_->RegisterFeature(BlimpMessage::kCompositor, | 121 thread_pipe_manager_->RegisterFeature(BlimpMessage::kCompositor, |
| 122 render_widget_feature_.get())); | 122 render_widget_feature_.get())); |
| 123 settings_feature_->set_outgoing_message_processor( | |
|
Khushal
2016/08/31 04:30:47
We still need this in the app right?
David Trainor- moved to gerrit
2016/08/31 05:21:27
... maybe
| |
| 124 thread_pipe_manager_->RegisterFeature(BlimpMessage::kSettings, | |
| 125 settings_feature_.get())); | |
| 126 thread_pipe_manager_->RegisterFeature(BlimpMessage::kBlobChannel, | 123 thread_pipe_manager_->RegisterFeature(BlimpMessage::kBlobChannel, |
| 127 blob_delegate_); | 124 blob_delegate_); |
| 128 | 125 |
| 129 // Client will not send send any RenderWidget messages, so don't save the | 126 // Client will not send send any RenderWidget messages, so don't save the |
| 130 // outgoing BlimpMessageProcessor in the RenderWidgetFeature. | 127 // outgoing BlimpMessageProcessor in the RenderWidgetFeature. |
| 131 thread_pipe_manager_->RegisterFeature(BlimpMessage::kRenderWidget, | 128 thread_pipe_manager_->RegisterFeature(BlimpMessage::kRenderWidget, |
| 132 render_widget_feature_.get()); | 129 render_widget_feature_.get()); |
| 133 | 130 |
| 134 ime_feature_->set_outgoing_message_processor( | 131 ime_feature_->set_outgoing_message_processor( |
| 135 thread_pipe_manager_->RegisterFeature(BlimpMessage::kIme, | 132 thread_pipe_manager_->RegisterFeature(BlimpMessage::kIme, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 167 RenderWidgetFeature* BlimpClientSession::GetRenderWidgetFeature() const { | 164 RenderWidgetFeature* BlimpClientSession::GetRenderWidgetFeature() const { |
| 168 return render_widget_feature_.get(); | 165 return render_widget_feature_.get(); |
| 169 } | 166 } |
| 170 | 167 |
| 171 SettingsFeature* BlimpClientSession::GetSettingsFeature() const { | 168 SettingsFeature* BlimpClientSession::GetSettingsFeature() const { |
| 172 return settings_feature_.get(); | 169 return settings_feature_.get(); |
| 173 } | 170 } |
| 174 | 171 |
| 175 } // namespace client | 172 } // namespace client |
| 176 } // namespace blimp | 173 } // namespace blimp |
| OLD | NEW |