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

Unified Diff: components/sessions/core/tab_restore_service_client.h

Issue 1345453002: Remove knowledge of extensions from TabRestoreServiceHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tab_restore_service_delegate_static_methods
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sessions/tab_restore_service_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/core/tab_restore_service_client.h
diff --git a/components/sessions/core/tab_restore_service_client.h b/components/sessions/core/tab_restore_service_client.h
index 600d8dd416e5869d845dc35804704d9d00f6df09..99f1089c08adb12aa109f7944f18e23b8bdd2424 100644
--- a/components/sessions/core/tab_restore_service_client.h
+++ b/components/sessions/core/tab_restore_service_client.h
@@ -73,6 +73,14 @@ class TabRestoreServiceClient {
// Returns whether a given URL should be tracked for restoring.
virtual bool ShouldTrackURLForRestore(const GURL& url) = 0;
+ // Returns the extension app ID for the given WebContents, or the empty string
+ // if there is no such ID (e.g., if extensions are not supported by the
+ // embedder).
+ // TODO(blundell): Replace the usage of WebContents here with the cross-
+ // platform interface that will abstract it. crbug.com/530174
+ virtual std::string GetExtensionAppIDForWebContents(
+ content::WebContents* web_contents) = 0;
+
// Get the sequenced worker pool for running tasks on the backend thread as
// long as the system is not shutting down.
virtual base::SequencedWorkerPool* GetBlockingPool() = 0;
« no previous file with comments | « chrome/browser/sessions/tab_restore_service_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698