| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // The AssignmentCallback for when an assignment is ready. This will trigger | 74 // The AssignmentCallback for when an assignment is ready. This will trigger |
| 75 // a connection to the engine. | 75 // a connection to the engine. |
| 76 virtual void ConnectWithAssignment(AssignmentSource::Result result, | 76 virtual void ConnectWithAssignment(AssignmentSource::Result result, |
| 77 const Assignment& assignment); | 77 const Assignment& assignment); |
| 78 | 78 |
| 79 protected: | 79 protected: |
| 80 ~BlimpClientSession() override; | 80 ~BlimpClientSession() override; |
| 81 | 81 |
| 82 // Notified every time the AssignmentSource returns the result of an attempted | 82 // Notified every time the AssignmentSource returns the result of an attempted |
| 83 // assignment request. | 83 // assignment request. |
| 84 virtual void OnAssignmentConnectionAttempted(AssignmentSource::Result result); | 84 virtual void OnAssignmentConnectionAttempted(AssignmentSource::Result result, |
| 85 const Assignment& assignment); |
| 85 | 86 |
| 86 private: | 87 private: |
| 87 void RegisterFeatures(); | 88 void RegisterFeatures(); |
| 88 | 89 |
| 89 // NetworkEventObserver implementation. | 90 // NetworkEventObserver implementation. |
| 90 void OnConnected() override; | 91 void OnConnected() override; |
| 91 void OnDisconnected(int result) override; | 92 void OnDisconnected(int result) override; |
| 92 | 93 |
| 93 base::Thread io_thread_; | 94 base::Thread io_thread_; |
| 94 std::unique_ptr<TabControlFeature> tab_control_feature_; | 95 std::unique_ptr<TabControlFeature> tab_control_feature_; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 109 | 110 |
| 110 base::WeakPtrFactory<BlimpClientSession> weak_factory_; | 111 base::WeakPtrFactory<BlimpClientSession> weak_factory_; |
| 111 | 112 |
| 112 DISALLOW_COPY_AND_ASSIGN(BlimpClientSession); | 113 DISALLOW_COPY_AND_ASSIGN(BlimpClientSession); |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 } // namespace client | 116 } // namespace client |
| 116 } // namespace blimp | 117 } // namespace blimp |
| 117 | 118 |
| 118 #endif // BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ | 119 #endif // BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ |
| OLD | NEW |