Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: content/browser/download/download_net_log_parameters.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "content/public/browser/download_interrupt_reasons.h" 14 #include "content/public/browser/download_interrupt_reasons.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "net/log/net_log_capture_mode.h"
16 #include "url/gurl.h" 17 #include "url/gurl.h"
17 18
18 namespace content { 19 namespace content {
19 20
20 namespace { 21 namespace {
21 22
22 static const char* const download_type_names[] = { 23 static const char* const download_type_names[] = {
23 "NEW_DOWNLOAD", 24 "NEW_DOWNLOAD",
24 "HISTORY_IMPORT", 25 "HISTORY_IMPORT",
25 "SAVE_PAGE_AS" 26 "SAVE_PAGE_AS"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 203
203 dict->SetString("operation", operation); 204 dict->SetString("operation", operation);
204 if (os_error != 0) 205 if (os_error != 0)
205 dict->SetInteger("os_error", os_error); 206 dict->SetInteger("os_error", os_error);
206 dict->SetString("interrupt_reason", DownloadInterruptReasonToString(reason)); 207 dict->SetString("interrupt_reason", DownloadInterruptReasonToString(reason));
207 208
208 return std::move(dict); 209 return std::move(dict);
209 } 210 }
210 211
211 } // namespace content 212 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698