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

Unified Diff: components/sessions/session_id.h

Issue 480883002: Move session_id.{cc,h} from chrome/browser/sessions to components/sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « components/sessions/BUILD.gn ('k') | components/sessions/session_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/session_id.h
diff --git a/components/sessions/session_id.h b/components/sessions/session_id.h
new file mode 100644
index 0000000000000000000000000000000000000000..60667dae8f54cd1eafcc5db4d7b03ada2b382cb9
--- /dev/null
+++ b/components/sessions/session_id.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 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 COMPONENTS_SESSIONS_SESSION_ID_H_
+#define COMPONENTS_SESSIONS_SESSION_ID_H_
+
+#include "base/basictypes.h"
+#include "components/sessions/sessions_export.h"
+
+// Uniquely identifies a tab or window for the duration of a session.
+class SESSIONS_EXPORT SessionID {
+ public:
+ typedef int32 id_type;
+
+ SessionID();
+ ~SessionID() {}
+
+ // Returns the underlying id.
+ void set_id(id_type id) { id_ = id; }
+ id_type id() const { return id_; }
+
+ private:
+ id_type id_;
+};
+
+#endif // COMPONENTS_SESSIONS_SESSION_ID_H_
« no previous file with comments | « components/sessions/BUILD.gn ('k') | components/sessions/session_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698