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

Side by Side Diff: base/files/important_file_writer.h

Issue 18051003: Use a direct include of time headers in base/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/files/file_path_watcher_win.cc ('k') | base/files/important_file_writer.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 #ifndef BASE_FILES_IMPORTANT_FILE_WRITER_H_ 5 #ifndef BASE_FILES_IMPORTANT_FILE_WRITER_H_
6 #define BASE_FILES_IMPORTANT_FILE_WRITER_H_ 6 #define BASE_FILES_IMPORTANT_FILE_WRITER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/threading/non_thread_safe.h" 14 #include "base/threading/non_thread_safe.h"
15 #include "base/time.h" 15 #include "base/time/time.h"
16 #include "base/timer.h" 16 #include "base/timer/timer.h"
17 17
18 namespace base { 18 namespace base {
19 19
20 class SequencedTaskRunner; 20 class SequencedTaskRunner;
21 class Thread; 21 class Thread;
22 22
23 // Helper to ensure that a file won't be corrupted by the write (for example on 23 // Helper to ensure that a file won't be corrupted by the write (for example on
24 // application crash). Consider a naive way to save an important file F: 24 // application crash). Consider a naive way to save an important file F:
25 // 25 //
26 // 1. Open F for writing, truncating it. 26 // 1. Open F for writing, truncating it.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Time delta after which scheduled data will be written to disk. 113 // Time delta after which scheduled data will be written to disk.
114 TimeDelta commit_interval_; 114 TimeDelta commit_interval_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(ImportantFileWriter); 116 DISALLOW_COPY_AND_ASSIGN(ImportantFileWriter);
117 }; 117 };
118 118
119 } // namespace base 119 } // namespace base
120 120
121 #endif // BASE_FILES_IMPORTANT_FILE_WRITER_H_ 121 #endif // BASE_FILES_IMPORTANT_FILE_WRITER_H_
OLDNEW
« no previous file with comments | « base/files/file_path_watcher_win.cc ('k') | base/files/important_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698