OLD | NEW |
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 #include "chrome/browser/storage_monitor/media_transfer_protocol_device_observer
_linux.h" | 5 #include "chrome/browser/storage_monitor/media_transfer_protocol_device_observer
_linux.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/string_split.h" | |
10 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_split.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/storage_monitor/media_storage_util.h" | 12 #include "chrome/browser/storage_monitor/media_storage_util.h" |
13 #include "chrome/browser/storage_monitor/removable_device_constants.h" | 13 #include "chrome/browser/storage_monitor/removable_device_constants.h" |
14 #include "device/media_transfer_protocol/mtp_storage_info.pb.h" | 14 #include "device/media_transfer_protocol/mtp_storage_info.pb.h" |
15 | 15 |
16 namespace chrome { | 16 namespace chrome { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 static MediaTransferProtocolDeviceObserverLinux* g_mtp_device_observer = NULL; | 20 static MediaTransferProtocolDeviceObserverLinux* g_mtp_device_observer = NULL; |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 device::MediaTransferProtocolManager* mtp_manager = | 231 device::MediaTransferProtocolManager* mtp_manager = |
232 device::MediaTransferProtocolManager::GetInstance(); | 232 device::MediaTransferProtocolManager::GetInstance(); |
233 StorageList storages = mtp_manager->GetStorages(); | 233 StorageList storages = mtp_manager->GetStorages(); |
234 for (StorageList::const_iterator storage_iter = storages.begin(); | 234 for (StorageList::const_iterator storage_iter = storages.begin(); |
235 storage_iter != storages.end(); ++storage_iter) { | 235 storage_iter != storages.end(); ++storage_iter) { |
236 StorageChanged(true, *storage_iter); | 236 StorageChanged(true, *storage_iter); |
237 } | 237 } |
238 } | 238 } |
239 | 239 |
240 } // namespace chrome | 240 } // namespace chrome |
OLD | NEW |