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

Side by Side Diff: chrome/browser/chromeos/file_manager/volume_manager.h

Issue 267573005: UMA stats for MTP file system in Chrome OS Files.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Count for all types of volumes. Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 33
34 namespace content { 34 namespace content {
35 class BrowserContext; 35 class BrowserContext;
36 } // namespace content 36 } // namespace content
37 37
38 namespace file_manager { 38 namespace file_manager {
39 39
40 class MountedDiskMonitor; 40 class MountedDiskMonitor;
41 class VolumeManagerObserver; 41 class VolumeManagerObserver;
42 42
43 // This manager manages "Drive" and "Downloads" in addition to disks managed 43 // Identifiers for volume types managed by Chrome OS file manager.
44 // by DiskMountManager. 44 // The list must be kept in sync with FileManagerVolumeType enum
45 // in tools/metrics/histograms/histograms.xml for recording user metric.
45 enum VolumeType { 46 enum VolumeType {
46 VOLUME_TYPE_GOOGLE_DRIVE, 47 VOLUME_TYPE_GOOGLE_DRIVE,
47 VOLUME_TYPE_DOWNLOADS_DIRECTORY, 48 VOLUME_TYPE_DOWNLOADS_DIRECTORY,
48 VOLUME_TYPE_REMOVABLE_DISK_PARTITION, 49 VOLUME_TYPE_REMOVABLE_DISK_PARTITION,
49 VOLUME_TYPE_MOUNTED_ARCHIVE_FILE, 50 VOLUME_TYPE_MOUNTED_ARCHIVE_FILE,
50 VOLUME_TYPE_CLOUD_DEVICE, 51 VOLUME_TYPE_CLOUD_DEVICE,
51 VOLUME_TYPE_PROVIDED, // File system provided by the FileSystemProvider API. 52 VOLUME_TYPE_PROVIDED, // File system provided by the FileSystemProvider API.
52 VOLUME_TYPE_MTP, 53 VOLUME_TYPE_MTP,
53 VOLUME_TYPE_TESTING 54 VOLUME_TYPE_TESTING, // Used only in tests.
Ilya Sherman 2014/05/08 21:16:11 nit: Since enums used for histograms should be app
kinaba 2014/05/09 02:09:27 Thanks for the suggestion. Done.
55 NUM_VOLUME_TYPE,
54 }; 56 };
55 57
56 struct VolumeInfo { 58 struct VolumeInfo {
57 VolumeInfo(); 59 VolumeInfo();
58 ~VolumeInfo(); 60 ~VolumeInfo();
59 61
60 // The ID for provided file system. If other type, then equal to zero. 62 // The ID for provided file system. If other type, then equal to zero.
61 int file_system_id; 63 int file_system_id;
62 64
63 // The ID of the volume. 65 // The ID of the volume.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 217
216 // Note: This should remain the last member so it'll be destroyed and 218 // Note: This should remain the last member so it'll be destroyed and
217 // invalidate its weak pointers before any other members are destroyed. 219 // invalidate its weak pointers before any other members are destroyed.
218 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_; 220 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_;
219 DISALLOW_COPY_AND_ASSIGN(VolumeManager); 221 DISALLOW_COPY_AND_ASSIGN(VolumeManager);
220 }; 222 };
221 223
222 } // namespace file_manager 224 } // namespace file_manager
223 225
224 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ 226 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698