Support total and per-second task/threadtime timeline metrics
[chromium-blink-merge.git] / components / sessions / session_id.h
blobf23fb7360c68c742ef17a1ee974473515c325705
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_SESSIONS_SESSION_ID_H_
6 #define COMPONENTS_SESSIONS_SESSION_ID_H_
8 #include "base/basictypes.h"
9 #include "components/sessions/sessions_export.h"
11 // Uniquely identifies a tab or window for the duration of a session.
12 class SESSIONS_EXPORT SessionID {
13 public:
14 typedef int32 id_type;
16 SessionID();
17 ~SessionID() {}
19 // Returns the underlying id.
20 void set_id(id_type id) { id_ = id; }
21 id_type id() const { return id_; }
23 private:
24 id_type id_;
27 #endif // COMPONENTS_SESSIONS_SESSION_ID_H_