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

Unified Diff: net/base/sdch_net_log_params.cc

Issue 423813002: Sdch view for net-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix component linkage Created 6 years, 1 month 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_net_log_params.h ('k') | net/base/sdch_problem_code_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/sdch_net_log_params.cc
diff --git a/net/base/sdch_net_log_params.cc b/net/base/sdch_net_log_params.cc
new file mode 100644
index 0000000000000000000000000000000000000000..02e0ad7819264a4e215e9fe3e83a3d909af46d5d
--- /dev/null
+++ b/net/base/sdch_net_log_params.cc
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/base/sdch_net_log_params.h"
+
+#include "base/values.h"
+#include "net/base/net_errors.h"
+#include "url/gurl.h"
+
+namespace net {
+
+base::Value* NetLogSdchResourceProblemCallback(SdchProblemCode problem,
+ NetLog::LogLevel log_level) {
+ base::DictionaryValue* dict = new base::DictionaryValue();
+ dict->SetInteger("sdch_problem_code", problem);
+ dict->SetInteger("net_error", ERR_FAILED);
+ return dict;
+}
+
+base::Value* NetLogSdchDictionaryFetchProblemCallback(
+ SdchProblemCode problem,
+ const GURL& url,
+ bool is_error,
+ NetLog::LogLevel log_level) {
+ base::DictionaryValue* dict = new base::DictionaryValue();
+ dict->SetInteger("sdch_problem_code", problem);
+ dict->SetString("dictionary_url", url.spec());
+ if (is_error)
+ dict->SetInteger("net_error", ERR_FAILED);
+ return dict;
+}
+
+} // namespace net
« no previous file with comments | « net/base/sdch_net_log_params.h ('k') | net/base/sdch_problem_code_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698