summaryrefslogtreecommitdiffstats
path: root/blimp/net
diff options
context:
space:
mode:
authorhaibinlu <haibinlu@chromium.org>2015-10-15 15:56:47 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-15 22:57:23 +0000
commit28516c7ad6686f548c1c7f971b62c5f359f37b53 (patch)
tree4e1a1aaa6ca2888e240cef5d4229aded0c37bc93 /blimp/net
parent2ae73f1f9ba61c441949053db0c6bc144e7590fa (diff)
downloadchromium_src-28516c7ad6686f548c1c7f971b62c5f359f37b53.zip
chromium_src-28516c7ad6686f548c1c7f971b62c5f359f37b53.tar.gz
chromium_src-28516c7ad6686f548c1c7f971b62c5f359f37b53.tar.bz2
[Blimp] Adds Blimp EngineSession and ClientSession skeleton.
BlimpClientSessionManager (to be added) authenticates and creates client sessions. Once a client session is authenticated, it is given to the engine session. There is at most one active client session attached to the engine session. The engine session manages a list of web contents. Review URL: https://codereview.chromium.org/1403083002 Cr-Commit-Position: refs/heads/master@{#354388}
Diffstat (limited to 'blimp/net')
-rw-r--r--blimp/net/BUILD.gn2
-rw-r--r--blimp/net/blimp_client_session.cc13
-rw-r--r--blimp/net/blimp_client_session.h23
3 files changed, 38 insertions, 0 deletions
diff --git a/blimp/net/BUILD.gn b/blimp/net/BUILD.gn
index 5a1784c..05a1ff3 100644
--- a/blimp/net/BUILD.gn
+++ b/blimp/net/BUILD.gn
@@ -6,6 +6,8 @@ import("//testing/test.gni")
component("blimp_net") {
sources = [
+ "blimp_client_session.cc",
+ "blimp_client_session.h",
"blimp_message_dispatcher.cc",
"blimp_message_dispatcher.h",
"blimp_message_receiver.h",
diff --git a/blimp/net/blimp_client_session.cc b/blimp/net/blimp_client_session.cc
new file mode 100644
index 0000000..c412be2
--- /dev/null
+++ b/blimp/net/blimp_client_session.cc
@@ -0,0 +1,13 @@
+// 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.
+
+#include "blimp/net/blimp_client_session.h"
+
+namespace blimp {
+
+BlimpClientSession::BlimpClientSession() {}
+
+BlimpClientSession::~BlimpClientSession() {}
+
+} // namespace blimp
diff --git a/blimp/net/blimp_client_session.h b/blimp/net/blimp_client_session.h
new file mode 100644
index 0000000..7cde153
--- /dev/null
+++ b/blimp/net/blimp_client_session.h
@@ -0,0 +1,23 @@
+// 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_NET_BLIMP_CLIENT_SESSION_H_
+#define BLIMP_NET_BLIMP_CLIENT_SESSION_H_
+
+#include "base/macros.h"
+
+namespace blimp {
+
+class BlimpClientSession {
+ public:
+ BlimpClientSession();
+ ~BlimpClientSession();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BlimpClientSession);
+};
+
+} // namespace blimp
+
+#endif // BLIMP_NET_BLIMP_CLIENT_SESSION_H_