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

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

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | content/public/test/web_contents_tester.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <vector> 7 #include <vector>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 24 matching lines...) Expand all
35 const GURL& referrer_url, 35 const GURL& referrer_url,
36 bool calculate_hash, 36 bool calculate_hash,
37 scoped_ptr<ByteStreamReader> stream, 37 scoped_ptr<ByteStreamReader> stream,
38 const net::BoundNetLog& bound_net_log, 38 const net::BoundNetLog& bound_net_log,
39 scoped_ptr<PowerSaveBlocker> power_save_blocker, 39 scoped_ptr<PowerSaveBlocker> power_save_blocker,
40 base::WeakPtr<DownloadDestinationObserver> observer, 40 base::WeakPtr<DownloadDestinationObserver> observer,
41 const TestFileErrorInjector::FileErrorInfo& error_info, 41 const TestFileErrorInjector::FileErrorInfo& error_info,
42 const ConstructionCallback& ctor_callback, 42 const ConstructionCallback& ctor_callback,
43 const DestructionCallback& dtor_callback); 43 const DestructionCallback& dtor_callback);
44 44
45 ~DownloadFileWithErrors(); 45 virtual ~DownloadFileWithErrors();
46 46
47 virtual void Initialize(const InitializeCallback& callback) OVERRIDE; 47 virtual void Initialize(const InitializeCallback& callback) OVERRIDE;
48 48
49 // DownloadFile interface. 49 // DownloadFile interface.
50 virtual DownloadInterruptReason AppendDataToFile( 50 virtual DownloadInterruptReason AppendDataToFile(
51 const char* data, size_t data_len) OVERRIDE; 51 const char* data, size_t data_len) OVERRIDE;
52 virtual void RenameAndUniquify( 52 virtual void RenameAndUniquify(
53 const FilePath& full_path, 53 const FilePath& full_path,
54 const RenameCompletionCallback& callback) OVERRIDE; 54 const RenameCompletionCallback& callback) OVERRIDE;
55 virtual void RenameAndAnnotate( 55 virtual void RenameAndAnnotate(
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 case FILE_OPERATION_RENAME_ANNOTATE: 439 case FILE_OPERATION_RENAME_ANNOTATE:
440 return "RENAME_ANNOTATE"; 440 return "RENAME_ANNOTATE";
441 default: 441 default:
442 break; 442 break;
443 } 443 }
444 444
445 return "Unknown"; 445 return "Unknown";
446 } 446 }
447 447
448 } // namespace content 448 } // namespace content
OLDNEW
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | content/public/test/web_contents_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698