Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BLIMP_ENGINE_BROWSER_BLIMP_CLIENT_SESSION_MANAGER_H_ | |
| 6 #define BLIMP_ENGINE_BROWSER_BLIMP_CLIENT_SESSION_MANAGER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 | |
| 13 namespace net { | |
| 14 class NetLog; | |
| 15 } | |
| 16 | |
| 17 namespace blimp { | |
| 18 namespace engine { | |
| 19 | |
| 20 class BlimpClientSession; | |
| 21 class BlimpClientSessionManagerDelegate; | |
| 22 | |
| 23 class BlimpClientSessionManager { | |
| 24 public: | |
| 25 // Caller owns |delegate| and |net_log|. | |
| 26 BlimpClientSessionManager(BlimpClientSessionManagerDelegate* delegate, | |
| 27 net::NetLog* net_log); | |
| 28 ~BlimpClientSessionManager(); | |
| 29 | |
| 30 void AttachTestClientSession(); | |
|
Kevin M
2015/10/14 17:52:57
Recommend adding a separate testing constructor th
haibinlu
2015/10/15 01:59:28
Done.
| |
| 31 | |
| 32 private: | |
| 33 BlimpClientSessionManagerDelegate* delegate_; | |
| 34 net::NetLog* net_log_; | |
| 35 scoped_ptr<BlimpClientSession> active_session_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(BlimpClientSessionManager); | |
| 38 }; | |
| 39 | |
| 40 } // namespace engine | |
| 41 } // namespace blimp | |
| 42 | |
| 43 #endif // BLIMP_ENGINE_BROWSER_BLIMP_CLIENT_SESSION_MANAGER_H_ | |
| OLD | NEW |