summaryrefslogtreecommitdiffstats
path: root/net/base/sdch_manager.h
diff options
context:
space:
mode:
authorrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-14 02:49:13 +0000
committerrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-14 02:49:13 +0000
commit0c2207220bb2b4d9c927182c0aa520e2837bae5a (patch)
tree3096573479b3a07e3dcfbab50a0e5f234914a91c /net/base/sdch_manager.h
parent3e0685de6c31971993b80c2d24777d5d368bcf4b (diff)
downloadchromium_src-0c2207220bb2b4d9c927182c0aa520e2837bae5a.zip
chromium_src-0c2207220bb2b4d9c927182c0aa520e2837bae5a.tar.gz
chromium_src-0c2207220bb2b4d9c927182c0aa520e2837bae5a.tar.bz2
Make SdchManager per-profile.
This will both allow SDCH dictionaries to be cached (as they can use the cache associated with the profile) and will provide privacy protection between different profiles (the existing of a dictionary in one profile will not be leaked to another profile). BUG=374914 R=jar@chromium.org Review URL: https://codereview.chromium.org/298063006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277160 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/sdch_manager.h')
-rw-r--r--net/base/sdch_manager.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/net/base/sdch_manager.h b/net/base/sdch_manager.h
index 63a0e4b..c760313 100644
--- a/net/base/sdch_manager.h
+++ b/net/base/sdch_manager.h
@@ -234,12 +234,6 @@ class NET_EXPORT SdchManager : public NON_EXPORTED_BASE(base::NonThreadSafe) {
SdchManager();
~SdchManager();
- // Discontinue fetching of dictionaries, as we're now shutting down.
- static void Shutdown();
-
- // Provide access to the single instance of this class.
- static SdchManager* Global();
-
// Record stats on various errors.
static void SdchErrorRecovery(ProblemCodes problem);
@@ -263,24 +257,24 @@ class NET_EXPORT SdchManager : public NON_EXPORTED_BASE(base::NonThreadSafe) {
// Used when filter errors are found from a given domain, but it is plausible
// that the cause is temporary (such as application startup, where cached
// entries are used, but a dictionary is not yet loaded).
- static void BlacklistDomain(const GURL& url);
+ void BlacklistDomain(const GURL& url);
// Used when SEVERE filter errors are found from a given domain, to prevent
// further use of SDCH on that domain.
- static void BlacklistDomainForever(const GURL& url);
+ void BlacklistDomainForever(const GURL& url);
// Unit test only, this function resets enabling of sdch, and clears the
// blacklist.
- static void ClearBlacklistings();
+ void ClearBlacklistings();
// Unit test only, this function resets the blacklisting count for a domain.
- static void ClearDomainBlacklisting(const std::string& domain);
+ void ClearDomainBlacklisting(const std::string& domain);
// Unit test only: indicate how many more times a domain will be blacklisted.
- static int BlackListDomainCount(const std::string& domain);
+ int BlackListDomainCount(const std::string& domain);
// Unit test only: Indicate what current blacklist increment is for a domain.
- static int BlacklistDomainExponential(const std::string& domain);
+ int BlacklistDomainExponential(const std::string& domain);
// Check to see if SDCH is enabled (globally), and the given URL is in a
// supported domain (i.e., not blacklisted, and either the specific supported
@@ -343,9 +337,6 @@ class NET_EXPORT SdchManager : public NON_EXPORTED_BASE(base::NonThreadSafe) {
// A map of dictionaries info indexed by the hash that the server provides.
typedef std::map<std::string, Dictionary*> DictionaryMap;
- // The one global instance of that holds all the data.
- static SdchManager* global_;
-
// Support SDCH compression, by advertising in headers.
static bool g_sdch_enabled_;