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

Side by Side Diff: net/disk_cache/cache_util.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 #ifndef NET_DISK_CACHE_CACHE_UTIL_H_ 5 #ifndef NET_DISK_CACHE_CACHE_UTIL_H_
6 #define NET_DISK_CACHE_CACHE_UTIL_H_ 6 #define NET_DISK_CACHE_CACHE_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/base/net_api.h" 10 #include "net/base/net_export.h"
11 11
12 class FilePath; 12 class FilePath;
13 13
14 namespace disk_cache { 14 namespace disk_cache {
15 15
16 // Moves the cache files from the given path to another location. 16 // Moves the cache files from the given path to another location.
17 // Fails if the destination exists already, or if it doesn't have 17 // Fails if the destination exists already, or if it doesn't have
18 // permission for the operation. This is basically a rename operation 18 // permission for the operation. This is basically a rename operation
19 // for the cache directory. Returns true if successful. On ChromeOS, 19 // for the cache directory. Returns true if successful. On ChromeOS,
20 // this moves the cache contents, and leaves the empty cache 20 // this moves the cache contents, and leaves the empty cache
21 // directory. 21 // directory.
22 NET_TEST bool MoveCache(const FilePath& from_path, const FilePath& to_path); 22 NET_EXPORT_PRIVATE bool MoveCache(const FilePath& from_path,
23 const FilePath& to_path);
23 24
24 // Deletes the cache files stored on |path|, and optionally also attempts to 25 // Deletes the cache files stored on |path|, and optionally also attempts to
25 // delete the folder itself. 26 // delete the folder itself.
26 NET_TEST void DeleteCache(const FilePath& path, bool remove_folder); 27 NET_EXPORT_PRIVATE void DeleteCache(const FilePath& path, bool remove_folder);
27 28
28 // Deletes a cache file. 29 // Deletes a cache file.
29 NET_TEST bool DeleteCacheFile(const FilePath& name); 30 NET_EXPORT_PRIVATE bool DeleteCacheFile(const FilePath& name);
30 31
31 } // namespace disk_cache 32 } // namespace disk_cache
32 33
33 #endif // NET_DISK_CACHE_CACHE_UTIL_H_ 34 #endif // NET_DISK_CACHE_CACHE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698