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

Unified Diff: net/base/sdch_manager.cc

Issue 1133883002: [Cronet] Enable persistence mode for Sdch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@quic_server_remove_loop
Patch Set: Missing include 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..cfc3ec78b047d5f18c00672a4471555999d19b94 100644
--- a/net/base/sdch_manager.cc
+++ b/net/base/sdch_manager.cc
@@ -448,6 +448,9 @@ 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 +460,10 @@ 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