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

Side by Side Diff: base/file_util_proxy.h

Issue 9148018: [Coverity] Fixed call by value to by reference (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 | « no previous file | content/browser/renderer_host/redirect_to_file_resource_handler.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 BASE_FILE_UTIL_PROXY_H_ 5 #ifndef BASE_FILE_UTIL_PROXY_H_
6 #define BASE_FILE_UTIL_PROXY_H_ 6 #define BASE_FILE_UTIL_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
(...skipping 23 matching lines...) Expand all
34 // This callback is used by methods that report only an error code. It is 34 // This callback is used by methods that report only an error code. It is
35 // valid to pass a null callback to any function that takes a StatusCallback, 35 // valid to pass a null callback to any function that takes a StatusCallback,
36 // in which case the operation will complete silently. 36 // in which case the operation will complete silently.
37 typedef Callback<void(PlatformFileError)> StatusCallback; 37 typedef Callback<void(PlatformFileError)> StatusCallback;
38 38
39 typedef Callback<void(PlatformFileError, 39 typedef Callback<void(PlatformFileError,
40 PassPlatformFile, 40 PassPlatformFile,
41 bool /* created */)> CreateOrOpenCallback; 41 bool /* created */)> CreateOrOpenCallback;
42 typedef Callback<void(PlatformFileError, 42 typedef Callback<void(PlatformFileError,
43 PassPlatformFile, 43 PassPlatformFile,
44 FilePath)> CreateTemporaryCallback; 44 const FilePath&)> CreateTemporaryCallback;
45 typedef Callback<void(PlatformFileError, 45 typedef Callback<void(PlatformFileError,
46 const PlatformFileInfo& 46 const PlatformFileInfo&
47 )> GetFileInfoCallback; 47 )> GetFileInfoCallback;
48 typedef Callback<void(PlatformFileError, 48 typedef Callback<void(PlatformFileError,
49 const char* /* data */, 49 const char* /* data */,
50 int /* bytes read */)> ReadCallback; 50 int /* bytes read */)> ReadCallback;
51 typedef Callback<void(PlatformFileError, 51 typedef Callback<void(PlatformFileError,
52 int /* bytes written */)> WriteCallback; 52 int /* bytes written */)> WriteCallback;
53 53
54 typedef Callback<PlatformFileError(PlatformFile*, bool*)> CreateOrOpenTask; 54 typedef Callback<PlatformFileError(PlatformFile*, bool*)> CreateOrOpenTask;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 PlatformFile, 187 PlatformFile,
188 const StatusCallback& callback); 188 const StatusCallback& callback);
189 189
190 private: 190 private:
191 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy); 191 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy);
192 }; 192 };
193 193
194 } // namespace base 194 } // namespace base
195 195
196 #endif // BASE_FILE_UTIL_PROXY_H_ 196 #endif // BASE_FILE_UTIL_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/redirect_to_file_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698