summaryrefslogtreecommitdiffstats
path: root/net/sdch/sdch_owner.h
diff options
context:
space:
mode:
authorellyjones <ellyjones@chromium.org>2015-05-14 13:28:55 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-14 20:29:04 +0000
commit887d31b0a7727bb1c0b00c6d70a7bdef4fd29841 (patch)
treed418532753001999186f92898a0feb35b751eef7 /net/sdch/sdch_owner.h
parentd6f9a4e6ed27e57f91bb0ddcf30a2cc96ddb198d (diff)
downloadchromium_src-887d31b0a7727bb1c0b00c6d70a7bdef4fd29841.zip
chromium_src-887d31b0a7727bb1c0b00c6d70a7bdef4fd29841.tar.gz
chromium_src-887d31b0a7727bb1c0b00c6d70a7bdef4fd29841.tar.bz2
SdchObserver: add OnDictionary{Added,Removed}
These methods are called when the observed SdchManager adds or removess dictionaries. BUG= Review URL: https://codereview.chromium.org/1133763003 Cr-Commit-Position: refs/heads/master@{#329920}
Diffstat (limited to 'net/sdch/sdch_owner.h')
-rw-r--r--net/sdch/sdch_owner.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/net/sdch/sdch_owner.h b/net/sdch/sdch_owner.h
index 04b83a1..ec5d82d 100644
--- a/net/sdch/sdch_owner.h
+++ b/net/sdch/sdch_owner.h
@@ -56,12 +56,13 @@ class NET_EXPORT SdchOwner : public SdchObserver, public PrefStore::Observer {
void SetMinSpaceForDictionaryFetch(size_t min_space_for_dictionary_fetch);
// SdchObserver implementation.
- void OnDictionaryUsed(SdchManager* manager,
- const std::string& server_hash) override;
- void OnGetDictionary(SdchManager* manager,
- const GURL& request_url,
+ void OnDictionaryAdded(const GURL& dictionary_url,
+ const std::string& server_hash) override;
+ void OnDictionaryRemoved(const std::string& server_hash) override;
+ void OnDictionaryUsed(const std::string& server_hash) override;
+ void OnGetDictionary(const GURL& request_url,
const GURL& dictionary_url) override;
- void OnClearDictionaries(SdchManager* manager) override;
+ void OnClearDictionaries() override;
// PrefStore::Observer implementation.
void OnPrefValueChanged(const std::string& key) override;