1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/base/sdch_net_log_params.h"
7 #include "base/values.h"
8 #include "net/base/net_errors.h"
13 base::Value
* NetLogSdchResourceProblemCallback(SdchProblemCode problem
,
14 NetLog::LogLevel log_level
) {
15 base::DictionaryValue
* dict
= new base::DictionaryValue();
16 dict
->SetInteger("sdch_problem_code", problem
);
17 dict
->SetInteger("net_error", ERR_FAILED
);
21 base::Value
* NetLogSdchDictionaryFetchProblemCallback(
22 SdchProblemCode problem
,
25 NetLog::LogLevel log_level
) {
26 base::DictionaryValue
* dict
= new base::DictionaryValue();
27 dict
->SetInteger("sdch_problem_code", problem
);
28 dict
->SetString("dictionary_url", url
.spec());
30 dict
->SetInteger("net_error", ERR_FAILED
);