| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_SESSIONS_SESSION_ID_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_ID_H_ |
| 6 #define CHROME_BROWSER_SESSIONS_SESSION_ID_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_ID_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 class Browser; | |
| 11 | |
| 12 namespace content { | 10 namespace content { |
| 13 class WebContents; | 11 class WebContents; |
| 14 } | 12 } |
| 15 | 13 |
| 16 // Uniquely identifies a tab or window for the duration of a session. | 14 // Uniquely identifies a tab or window for the duration of a session. |
| 17 class SessionID { | 15 class SessionID { |
| 18 public: | 16 public: |
| 19 typedef int32 id_type; | 17 typedef int32 id_type; |
| 20 | 18 |
| 21 SessionID(); | 19 SessionID(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 | 38 |
| 41 // Returns the underlying id. | 39 // Returns the underlying id. |
| 42 void set_id(id_type id) { id_ = id; } | 40 void set_id(id_type id) { id_ = id; } |
| 43 id_type id() const { return id_; } | 41 id_type id() const { return id_; } |
| 44 | 42 |
| 45 private: | 43 private: |
| 46 id_type id_; | 44 id_type id_; |
| 47 }; | 45 }; |
| 48 | 46 |
| 49 #endif // CHROME_BROWSER_SESSIONS_SESSION_ID_H_ | 47 #endif // CHROME_BROWSER_SESSIONS_SESSION_ID_H_ |
| OLD | NEW |