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

Side by Side Diff: content/public/test/test_file_error_injector.h

Issue 2473003002: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Another missing forward declaration Created 4 years, 1 month 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 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_ERROR_INJECTOR_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_ERROR_INJECTOR_H_
6 #define CONTENT_PUBLIC_TEST_TEST_FILE_ERROR_INJECTOR_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_FILE_ERROR_INJECTOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "content/public/browser/download_interrupt_reasons.h" 16 #include "content/public/browser/download_interrupt_reasons.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 class DownloadId;
22 class DownloadFileWithErrorFactory; 21 class DownloadFileWithErrorFactory;
23 class DownloadManager; 22 class DownloadManager;
24 class DownloadManagerImpl; 23 class DownloadManagerImpl;
25 24
26 // Test helper for injecting errors into download file operations. All errors 25 // Test helper for injecting errors into download file operations. All errors
27 // for a download must be injected before it starts. This class needs to be 26 // for a download must be injected before it starts. This class needs to be
28 // |RefCountedThreadSafe| because the implementation is referenced by other 27 // |RefCountedThreadSafe| because the implementation is referenced by other
29 // classes that live past the time when the user is nominally done with it. 28 // classes that live past the time when the user is nominally done with it.
30 // 29 //
31 // Once created, an error injected via InjectError() will cause any 30 // Once created, an error injected via InjectError() will cause any
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 121
123 // The download manager we set the factory on. 122 // The download manager we set the factory on.
124 DownloadManagerImpl* download_manager_ = nullptr; 123 DownloadManagerImpl* download_manager_ = nullptr;
125 124
126 DISALLOW_COPY_AND_ASSIGN(TestFileErrorInjector); 125 DISALLOW_COPY_AND_ASSIGN(TestFileErrorInjector);
127 }; 126 };
128 127
129 } // namespace content 128 } // namespace content
130 129
131 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_ERROR_INJECTOR_H_ 130 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_ERROR_INJECTOR_H_
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/public/test/test_file_system_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698