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

Unified Diff: net/base/sdch_dictionary.h

Issue 1876683002: Implement SDCH Dictionary domain matching as per RFC 2965 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | net/base/sdch_dictionary.cc » ('j') | net/base/sdch_dictionary.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/sdch_dictionary.h
diff --git a/net/base/sdch_dictionary.h b/net/base/sdch_dictionary.h
index fcbecdc48629ebcc741b3f0f12210a2ceaf4c408..b0b25877bcc299855e919c7a48c7c9055161f5e3 100644
--- a/net/base/sdch_dictionary.h
+++ b/net/base/sdch_dictionary.h
@@ -66,6 +66,9 @@ class NET_EXPORT_PRIVATE SdchDictionary {
// target that arrived with a reference to this dictionary.
SdchProblemCode CanUse(const GURL& referring_url) const;
+ // Compare domains to see if they "match" for dictionary use.
+ static bool DomainMatch(const GURL& url, const std::string& restriction);
+
// Compare paths to see if they "match" for dictionary use.
static bool PathMatch(const std::string& path,
const std::string& restriction);
« no previous file with comments | « no previous file | net/base/sdch_dictionary.cc » ('j') | net/base/sdch_dictionary.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698