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

Side by Side Diff: chrome/browser/storage_monitor/media_storage_util.h

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 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
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 // chrome::MediaStorageUtil provides information about storage devices attached 5 // MediaStorageUtil provides information about storage devices attached
6 // to the computer. 6 // to the computer.
7 7
8 #ifndef CHROME_BROWSER_STORAGE_MONITOR_MEDIA_STORAGE_UTIL_H_ 8 #ifndef CHROME_BROWSER_STORAGE_MONITOR_MEDIA_STORAGE_UTIL_H_
9 #define CHROME_BROWSER_STORAGE_MONITOR_MEDIA_STORAGE_UTIL_H_ 9 #define CHROME_BROWSER_STORAGE_MONITOR_MEDIA_STORAGE_UTIL_H_
10 10
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 17
18 namespace chrome {
19
20 struct StorageInfo; 18 struct StorageInfo;
21 19
22 class MediaStorageUtil { 20 class MediaStorageUtil {
23 public: 21 public:
24 typedef std::set<std::string /*device id*/> DeviceIdSet; 22 typedef std::set<std::string /*device id*/> DeviceIdSet;
25 23
26 // Check if the file system at the passed mount point looks like a media 24 // Check if the file system at the passed mount point looks like a media
27 // device using the existence of DCIM directory. 25 // device using the existence of DCIM directory.
28 // Returns true if it looks like a media device, otherwise returns false. 26 // Returns true if it looks like a media device, otherwise returns false.
29 // Mac OS X behaves similarly, but this is not the only heuristic it uses. 27 // Mac OS X behaves similarly, but this is not the only heuristic it uses.
(...skipping 28 matching lines...) Expand all
58 const string16& device_label); 56 const string16& device_label);
59 57
60 // Returns true if the |id| is both a removable device and also 58 // Returns true if the |id| is both a removable device and also
61 // currently attached. 59 // currently attached.
62 static bool IsRemovableStorageAttached(const std::string& id); 60 static bool IsRemovableStorageAttached(const std::string& id);
63 61
64 private: 62 private:
65 DISALLOW_IMPLICIT_CONSTRUCTORS(MediaStorageUtil); 63 DISALLOW_IMPLICIT_CONSTRUCTORS(MediaStorageUtil);
66 }; 64 };
67 65
68 } // namespace chrome
69
70 #endif // CHROME_BROWSER_STORAGE_MONITOR_MEDIA_STORAGE_UTIL_H_ 66 #endif // CHROME_BROWSER_STORAGE_MONITOR_MEDIA_STORAGE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698