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

Unified Diff: chrome/browser/sessions/session_id.h

Issue 10912156: Move SessionID, CaptureVisibleTabFunction to WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase atop the extension tab helper change Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/tab_helper.cc ('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
index 19f1dc41340a949a958915a2df7aae42abee9bd2..54f43a793941235318e32b329952462de9acc8ab 100644
--- a/chrome/browser/sessions/session_id.h
+++ b/chrome/browser/sessions/session_id.h
@@ -8,7 +8,10 @@
#include "base/basictypes.h"
class Browser;
-class TabContents;
+
+namespace content {
+class WebContents;
+}
// Uniquely identifies a tab or window for the duration of a session.
class SessionID {
@@ -21,14 +24,14 @@ class SessionID {
// 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 NULL, and will never return -1 for a valid tab.
- static id_type IdForTab(const TabContents* tab);
+ static id_type IdForTab(const content::WebContents* tab);
// If the tab has ever been attached to a window, this is the value of
// Browser::session_id().id() for some Browser object. Returns -1 for NULL, or
// another value that's not equal to any Browser's id for a tab that has never
// been attached to a window. IdForWindowContainingTab() returns the old
// window for a tab that's currently being dragged between windows.
- static id_type IdForWindowContainingTab(const TabContents* tab);
+ static id_type IdForWindowContainingTab(const content::WebContents* tab);
// Returns the underlying id.
void set_id(id_type id) { id_ = id; }
« no previous file with comments | « chrome/browser/extensions/tab_helper.cc ('k') | chrome/browser/sessions/session_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698