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

Side by Side Diff: file_writer.h

Issue 3170010: [update_engine] Update to use not-hideously-old logging API from chrome (Closed) Base URL: http://src.chromium.org/git/update_engine.git
Patch Set: Created 10 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
« no previous file with comments | « extent_writer.h ('k') | filesystem_iterator.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) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS 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 CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__ 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__ 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__
7 7
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <sys/stat.h> 9 #include <sys/stat.h>
10 #include <fcntl.h> 10 #include <fcntl.h>
11 #include <unistd.h> 11 #include <unistd.h>
12 #include "chromeos/obsolete_logging.h" 12 #include "base/logging.h"
13 #include "update_engine/utils.h" 13 #include "update_engine/utils.h"
14 14
15 // FileWriter is a class that is used to (synchronously, for now) write to 15 // FileWriter is a class that is used to (synchronously, for now) write to
16 // a file. This file is a thin wrapper around open/write/close system calls, 16 // a file. This file is a thin wrapper around open/write/close system calls,
17 // but provides and interface that can be customized by subclasses that wish 17 // but provides and interface that can be customized by subclasses that wish
18 // to filter the data. 18 // to filter the data.
19 19
20 namespace chromeos_update_engine { 20 namespace chromeos_update_engine {
21 21
22 class FileWriter { 22 class FileWriter {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 private: 70 private:
71 FileWriter* writer_; 71 FileWriter* writer_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(ScopedFileWriterCloser); 73 DISALLOW_COPY_AND_ASSIGN(ScopedFileWriterCloser);
74 }; 74 };
75 75
76 } // namespace chromeos_update_engine 76 } // namespace chromeos_update_engine
77 77
78 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__ 78 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__
OLDNEW
« no previous file with comments | « extent_writer.h ('k') | filesystem_iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698