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