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

Side by Side Diff: chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc

Issue 12382005: Rename RemovableDeviceNotifications=>StorageMonitor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // MTPDeviceDelegateImplWin implementation. 5 // MTPDeviceDelegateImplWin implementation.
6 6
7 #include "chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h" 7 #include "chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h"
8 8
9 #include <portabledevice.h> 9 #include <portabledevice.h>
10 10
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/sequenced_task_runner.h" 16 #include "base/sequenced_task_runner.h"
17 #include "base/sequenced_task_runner_helpers.h" 17 #include "base/sequenced_task_runner_helpers.h"
18 #include "base/string_util.h" 18 #include "base/string_util.h"
19 #include "base/strings/string_split.h" 19 #include "base/strings/string_split.h"
20 #include "base/threading/thread_restrictions.h" 20 #include "base/threading/thread_restrictions.h"
21 #include "base/utf_string_conversions.h" 21 #include "base/utf_string_conversions.h"
22 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" 22 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h"
23 #include "chrome/browser/media_galleries/win/mtp_device_object_enumerator.h" 23 #include "chrome/browser/media_galleries/win/mtp_device_object_enumerator.h"
24 #include "chrome/browser/media_galleries/win/mtp_device_operations_util.h" 24 #include "chrome/browser/media_galleries/win/mtp_device_operations_util.h"
25 #include "chrome/browser/media_galleries/win/recursive_mtp_device_object_enumera tor.h" 25 #include "chrome/browser/media_galleries/win/recursive_mtp_device_object_enumera tor.h"
26 #include "chrome/browser/storage_monitor/removable_device_notifications_window_w in.h"
27 #include "chrome/browser/storage_monitor/storage_monitor.h" 26 #include "chrome/browser/storage_monitor/storage_monitor.h"
28 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
29 28
30 namespace chrome { 29 namespace chrome {
31 30
32 namespace { 31 namespace {
33 32
34 // Gets the details of the MTP partition storage specified by the 33 // Gets the details of the MTP partition storage specified by the
35 // |storage_path| on the UI thread. If the storage details are valid, creates a 34 // |storage_path| on the UI thread. If the storage details are valid, creates a
36 // MTP device delegate on the media task runner. 35 // MTP device delegate on the media task runner.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 parent_id, 232 parent_id,
234 *path_iter); 233 *path_iter);
235 if (file_object_id.empty()) 234 if (file_object_id.empty())
236 break; 235 break;
237 parent_id = file_object_id; 236 parent_id = file_object_id;
238 } 237 }
239 return file_object_id; 238 return file_object_id;
240 } 239 }
241 240
242 } // namespace chrome 241 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698