| Index: net/base/sdch_manager.h
|
| diff --git a/net/base/sdch_manager.h b/net/base/sdch_manager.h
|
| index c760313284e2ee396323d5de71262daf97aef330..57cad69d9a7f1f66762f50020d35d9d4426807c3 100644
|
| --- a/net/base/sdch_manager.h
|
| +++ b/net/base/sdch_manager.h
|
| @@ -49,6 +49,11 @@ class SdchFetcher {
|
| // from a server. The callee is responsible for getting that dictionary_text,
|
| // and then calling back to AddSdchDictionary() to the SdchManager instance.
|
| virtual void Schedule(const GURL& dictionary_url) = 0;
|
| +
|
| + // The Cancel() method is called to cancel all pending dictionary fetches.
|
| + // This is used for implementation of ClearData() below.
|
| + virtual void Cancel() = 0;
|
| +
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(SdchFetcher);
|
| };
|
| @@ -234,6 +239,9 @@ class NET_EXPORT SdchManager : public NON_EXPORTED_BASE(base::NonThreadSafe) {
|
| SdchManager();
|
| ~SdchManager();
|
|
|
| + // Clear data (for browser data removal).
|
| + void ClearData();
|
| +
|
| // Record stats on various errors.
|
| static void SdchErrorRecovery(ProblemCodes problem);
|
|
|
| @@ -335,7 +343,7 @@ class NET_EXPORT SdchManager : public NON_EXPORTED_BASE(base::NonThreadSafe) {
|
| typedef std::set<std::string> ExperimentSet;
|
|
|
| // A map of dictionaries info indexed by the hash that the server provides.
|
| - typedef std::map<std::string, Dictionary*> DictionaryMap;
|
| + typedef std::map<std::string, scoped_refptr<Dictionary> > DictionaryMap;
|
|
|
| // Support SDCH compression, by advertising in headers.
|
| static bool g_sdch_enabled_;
|
| @@ -358,7 +366,7 @@ class NET_EXPORT SdchManager : public NON_EXPORTED_BASE(base::NonThreadSafe) {
|
|
|
| // Support exponential backoff in number of domain accesses before
|
| // blacklisting expires.
|
| - DomainCounter exponential_blacklist_count;
|
| + DomainCounter exponential_blacklist_count_;
|
|
|
| // List of hostnames for which a latency experiment is allowed (because a
|
| // round trip test has recently passed).
|
|
|