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

Side by Side Diff: components/sessions/core/session_id.h

Issue 1361613002: Move all core files in //components/sessions into core/ subdir (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « components/sessions/core/session_constants.h ('k') | components/sessions/core/session_id.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SESSIONS_SESSION_ID_H_ 5 #ifndef COMPONENTS_SESSIONS_CORE_SESSION_ID_H_
6 #define COMPONENTS_SESSIONS_SESSION_ID_H_ 6 #define COMPONENTS_SESSIONS_CORE_SESSION_ID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "components/sessions/sessions_export.h" 9 #include "components/sessions/core/sessions_export.h"
10 10
11 // Uniquely identifies a tab or window for the duration of a session. 11 // Uniquely identifies a tab or window for the duration of a session.
12 class SESSIONS_EXPORT SessionID { 12 class SESSIONS_EXPORT SessionID {
13 public: 13 public:
14 typedef int32 id_type; 14 typedef int32 id_type;
15 15
16 SessionID(); 16 SessionID();
17 ~SessionID() {} 17 ~SessionID() {}
18 18
19 // Returns the underlying id. 19 // Returns the underlying id.
20 void set_id(id_type id) { id_ = id; } 20 void set_id(id_type id) { id_ = id; }
21 id_type id() const { return id_; } 21 id_type id() const { return id_; }
22 22
23 private: 23 private:
24 id_type id_; 24 id_type id_;
25 }; 25 };
26 26
27 #endif // COMPONENTS_SESSIONS_SESSION_ID_H_ 27 #endif // COMPONENTS_SESSIONS_CORE_SESSION_ID_H_
OLDNEW
« no previous file with comments | « components/sessions/core/session_constants.h ('k') | components/sessions/core/session_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698