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

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

Issue 10882039: Make the Linux System Monitor implementation track all devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS build Created 8 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 // chrome::MediaStorageUtil provides information about storage devices attached
6 // to the computer. 6 // to the computer.
7 7
8 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_ 8 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_
9 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_ 9 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Get a FilePath for the given |device_id|. If the device isn't connected 65 // Get a FilePath for the given |device_id|. If the device isn't connected
66 // or isn't a mass storage type, the FilePath will be empty. 66 // or isn't a mass storage type, the FilePath will be empty.
67 static void FindDevicePathById(const std::string& device_id, 67 static void FindDevicePathById(const std::string& device_id,
68 const FilePathCallback& callback); 68 const FilePathCallback& callback);
69 69
70 private: 70 private:
71 // All methods are static, this class should not be instantiated. 71 // All methods are static, this class should not be instantiated.
72 MediaStorageUtil(); 72 MediaStorageUtil();
73 73
74 // A platform specific helper. 74 // A platform specific helper.
75 static void FindUSBDeviceById(const std::string& unique_id, 75 static void FindUSBDeviceById(const std::string& device_id,
76 const FilePathCallback& callback); 76 const FilePathCallback& callback);
77 77
78 DISALLOW_COPY_AND_ASSIGN(MediaStorageUtil); 78 DISALLOW_COPY_AND_ASSIGN(MediaStorageUtil);
79 }; 79 };
80 80
81 } // namespace chrome 81 } // namespace chrome
82 82
83 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_ 83 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_linux.cc ('k') | chrome/browser/media_gallery/media_storage_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698