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 #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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 ~BlimpClientSession() override; | 79 ~BlimpClientSession() override; |
| 80 | 80 |
| 81 // Notified every time the AssignmentSource returns the result of an attempted | 81 // Notified every time the AssignmentSource returns the result of an attempted |
| 82 // assignment request. | 82 // assignment request. |
| 83 virtual void OnAssignmentConnectionAttempted(AssignmentRequestResult result, | 83 virtual void OnAssignmentConnectionAttempted(AssignmentRequestResult result, |
| 84 const Assignment& assignment); | 84 const Assignment& assignment); |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 void RegisterFeatures(); | 87 void RegisterFeatures(); |
| 88 | 88 |
| 89 // Terminates the active connection held by |net_connections_|. | |
| 90 // May be called on any thread. | |
|
Wez
2016/09/17 01:56:31
Eek, let's not leave inviting comments like that i
Kevin M
2016/09/19 17:00:23
Done.
| |
| 91 void DropConnection(); | |
| 92 | |
| 89 // NetworkEventObserver implementation. | 93 // NetworkEventObserver implementation. |
| 90 void OnConnected() override; | 94 void OnConnected() override; |
| 91 void OnDisconnected(int result) override; | 95 void OnDisconnected(int result) override; |
| 92 | 96 |
| 93 // BlobImageSerializationProcessor::ErrorDelegate implementation. | 97 // BlobImageSerializationProcessor::ErrorDelegate implementation. |
| 94 void OnImageDecodeError() override; | 98 void OnImageDecodeError() override; |
| 95 | 99 |
| 96 base::Thread io_thread_; | 100 base::Thread io_thread_; |
| 97 | 101 |
| 98 // Receives blob BlimpMessages and relays them to BlobChannelReceiver. | 102 // Receives blob BlimpMessages and relays them to BlobChannelReceiver. |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 123 | 127 |
| 124 base::WeakPtrFactory<BlimpClientSession> weak_factory_; | 128 base::WeakPtrFactory<BlimpClientSession> weak_factory_; |
| 125 | 129 |
| 126 DISALLOW_COPY_AND_ASSIGN(BlimpClientSession); | 130 DISALLOW_COPY_AND_ASSIGN(BlimpClientSession); |
| 127 }; | 131 }; |
| 128 | 132 |
| 129 } // namespace client | 133 } // namespace client |
| 130 } // namespace blimp | 134 } // namespace blimp |
| 131 | 135 |
| 132 #endif // BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ | 136 #endif // BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ |
| OLD | NEW |