| OLD | NEW |
| 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 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" | 5 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/media_galleries/fileapi/itunes_data_provider.h" | 9 #include "chrome/browser/media_galleries/fileapi/itunes_data_provider.h" |
| 10 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 10 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
| 11 #include "chrome/browser/media_galleries/fileapi/picasa/picasa_data_provider.h" | 11 #include "chrome/browser/media_galleries/fileapi/picasa_data_provider.h" |
| 12 #include "chrome/common/extensions/extension_constants.h" | 12 #include "chrome/common/extensions/extension_constants.h" |
| 13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 #include "webkit/browser/fileapi/isolated_context.h" | 14 #include "webkit/browser/fileapi/isolated_context.h" |
| 15 | 15 |
| 16 using base::Bind; | 16 using base::Bind; |
| 17 using fileapi::IsolatedContext; | 17 using fileapi::IsolatedContext; |
| 18 | 18 |
| 19 namespace chrome { | 19 namespace chrome { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 } | 176 } |
| 177 | 177 |
| 178 void ImportedMediaGalleryRegistry::RevokeITunesFileSystem() { | 178 void ImportedMediaGalleryRegistry::RevokeITunesFileSystem() { |
| 179 DCHECK(MediaFileSystemBackend::CurrentlyOnMediaTaskRunnerThread()); | 179 DCHECK(MediaFileSystemBackend::CurrentlyOnMediaTaskRunnerThread()); |
| 180 DCHECK(itunes_data_provider_); | 180 DCHECK(itunes_data_provider_); |
| 181 itunes_data_provider_.reset(); | 181 itunes_data_provider_.reset(); |
| 182 } | 182 } |
| 183 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 183 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 184 | 184 |
| 185 } // namespace chrome | 185 } // namespace chrome |
| OLD | NEW |