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

Side by Side Diff: webkit/browser/blob/file_stream_reader.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "webkit/browser/blob/file_stream_reader.h"
6
7 #include "base/time/time.h"
8
9 namespace webkit_blob {
10
11 // Verify if the underlying file has not been modified.
12 bool FileStreamReader::VerifySnapshotTime(
13 const base::Time& expected_modification_time,
14 const base::File::Info& file_info) {
15 return expected_modification_time.is_null() ||
16 expected_modification_time.ToTimeT() ==
17 file_info.last_modified.ToTimeT();
18 }
19
20 } // namespace webkit_blob
OLDNEW
« no previous file with comments | « webkit/browser/blob/file_stream_reader.h ('k') | webkit/browser/blob/local_file_stream_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698