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

Unified Diff: components/google/core/browser/google_util.h

Issue 2966763003: [Prototype] Delete Google service worker caches on Android signout (Closed)
Patch Set: Addressed nits. Created 3 years, 5 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/test/BUILD.gn ('k') | components/google/core/browser/google_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/google/core/browser/google_util.h
diff --git a/components/google/core/browser/google_util.h b/components/google/core/browser/google_util.h
index d2526b22b381cbef561d025069b9ddf5a0142fdc..d4730ef29e666bd3e515607f3c132a0574b953a2 100644
--- a/components/google/core/browser/google_util.h
+++ b/components/google/core/browser/google_util.h
@@ -8,6 +8,7 @@
#define COMPONENTS_GOOGLE_CORE_BROWSER_GOOGLE_UTIL_H_
#include <string>
+#include <vector>
#include "base/strings/string_piece.h"
@@ -112,6 +113,14 @@ bool IsYoutubeDomainUrl(const GURL& url,
SubdomainPermission subdomain_permission,
PortPermission port_permission);
+// Returns the list of all Google's registerable domains, i.e. domains named
+// google.<eTLD> owned by Google.
+// TODO(msramek): This is currently only used to ensure the deletion of Google
+// service workers on signout. Remove this once we have other options to do it,
+// such as service workers discovering that signin cookies are missing and
+// unregistering themselves.
+const std::vector<std::string>& GetGoogleRegistrableDomains();
+
} // namespace google_util
#endif // COMPONENTS_GOOGLE_CORE_BROWSER_GOOGLE_UTIL_H_
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/google/core/browser/google_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698