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

Side by Side Diff: chrome/browser/local_discovery/storage/privet_filesystem_attribute_cache.h

Issue 492693004: Delete Privet filesystem code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_ATTRIBUTE_CACHE _H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_ATTRIBUTE_CACHE _H_
7
8 #include <map>
9
10 #include "base/files/file.h"
11 #include "base/values.h"
12
13 namespace local_discovery {
14
15 class PrivetFileSystemAttributeCache {
16 public:
17 PrivetFileSystemAttributeCache();
18 ~PrivetFileSystemAttributeCache();
19
20 // Get File info for a path in the filesystem. Returns NULL if not found.
21 const base::File::Info* GetFileInfo(const base::FilePath& full_path);
22
23 // Add file info from the result of a /privet/storage/list request.
24 void AddFileInfoFromJSON(const base::FilePath& full_path,
25 const base::DictionaryValue* json);
26
27 private:
28 typedef std::map<base::FilePath, base::File::Info> FileInfoMap;
29
30 void AddEntryInfoFromJSON(const base::FilePath& full_path,
31 const base::DictionaryValue* json);
32
33 FileInfoMap file_info_map_;
34 };
35
36 } // namespace local_discovery
37
38 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_ATTRIBUTE_CA CHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698