Chromium Code Reviews| Index: blimp/engine/browser/blimp_client_session_manager.h |
| diff --git a/blimp/engine/browser/blimp_client_session_manager.h b/blimp/engine/browser/blimp_client_session_manager.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5746db251ad584377d655a541b960c3930e8f1bf |
| --- /dev/null |
| +++ b/blimp/engine/browser/blimp_client_session_manager.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef BLIMP_ENGINE_BROWSER_BLIMP_CLIENT_SESSION_MANAGER_H_ |
| +#define BLIMP_ENGINE_BROWSER_BLIMP_CLIENT_SESSION_MANAGER_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/scoped_ptr.h" |
| + |
| +namespace net { |
| +class NetLog; |
| +} |
| + |
| +namespace blimp { |
| +namespace engine { |
| + |
| +class BlimpClientSession; |
| +class BlimpClientSessionManagerDelegate; |
| + |
| +class BlimpClientSessionManager { |
| + public: |
| + // Caller owns |delegate| and |net_log|. |
| + BlimpClientSessionManager(BlimpClientSessionManagerDelegate* delegate, |
| + net::NetLog* net_log); |
| + ~BlimpClientSessionManager(); |
| + |
| + 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.
|
| + |
| + private: |
| + BlimpClientSessionManagerDelegate* delegate_; |
| + net::NetLog* net_log_; |
| + scoped_ptr<BlimpClientSession> active_session_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(BlimpClientSessionManager); |
| +}; |
| + |
| +} // namespace engine |
| +} // namespace blimp |
| + |
| +#endif // BLIMP_ENGINE_BROWSER_BLIMP_CLIENT_SESSION_MANAGER_H_ |