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

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

Issue 10830003: Extract and dispatch device uuid in media device attached notification message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 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) 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 // chromeos::MediaDeviceNotifications listens for mount point changes and 5 // chromeos::MediaDeviceNotifications listens for mount point changes and
6 // notifies the SystemMonitor about the addition and deletion of media devices. 6 // notifies the SystemMonitor about the addition and deletion of media devices.
7 7
8 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_CHROMEOS_H_ 8 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_CHROMEOS_H_
9 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_CHROMEOS_H_ 9 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_CHROMEOS_H_
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Checks if the mount point in |mount_info| is a media device. If it is, 50 // Checks if the mount point in |mount_info| is a media device. If it is,
51 // then continue with AddMountedPathOnUIThread() below. 51 // then continue with AddMountedPathOnUIThread() below.
52 void CheckMountedPathOnFileThread( 52 void CheckMountedPathOnFileThread(
53 const disks::DiskMountManager::MountPointInfo& mount_info); 53 const disks::DiskMountManager::MountPointInfo& mount_info);
54 54
55 // Adds the mount point in |mount_info| to |mount_map_| and send a media 55 // Adds the mount point in |mount_info| to |mount_map_| and send a media
56 // device attach notification. 56 // device attach notification.
57 void AddMountedPathOnUIThread( 57 void AddMountedPathOnUIThread(
58 const disks::DiskMountManager::MountPointInfo& mount_info); 58 const disks::DiskMountManager::MountPointInfo& mount_info);
59 59
60 // The lowest available device id number.
61 // Only accessed on the UI thread.
62 // TODO(thestig) Remove this and use a device UUID instead.
63 int current_device_id_;
64
65 // Mapping of relevant mount points and their corresponding mount devices. 60 // Mapping of relevant mount points and their corresponding mount devices.
66 // Only accessed on the UI thread. 61 // Only accessed on the UI thread.
67 MountMap mount_map_; 62 MountMap mount_map_;
68 63
69 DISALLOW_COPY_AND_ASSIGN(MediaDeviceNotifications); 64 DISALLOW_COPY_AND_ASSIGN(MediaDeviceNotifications);
70 }; 65 };
71 66
72 } // namespace chromeos 67 } // namespace chromeos
73 68
74 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_CHROMEOS_H_ 69 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_DEVICE_NOTIFICATIONS_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698