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

Unified Diff: chrome/browser/privacy_blacklist/blacklist.h

Issue 523137: Also match against the query string if present. (Closed)
Patch Set: updates Created 10 years, 11 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/net/chrome_url_request_context.cc ('k') | chrome/browser/privacy_blacklist/blacklist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/privacy_blacklist/blacklist.h
diff --git a/chrome/browser/privacy_blacklist/blacklist.h b/chrome/browser/privacy_blacklist/blacklist.h
index 2fba5fb6ce58d3172d3ffcab9d2ed3e703a00ede..0f6bf6164155a5bf86969d6b7b03a21838dd1dea 100644
--- a/chrome/browser/privacy_blacklist/blacklist.h
+++ b/chrome/browser/privacy_blacklist/blacklist.h
@@ -173,7 +173,7 @@ class Blacklist {
// Returns a pointer to a Match structure holding all matching entries.
// If no matching Entry is found, returns null. Ownership belongs to the
// caller.
- Match* findMatch(const GURL&) const;
+ Match* FindMatch(const GURL&) const;
// Helper to remove cookies from a header.
static std::string StripCookies(const std::string&);
@@ -182,14 +182,17 @@ class Blacklist {
static std::string StripCookieExpiry(const std::string&);
private:
+ // Converts a GURL into the string to match against.
+ static std::string GetURLAsString(const GURL& url);
brettw 2010/01/12 15:53:51 I'd suggest a name a little more specific. The pro
jochen (gone - plz use gerrit) 2010/01/12 16:30:19 Done.
+
// Matches a pattern to a core URL which is host/path with all the other
- // optional parts (scheme, user, password, port) stripped away. Used only
- // internally but made static so that access can be given to tests.
+ // optional parts (scheme, user, password, port) stripped away.
static bool Matches(const std::string& pattern, const std::string& url);
EntryList blacklist_;
ProviderList providers_;
+ FRIEND_TEST(BlacklistTest, Generic);
FRIEND_TEST(BlacklistTest, PatternMatch);
DISALLOW_COPY_AND_ASSIGN(Blacklist);
};
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/privacy_blacklist/blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698