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

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

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 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) 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
(...skipping 13 matching lines...) Expand all
24 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" 24 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
25 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" 25 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h"
26 #include "chrome/browser/media_galleries/win/mtp_device_object_enumerator.h" 26 #include "chrome/browser/media_galleries/win/mtp_device_object_enumerator.h"
27 #include "chrome/browser/media_galleries/win/mtp_device_operations_util.h" 27 #include "chrome/browser/media_galleries/win/mtp_device_operations_util.h"
28 #include "chrome/browser/media_galleries/win/portable_device_map_service.h" 28 #include "chrome/browser/media_galleries/win/portable_device_map_service.h"
29 #include "chrome/browser/media_galleries/win/snapshot_file_details.h" 29 #include "chrome/browser/media_galleries/win/snapshot_file_details.h"
30 #include "chrome/browser/storage_monitor/storage_monitor.h" 30 #include "chrome/browser/storage_monitor/storage_monitor.h"
31 #include "content/public/browser/browser_thread.h" 31 #include "content/public/browser/browser_thread.h"
32 #include "webkit/common/fileapi/file_system_util.h" 32 #include "webkit/common/fileapi/file_system_util.h"
33 33
34 namespace chrome {
35
36 namespace { 34 namespace {
37 35
38 // Gets the details of the MTP partition storage specified by the 36 // Gets the details of the MTP partition storage specified by the
39 // |storage_path| on the UI thread. Returns true if the storage details are 37 // |storage_path| on the UI thread. Returns true if the storage details are
40 // valid and returns false otherwise. 38 // valid and returns false otherwise.
41 bool GetStorageInfoOnUIThread(const string16& storage_path, 39 bool GetStorageInfoOnUIThread(const string16& storage_path,
42 string16* pnp_device_id, 40 string16* pnp_device_id,
43 string16* storage_object_id) { 41 string16* storage_object_id) {
44 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 42 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
45 DCHECK(!storage_path.empty()); 43 DCHECK(!storage_path.empty());
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 current_snapshot_details_->file_info(), 601 current_snapshot_details_->file_info(),
604 current_snapshot_details_->request_info().snapshot_file_path); 602 current_snapshot_details_->request_info().snapshot_file_path);
605 } else { 603 } else {
606 current_snapshot_details_->request_info().error_callback.Run( 604 current_snapshot_details_->request_info().error_callback.Run(
607 base::PLATFORM_FILE_ERROR_FAILED); 605 base::PLATFORM_FILE_ERROR_FAILED);
608 } 606 }
609 task_in_progress_ = false; 607 task_in_progress_ = false;
610 current_snapshot_details_.reset(); 608 current_snapshot_details_.reset();
611 ProcessNextPendingRequest(); 609 ProcessNextPendingRequest();
612 } 610 }
613
614 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698