| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CORE_CONTEXT_BLIMP_CLIENT_CONTEXT_IMPL_H_ | 5 #ifndef BLIMP_CLIENT_CORE_CONTEXT_BLIMP_CLIENT_CONTEXT_IMPL_H_ |
| 6 #define BLIMP_CLIENT_CORE_CONTEXT_BLIMP_CLIENT_CONTEXT_IMPL_H_ | 6 #define BLIMP_CLIENT_CORE_CONTEXT_BLIMP_CLIENT_CONTEXT_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 protected: | 72 protected: |
| 73 // Returns the URL to use for connections to the assigner. Used to construct | 73 // Returns the URL to use for connections to the assigner. Used to construct |
| 74 // the AssignmentSource. | 74 // the AssignmentSource. |
| 75 virtual GURL GetAssignerURL(); | 75 virtual GURL GetAssignerURL(); |
| 76 | 76 |
| 77 // BlimpSettingsDelegate implementation. | 77 // BlimpSettingsDelegate implementation. |
| 78 IdentitySource* GetIdentitySource() override; | 78 IdentitySource* GetIdentitySource() override; |
| 79 ConnectionStatus* GetConnectionStatus() override; | 79 ConnectionStatus* GetConnectionStatus() override; |
| 80 | 80 |
| 81 Settings* settings() { return settings_.get(); } |
| 82 |
| 81 private: | 83 private: |
| 82 // Called when the AssignmentSource is finished getting an Assignment. Will | 84 // Called when the AssignmentSource is finished getting an Assignment. Will |
| 83 // then call |ConnectWithAssignment| to initiate the actual connection. | 85 // then call |ConnectWithAssignment| to initiate the actual connection. |
| 84 virtual void OnAssignmentReceived(AssignmentRequestResult result, | 86 virtual void OnAssignmentReceived(AssignmentRequestResult result, |
| 85 const Assignment& assignment); | 87 const Assignment& assignment); |
| 86 | 88 |
| 87 void RegisterFeatures(); | 89 void RegisterFeatures(); |
| 88 void InitializeSettings(); | 90 void InitializeSettings(); |
| 89 | 91 |
| 90 // Terminates the active connection held by |net_connections_|. | 92 // Terminates the active connection held by |net_connections_|. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 140 |
| 139 base::WeakPtrFactory<BlimpClientContextImpl> weak_factory_; | 141 base::WeakPtrFactory<BlimpClientContextImpl> weak_factory_; |
| 140 | 142 |
| 141 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl); | 143 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl); |
| 142 }; | 144 }; |
| 143 | 145 |
| 144 } // namespace client | 146 } // namespace client |
| 145 } // namespace blimp | 147 } // namespace blimp |
| 146 | 148 |
| 147 #endif // BLIMP_CLIENT_CORE_CONTEXT_BLIMP_CLIENT_CONTEXT_IMPL_H_ | 149 #endif // BLIMP_CLIENT_CORE_CONTEXT_BLIMP_CLIENT_CONTEXT_IMPL_H_ |
| OLD | NEW |