| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/base/net_log.h" | 5 #include "net/base/net_log.h" |
| 6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
| 7 #include "base/time.h" |
| 7 #include "base/values.h" | 8 #include "base/values.h" |
| 8 | 9 |
| 9 namespace net { | 10 namespace net { |
| 10 | 11 |
| 11 // static | 12 // static |
| 12 const char* NetLog::EventTypeToString(EventType event) { | 13 const char* NetLog::EventTypeToString(EventType event) { |
| 13 switch (event) { | 14 switch (event) { |
| 14 #define EVENT_TYPE(label) case TYPE_ ## label: return #label; | 15 #define EVENT_TYPE(label) case TYPE_ ## label: return #label; |
| 15 #include "net/base/net_log_event_type_list.h" | 16 #include "net/base/net_log_event_type_list.h" |
| 16 #undef EVENT_TYPE | 17 #undef EVENT_TYPE |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 103 |
| 103 DictionaryValue* source_dict = new DictionaryValue(); | 104 DictionaryValue* source_dict = new DictionaryValue(); |
| 104 source_dict->SetInteger(L"type", static_cast<int>(value_.type)); | 105 source_dict->SetInteger(L"type", static_cast<int>(value_.type)); |
| 105 source_dict->SetInteger(L"id", static_cast<int>(value_.id)); | 106 source_dict->SetInteger(L"id", static_cast<int>(value_.id)); |
| 106 | 107 |
| 107 dict->Set(ASCIIToWide(name_), source_dict); | 108 dict->Set(ASCIIToWide(name_), source_dict); |
| 108 return dict; | 109 return dict; |
| 109 } | 110 } |
| 110 | 111 |
| 111 } // namespace net | 112 } // namespace net |
| OLD | NEW |