summaryrefslogtreecommitdiffstats
path: root/net/filter
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/filter
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/filter')
-rw-r--r--net/filter/sdch_filter_unittest.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/net/filter/sdch_filter_unittest.cc b/net/filter/sdch_filter_unittest.cc
index 4601d25..a83e63f 100644
--- a/net/filter/sdch_filter_unittest.cc
+++ b/net/filter/sdch_filter_unittest.cc
@@ -1236,8 +1236,7 @@ class SimpleSdchObserver : public SdchObserver {
~SimpleSdchObserver() override { manager_->RemoveObserver(this); }
// SdchObserver
- void OnDictionaryUsed(SdchManager* manager,
- const std::string& server_hash) override {
+ void OnDictionaryUsed(const std::string& server_hash) override {
dictionary_used_++;
last_server_hash_ = server_hash;
}
@@ -1245,10 +1244,12 @@ class SimpleSdchObserver : public SdchObserver {
int dictionary_used_calls() const { return dictionary_used_; }
std::string last_server_hash() const { return last_server_hash_; }
- 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 OnGetDictionary(const GURL& /* request_url */,
const GURL& /* dictionary_url */) override {}
- void OnClearDictionaries(SdchManager* /* manager */) override {}
+ void OnClearDictionaries() override {}
private:
int dictionary_used_;