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

Side by Side Diff: content/public/test/test_file_error_injector.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/public/test/test_file_error_injector.h" 5 #include "content/public/test/test_file_error_injector.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "content/browser/download/download_file_factory.h" 13 #include "content/browser/download/download_file_factory.h"
14 #include "content/browser/download/download_file_impl.h" 14 #include "content/browser/download/download_file_impl.h"
15 #include "content/browser/download/download_interrupt_reasons_impl.h" 15 #include "content/browser/download/download_interrupt_reasons_impl.h"
16 #include "content/browser/download/download_manager_impl.h" 16 #include "content/browser/download/download_manager_impl.h"
17 #include "content/browser/loader/resource_dispatcher_host_impl.h" 17 #include "content/browser/loader/resource_dispatcher_host_impl.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 namespace net {
22 class NetLogWithSource;
23 }
24
21 namespace content { 25 namespace content {
22 class ByteStreamReader; 26 class ByteStreamReader;
23 27
24 namespace { 28 namespace {
25 29
26 // A class that performs file operations and injects errors. 30 // A class that performs file operations and injects errors.
27 class DownloadFileWithError: public DownloadFileImpl { 31 class DownloadFileWithError: public DownloadFileImpl {
28 public: 32 public:
29 DownloadFileWithError(std::unique_ptr<DownloadSaveInfo> save_info, 33 DownloadFileWithError(std::unique_ptr<DownloadSaveInfo> save_info,
30 const base::FilePath& default_download_directory, 34 const base::FilePath& default_download_directory,
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 case FILE_OPERATION_RENAME_ANNOTATE: 403 case FILE_OPERATION_RENAME_ANNOTATE:
400 return "RENAME_ANNOTATE"; 404 return "RENAME_ANNOTATE";
401 default: 405 default:
402 break; 406 break;
403 } 407 }
404 408
405 return "Unknown"; 409 return "Unknown";
406 } 410 }
407 411
408 } // namespace content 412 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698