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

Unified Diff: net/base/sdch_manager.cc

Issue 2368433002: Add net::SdchSourceStream and net::SdchPolicyDelegate (Closed)
Patch Set: Fix histograms 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
« no previous file with comments | « net/base/sdch_manager.h ('k') | net/filter/filter_source_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/sdch_manager.cc
diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc
index b4de9a15d31cd33dc45a0633c473f54bfe4213f4..e57d73cfb24ab437fff321a170dbc42a5c7e067f 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"
@@ -443,6 +444,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);
« no previous file with comments | « net/base/sdch_manager.h ('k') | net/filter/filter_source_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698