diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 12:46:38 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 12:46:38 +0000 |
commit | f0a51fb571f46531025fa09240bbc3e1af925e84 (patch) | |
tree | 558b4f0e737fda4b9ab60f252c9c23b8a4ca523e /net/base/sdch_manager.cc | |
parent | 6390be368205705f49ead3cec40396519f13b889 (diff) | |
download | chromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.zip chromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.tar.gz chromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.tar.bz2 |
Fixes CRLF and trailing white spaces.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/sdch_manager.cc')
-rw-r--r-- | net/base/sdch_manager.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc index 458c3a4..ac63c6c 100644 --- a/net/base/sdch_manager.cc +++ b/net/base/sdch_manager.cc @@ -142,12 +142,12 @@ const bool SdchManager::IsInSupportedDomain(const GURL& url) { bool SdchManager::CanFetchDictionary(const GURL& referring_url, const GURL& dictionary_url) const { - /* The user agent may retrieve a dictionary from the dictionary URL if all of + /* The user agent may retrieve a dictionary from the dictionary URL if all of the following are true: 1 The dictionary URL host name matches the referrer URL host name 2 The dictionary URL host name domain matches the parent domain of the referrer URL host name - 3 The parent domain of the referrer URL host name is not a top level + 3 The parent domain of the referrer URL host name is not a top level domain 4 The dictionary URL is not an HTTPS URL. */ @@ -365,7 +365,7 @@ bool SdchManager::Dictionary::CanSet(const std::string& domain, const GURL& dictionary_url) { if (!SdchManager::Global()->IsInSupportedDomain(dictionary_url)) return false; - /* + /* A dictionary is invalid and must not be stored if any of the following are true: 1. The dictionary has no Domain attribute. @@ -459,7 +459,7 @@ bool SdchManager::Dictionary::CanUse(const GURL referring_url) { bool SdchManager::Dictionary::CanAdvertise(const GURL& target_url) { if (!SdchManager::Global()->IsInSupportedDomain(target_url)) return false; - /* The specific rules of when a dictionary should be advertised in an + /* The specific rules of when a dictionary should be advertised in an Avail-Dictionary header are modeled after the rules for cookie scoping. The terms "domain-match" and "pathmatch" are defined in RFC 2965 [6]. A dictionary may be advertised in the Avail-Dictionaries header exactly when @@ -489,7 +489,7 @@ bool SdchManager::Dictionary::PathMatch(const std::string& path, /* Must be either: 1. P2 is equal to P1 2. P2 is a prefix of P1 and either the final character in P2 is "/" or the - character following P2 in P1 is "/". + character following P2 in P1 is "/". */ if (path == restriction) return true; |