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

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

Issue 1331173002: Eliminate BaseSessionServiceDelegateImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@persistent_tab_restore_service_client
Patch Set: 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
Index: chrome/browser/sessions/session_common_utils.h
diff --git a/chrome/browser/sessions/session_common_utils.h b/chrome/browser/sessions/session_common_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..7d1281b2dfbc6004a0bee08cdbbf4a151654b871
--- /dev/null
+++ b/chrome/browser/sessions/session_common_utils.h
@@ -0,0 +1,15 @@
+// Copyright 2014 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_COMMON_UTILS_H_
+#define CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_
+
+class GURL;
+
+// Returns whether sessions code should track an entry in the context of
+// //chrome. In particular, blacklists chrome://quit and chrome://restart to
+// avoid quit or restart loops.
+bool ShouldTrackEntry(const GURL& url);
sky 2015/09/10 18:03:51 This function name, and description, are a bit cry
blundell 2015/09/11 08:07:53 Thanks for pointing this out. I changed to ShouldT
+
+#endif // CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_
« no previous file with comments | « chrome/browser/sessions/persistent_tab_restore_service.cc ('k') | chrome/browser/sessions/session_common_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698