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_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ | 5 #ifndef BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ |
6 #define BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ | 6 #define BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 class BrowserConnectionHandler; | 27 class BrowserConnectionHandler; |
28 class ClientConnectionManager; | 28 class ClientConnectionManager; |
29 class ThreadPipeManager; | 29 class ThreadPipeManager; |
30 | 30 |
31 namespace client { | 31 namespace client { |
32 | 32 |
33 class ClientNetworkComponents; | 33 class ClientNetworkComponents; |
34 class NavigationFeature; | 34 class NavigationFeature; |
35 class ImeFeature; | 35 class ImeFeature; |
36 class RenderWidgetFeature; | 36 class RenderWidgetFeature; |
| 37 class SettingsFeature; |
37 class TabControlFeature; | 38 class TabControlFeature; |
38 | 39 |
39 class NetworkEventObserver { | 40 class NetworkEventObserver { |
40 public: | 41 public: |
41 NetworkEventObserver() {} | 42 NetworkEventObserver() {} |
42 virtual ~NetworkEventObserver() {} | 43 virtual ~NetworkEventObserver() {} |
43 | 44 |
44 virtual void OnConnected() = 0; | 45 virtual void OnConnected() = 0; |
45 virtual void OnDisconnected(int result) = 0; | 46 virtual void OnDisconnected(int result) = 0; |
46 }; | 47 }; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 87 |
87 // NetworkEventObserver implementation. | 88 // NetworkEventObserver implementation. |
88 void OnConnected() override; | 89 void OnConnected() override; |
89 void OnDisconnected(int result) override; | 90 void OnDisconnected(int result) override; |
90 | 91 |
91 base::Thread io_thread_; | 92 base::Thread io_thread_; |
92 scoped_ptr<TabControlFeature> tab_control_feature_; | 93 scoped_ptr<TabControlFeature> tab_control_feature_; |
93 scoped_ptr<NavigationFeature> navigation_feature_; | 94 scoped_ptr<NavigationFeature> navigation_feature_; |
94 scoped_ptr<ImeFeature> ime_feature_; | 95 scoped_ptr<ImeFeature> ime_feature_; |
95 scoped_ptr<RenderWidgetFeature> render_widget_feature_; | 96 scoped_ptr<RenderWidgetFeature> render_widget_feature_; |
| 97 scoped_ptr<SettingsFeature> settings_feature_; |
96 | 98 |
97 // The AssignmentSource is used when the user of BlimpClientSession calls | 99 // The AssignmentSource is used when the user of BlimpClientSession calls |
98 // Connect() to get a valid assignment and later connect to the engine. | 100 // Connect() to get a valid assignment and later connect to the engine. |
99 scoped_ptr<AssignmentSource> assignment_source_; | 101 scoped_ptr<AssignmentSource> assignment_source_; |
100 | 102 |
101 // Container struct for network components. | 103 // Container struct for network components. |
102 // Must be deleted on the IO thread. | 104 // Must be deleted on the IO thread. |
103 scoped_ptr<ClientNetworkComponents> net_components_; | 105 scoped_ptr<ClientNetworkComponents> net_components_; |
104 | 106 |
105 scoped_ptr<ThreadPipeManager> thread_pipe_manager_; | 107 scoped_ptr<ThreadPipeManager> thread_pipe_manager_; |
106 | 108 |
107 base::WeakPtrFactory<BlimpClientSession> weak_factory_; | 109 base::WeakPtrFactory<BlimpClientSession> weak_factory_; |
108 | 110 |
109 DISALLOW_COPY_AND_ASSIGN(BlimpClientSession); | 111 DISALLOW_COPY_AND_ASSIGN(BlimpClientSession); |
110 }; | 112 }; |
111 | 113 |
112 } // namespace client | 114 } // namespace client |
113 } // namespace blimp | 115 } // namespace blimp |
114 | 116 |
115 #endif // BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ | 117 #endif // BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ |
OLD | NEW |