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

Side by Side Diff: storage/browser/database/vfs_backend.h

Issue 1006423008: Add SetFileSize() IPC for WebSQL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary IPC_MESSAGE_HANDLER_DELAY_REPLYs, remove unnecessary scoped_refptrs. Created 5 years, 8 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) 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 STORAGE_BROWSER_DATABASE_VFS_BACKEND_H_ 5 #ifndef STORAGE_BROWSER_DATABASE_VFS_BACKEND_H_
6 #define STORAGE_BROWSER_DATABASE_VFS_BACKEND_H_ 6 #define STORAGE_BROWSER_DATABASE_VFS_BACKEND_H_
7 7
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 12 matching lines...) Expand all
23 23
24 static base::File OpenTempFileInDirectory(const base::FilePath& dir_path, 24 static base::File OpenTempFileInDirectory(const base::FilePath& dir_path,
25 int desired_flags); 25 int desired_flags);
26 26
27 static int DeleteFile(const base::FilePath& file_path, bool sync_dir); 27 static int DeleteFile(const base::FilePath& file_path, bool sync_dir);
28 28
29 static uint32 GetFileAttributes(const base::FilePath& file_path); 29 static uint32 GetFileAttributes(const base::FilePath& file_path);
30 30
31 static int64 GetFileSize(const base::FilePath& file_path); 31 static int64 GetFileSize(const base::FilePath& file_path);
32 32
33 static bool SetFileSize(const base::FilePath& file_path, int64 size);
34
33 // Used to make decisions in the DatabaseDispatcherHost. 35 // Used to make decisions in the DatabaseDispatcherHost.
34 static bool OpenTypeIsReadWrite(int desired_flags); 36 static bool OpenTypeIsReadWrite(int desired_flags);
35 37
36 private: 38 private:
37 static bool OpenFileFlagsAreConsistent(int desired_flags); 39 static bool OpenFileFlagsAreConsistent(int desired_flags);
38 }; 40 };
39 41
40 } // namespace storage 42 } // namespace storage
41 43
42 #endif // STORAGE_BROWSER_DATABASE_VFS_BACKEND_H_ 44 #endif // STORAGE_BROWSER_DATABASE_VFS_BACKEND_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | storage/browser/database/vfs_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698