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

Unified Diff: chrome/browser/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 | « chrome/browser/sessions/base_session_service.h ('k') | chrome/browser/sessions/session_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_id.h
diff --git a/chrome/browser/sessions/session_id.h b/chrome/browser/sessions/session_id.h
deleted file mode 100644
index dd9d02df965d37c2d1e2199f1c77a782ff13ee03..0000000000000000000000000000000000000000
--- a/chrome/browser/sessions/session_id.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// 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 CHROME_BROWSER_SESSIONS_SESSION_ID_H_
-#define CHROME_BROWSER_SESSIONS_SESSION_ID_H_
-
-#include "base/basictypes.h"
-
-namespace content {
-class WebContents;
-}
-
-// Uniquely identifies a tab or window for the duration of a session.
-class SessionID {
- public:
- typedef int32 id_type;
-
- SessionID();
- ~SessionID() {}
-
- // If the specified WebContents has a SessionTabHelper (probably because it
- // was used as the contents of a tab), returns a tab id. This value is
- // immutable for a given tab. It will be unique across Chrome within the
- // current session, but may be re-used across sessions. Returns -1
- // for a NULL WebContents or if the WebContents has no SessionTabHelper.
- static id_type IdForTab(const content::WebContents* tab);
-
- // If the specified WebContents has a SessionTabHelper (probably because it
- // was used as the contents of a tab), and has ever been attached to a Browser
- // window, returns Browser::session_id().id() for that Browser. If the tab is
- // being dragged between Browser windows, returns the old window's id value.
- // If the WebContents has a SessionTabHelper but has never been attached to a
- // Browser window, returns an id value that is different from that of any
- // Browser. Returns -1 for a NULL WebContents or if the WebContents has no
- // SessionTabHelper.
- static id_type IdForWindowContainingTab(const content::WebContents* tab);
-
- // Returns the underlying id.
- void set_id(id_type id) { id_ = id; }
- id_type id() const { return id_; }
-
- private:
- id_type id_;
-};
-
-#endif // CHROME_BROWSER_SESSIONS_SESSION_ID_H_
« no previous file with comments | « chrome/browser/sessions/base_session_service.h ('k') | chrome/browser/sessions/session_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698