Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: net/base/sdch_manager.cc

Issue 1133763003: SdchObserver: add OnDictionary{Added,Removed} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/sdch_manager.cc
diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc
index c43c8b08c955afa6c441ce5ffbf89408e074abd0..bdb553d8a7aa044773efa6db00d6e647c2f1ed87 100644
--- a/net/base/sdch_manager.cc
+++ b/net/base/sdch_manager.cc
@@ -448,6 +448,10 @@ SdchProblemCode SdchManager::AddSdchDictionary(
if (server_hash_p)
*server_hash_p = server_hash;
+ FOR_EACH_OBSERVER(SdchObserver,
+ observers_,
+ OnDictionaryAdded(this, dictionary_url, server_hash));
+
return SDCH_OK;
}
@@ -457,6 +461,11 @@ SdchProblemCode SdchManager::RemoveSdchDictionary(
return SDCH_DICTIONARY_HASH_NOT_FOUND;
dictionaries_.erase(server_hash);
+
+ FOR_EACH_OBSERVER(SdchObserver,
+ observers_,
+ OnDictionaryRemoved(this, server_hash));
+
return SDCH_OK;
}

Powered by Google App Engine
This is Rietveld 408576698