OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/download/download_net_log_parameters.h" | 5 #include "content/browser/download/download_net_log_parameters.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "content/public/browser/download_interrupt_reasons.h" | 12 #include "content/public/browser/download_interrupt_reasons.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 static const char* download_type_names[] = { | 20 static const char* download_type_names[] = { |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 dict->SetString("operation", operation); | 199 dict->SetString("operation", operation); |
200 if (os_error != 0) | 200 if (os_error != 0) |
201 dict->SetInteger("os_error", os_error); | 201 dict->SetInteger("os_error", os_error); |
202 dict->SetString("interrupt_reason", InterruptReasonDebugString(reason)); | 202 dict->SetString("interrupt_reason", InterruptReasonDebugString(reason)); |
203 | 203 |
204 return dict; | 204 return dict; |
205 } | 205 } |
206 | 206 |
207 | 207 |
208 } // namespace content | 208 } // namespace content |
OLD | NEW |