Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2859)

Unified Diff: blimp/engine/browser/blimp_client_session_manager.h

Issue 1403083002: [Blimp] Adds Blimp EngineSession and ClientSession skeleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698