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

Side by Side Diff: net/disk_cache/flash/storage.h

Issue 184583008: Fix IWYU in base/files/file.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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) 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 NET_DISK_CACHE_FLASH_STORAGE_H_ 5 #ifndef NET_DISK_CACHE_FLASH_STORAGE_H_
6 #define NET_DISK_CACHE_FLASH_STORAGE_H_ 6 #define NET_DISK_CACHE_FLASH_STORAGE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/files/file_path.h"
10 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
11 12
12 namespace disk_cache { 13 namespace disk_cache {
13 14
14 class NET_EXPORT_PRIVATE Storage { 15 class NET_EXPORT_PRIVATE Storage {
15 public: 16 public:
16 Storage(const base::FilePath& path, int32 size); 17 Storage(const base::FilePath& path, int32 size);
17 bool Init(); 18 bool Init();
18 ~Storage(); 19 ~Storage();
19 20
20 int32 size() const { return size_; } 21 int32 size() const { return size_; }
21 22
22 bool Read(void* buffer, int32 size, int32 offset); 23 bool Read(void* buffer, int32 size, int32 offset);
23 bool Write(const void* buffer, int32 size, int32 offset); 24 bool Write(const void* buffer, int32 size, int32 offset);
24 25
25 private: 26 private:
26 base::FilePath path_; 27 base::FilePath path_;
27 int32 size_; 28 int32 size_;
28 base::File file_; 29 base::File file_;
29 30
30 DISALLOW_COPY_AND_ASSIGN(Storage); 31 DISALLOW_COPY_AND_ASSIGN(Storage);
31 }; 32 };
32 33
33 } // namespace disk_cache 34 } // namespace disk_cache
34 35
35 #endif // NET_DISK_CACHE_FLASH_STORAGE_H_ 36 #endif // NET_DISK_CACHE_FLASH_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698