blob: d432e79beb36953aaabb03d8f24a3c650e78bd07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (c) 2010 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/url_request/url_request_netlog_params.h"
#include "base/values.h"
URLRequestStartEventParameters::URLRequestStartEventParameters(
const GURL& url, const std::string& method, int load_flags)
: url_(url), method_(method), load_flags_(load_flags) {}
Value* URLRequestStartEventParameters::ToValue() const {
DictionaryValue* dict = new DictionaryValue();
dict->SetString(L"url", url_.possibly_invalid_spec());
dict->SetString(L"method", method_);
dict->SetInteger(L"load_flags", load_flags_);
return dict;
}
|