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

Side by Side Diff: net/disk_cache/simple/simple_util.h

Issue 22582009: Improve time resolution in PlatformFileInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more TODO for gavinp Created 7 years, 4 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 | « base/platform_file_posix.cc ('k') | net/disk_cache/simple/simple_util.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 NET_DISK_CACHE_SIMPLE_SIMPLE_UTIL_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_UTIL_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_UTIL_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // returns the number of bytes in the file. 55 // returns the number of bytes in the file.
56 NET_EXPORT_PRIVATE int64 GetFileSizeFromKeyAndDataSize(const std::string& key, 56 NET_EXPORT_PRIVATE int64 GetFileSizeFromKeyAndDataSize(const std::string& key,
57 int32 data_size); 57 int32 data_size);
58 58
59 // Given the key to an entry, and an offset into a stream on that entry, returns 59 // Given the key to an entry, and an offset into a stream on that entry, returns
60 // the file offset corresponding to |data_offset|. 60 // the file offset corresponding to |data_offset|.
61 NET_EXPORT_PRIVATE int64 GetFileOffsetFromKeyAndDataOffset( 61 NET_EXPORT_PRIVATE int64 GetFileOffsetFromKeyAndDataOffset(
62 const std::string& key, 62 const std::string& key,
63 int data_offset); 63 int data_offset);
64 64
65 // Fills |out_time| with the time the file last modified time. Unlike the 65 // Fills |out_time| with the time the file last modified time.
66 // functions in platform_file.h, the time resolution is milliseconds. 66 // TODO(gavinp): Remove this function.
67 NET_EXPORT_PRIVATE bool GetMTime(const base::FilePath& path, 67 NET_EXPORT_PRIVATE bool GetMTime(const base::FilePath& path,
68 base::Time* out_mtime); 68 base::Time* out_mtime);
69 } // namespace simple_backend 69 } // namespace simple_backend
70 70
71 } // namespace disk_cache 71 } // namespace disk_cache
72 72
73 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_UTIL_H_ 73 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_UTIL_H_
OLDNEW
« no previous file with comments | « base/platform_file_posix.cc ('k') | net/disk_cache/simple/simple_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698