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

Side by Side Diff: net/disk_cache/block_files.h

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // See net/disk_cache/disk_cache.h for the public interface. 5 // See net/disk_cache/disk_cache.h for the public interface.
6 6
7 #ifndef NET_DISK_CACHE_BLOCK_FILES_H__ 7 #ifndef NET_DISK_CACHE_BLOCK_FILES_H__
8 #define NET_DISK_CACHE_BLOCK_FILES_H__ 8 #define NET_DISK_CACHE_BLOCK_FILES_H__
9 #pragma once 9 #pragma once
10 10
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "net/base/net_api.h" 16 #include "net/base/net_export.h"
17 #include "net/disk_cache/addr.h" 17 #include "net/disk_cache/addr.h"
18 #include "net/disk_cache/mapped_file.h" 18 #include "net/disk_cache/mapped_file.h"
19 19
20 namespace base { 20 namespace base {
21 class ThreadChecker; 21 class ThreadChecker;
22 } 22 }
23 23
24 namespace disk_cache { 24 namespace disk_cache {
25 25
26 // This class handles the set of block-files open by the disk cache. 26 // This class handles the set of block-files open by the disk cache.
27 class NET_TEST BlockFiles { 27 class NET_EXPORT_PRIVATE BlockFiles {
28 public: 28 public:
29 explicit BlockFiles(const FilePath& path); 29 explicit BlockFiles(const FilePath& path);
30 ~BlockFiles(); 30 ~BlockFiles();
31 31
32 // Performs the object initialization. create_files indicates if the backing 32 // Performs the object initialization. create_files indicates if the backing
33 // files should be created or just open. 33 // files should be created or just open.
34 bool Init(bool create_files); 34 bool Init(bool create_files);
35 35
36 // Returns the file that stores a given address. 36 // Returns the file that stores a given address.
37 MappedFile* GetFile(Addr address); 37 MappedFile* GetFile(Addr address);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_TruncatedFile); 96 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_TruncatedFile);
97 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_InvalidFile); 97 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_InvalidFile);
98 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_Stats); 98 FRIEND_TEST_ALL_PREFIXES(DiskCacheTest, BlockFiles_Stats);
99 99
100 DISALLOW_COPY_AND_ASSIGN(BlockFiles); 100 DISALLOW_COPY_AND_ASSIGN(BlockFiles);
101 }; 101 };
102 102
103 } // namespace disk_cache 103 } // namespace disk_cache
104 104
105 #endif // NET_DISK_CACHE_BLOCK_FILES_H__ 105 #endif // NET_DISK_CACHE_BLOCK_FILES_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698