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

Unified Diff: blimp/engine/browser/blimp_client_session_manager_delegate.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_delegate.h
diff --git a/blimp/engine/browser/blimp_client_session_manager_delegate.h b/blimp/engine/browser/blimp_client_session_manager_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..9040d9a3f46528729bde8a74779d51c4127a14ae
--- /dev/null
+++ b/blimp/engine/browser/blimp_client_session_manager_delegate.h
@@ -0,0 +1,29 @@
+// 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_DELEGATE_H_
+#define BLIMP_ENGINE_BROWSER_BLIMP_CLIENT_SESSION_MANAGER_DELEGATE_H_
+
+#include "blimp/engine/browser/blimp_client_session.h"
+
+namespace blimp {
+namespace engine {
+
+class BlimpClientSessionManagerDelegate {
+ public:
+ virtual ~BlimpClientSessionManagerDelegate() {}
+
+ // Attaches a new client session to the engine. There must not be an
+ // existing attached client session.
+ // Caller owns |client_session|.
+ virtual void AttachClientSession(BlimpClientSession* client_session) = 0;
Kevin M 2015/10/14 17:52:57 I recommend rephrasing these to "ClientSessionCrea
haibinlu 2015/10/15 01:59:28 per offline discussion, rename this class to 'hand
+
+ // Detaches an existing client session from the engine.
+ virtual void DetachClientSession(BlimpClientSession* client_session) = 0;
+};
+
+} // namespace engine
+} // namespace blimp
+
+#endif // BLIMP_ENGINE_BROWSER_BLIMP_CLIENT_SESSION_MANAGER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698