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

Unified Diff: net/base/sdch_manager.cc

Issue 2368433002: Add net::SdchSourceStream and net::SdchPolicyDelegate (Closed)
Patch Set: Address Randy's comments Created 4 years, 2 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 c409bd6726d7059eddc1c4be2f64a53617addb96..87daf004ba3b07e4a5782cdc3041dafb6bc41898 100644
--- a/net/base/sdch_manager.cc
+++ b/net/base/sdch_manager.cc
@@ -17,6 +17,7 @@
#include "base/values.h"
#include "crypto/sha2.h"
#include "net/base/parse_number.h"
+#include "net/base/sdch_net_log_params.h"
#include "net/base/sdch_observer.h"
#include "net/url_request/url_request_http_job.h"
@@ -442,6 +443,14 @@ SdchProblemCode SdchManager::RemoveSdchDictionary(
}
// static
+void SdchManager::LogSdchProblem(NetLogWithSource netlog,
+ SdchProblemCode problem) {
+ SdchManager::SdchErrorRecovery(problem);
+ netlog.AddEvent(NetLogEventType::SDCH_DECODING_ERROR,
+ base::Bind(&NetLogSdchResourceProblemCallback, problem));
+}
+
+// static
std::unique_ptr<SdchManager::DictionarySet>
SdchManager::CreateEmptyDictionarySetForTesting() {
return std::unique_ptr<DictionarySet>(new DictionarySet);

Powered by Google App Engine
This is Rietveld 408576698