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

Unified Diff: blimp/engine/browser/blimp_client_session.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.h
diff --git a/blimp/engine/browser/blimp_client_session.h b/blimp/engine/browser/blimp_client_session.h
new file mode 100644
index 0000000000000000000000000000000000000000..cc3573c608d0ed9a0a9042a65a9281a667b6de1c
--- /dev/null
+++ b/blimp/engine/browser/blimp_client_session.h
@@ -0,0 +1,37 @@
+// 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_H_
Kevin M 2015/10/14 17:52:56 This, and the ClientSessionManager, should probabl
haibinlu 2015/10/15 01:59:28 done. removed client session manager per offline d
+#define BLIMP_ENGINE_BROWSER_BLIMP_CLIENT_SESSION_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "ui/gfx/geometry/size.h"
+#include "url/gurl.h"
+
+namespace blimp {
+namespace engine {
+
+class BlimpClientSession {
+ public:
+ BlimpClientSession(const gfx::Size& screen_size, const GURL& url_to_load);
+ ~BlimpClientSession();
+
+ // A blimp client has one screen.
Kevin M 2015/10/14 17:52:56 Remove these fields and includes as per our discus
haibinlu 2015/10/15 01:59:28 done
+ const gfx::Size& screen_size() const { return screen_size_; }
+
+ const GURL& url_to_load() const { return url_to_load_; }
+
+ private:
+ gfx::Size screen_size_;
+ GURL url_to_load_;
+
+ DISALLOW_COPY_AND_ASSIGN(BlimpClientSession);
+};
+
+} // namespace engine
+} // namespace blimp
+
+#endif // BLIMP_ENGINE_BROWSER_BLIMP_CLIENT_SESSION_H_

Powered by Google App Engine
This is Rietveld 408576698