| 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/intents/device_attached_intent_source.h" | 5 #include "chrome/browser/intents/device_attached_intent_source.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/intents/web_intents_registry.h" | 14 #include "chrome/browser/intents/web_intents_registry.h" |
| 15 #include "chrome/browser/intents/web_intents_registry_factory.h" | 15 #include "chrome/browser/intents/web_intents_registry_factory.h" |
| 16 #include "chrome/browser/media_gallery/media_storage_util.h" | |
| 17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/system_monitor/media_storage_util.h" |
| 18 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
| 19 #include "chrome/browser/ui/browser_window.h" | 19 #include "chrome/browser/ui/browser_window.h" |
| 20 #include "content/public/browser/web_intents_dispatcher.h" | 20 #include "content/public/browser/web_intents_dispatcher.h" |
| 21 #include "content/public/browser/web_contents_delegate.h" | 21 #include "content/public/browser/web_contents_delegate.h" |
| 22 #include "webkit/fileapi/file_system_types.h" | 22 #include "webkit/fileapi/file_system_types.h" |
| 23 #include "webkit/fileapi/isolated_context.h" | 23 #include "webkit/fileapi/isolated_context.h" |
| 24 #include "webkit/glue/web_intent_data.h" | 24 #include "webkit/glue/web_intent_data.h" |
| 25 #include "webkit/glue/web_intent_service_data.h" | 25 #include "webkit/glue/web_intent_service_data.h" |
| 26 | 26 |
| 27 using base::SystemMonitor; | 27 using base::SystemMonitor; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 void DeviceAttachedIntentSource::OnRemovableStorageDetached( | 149 void DeviceAttachedIntentSource::OnRemovableStorageDetached( |
| 150 const std::string& id) { | 150 const std::string& id) { |
| 151 DeviceIdToInfoMap::iterator it = device_id_map_.find(id); | 151 DeviceIdToInfoMap::iterator it = device_id_map_.find(id); |
| 152 if (it == device_id_map_.end()) | 152 if (it == device_id_map_.end()) |
| 153 return; | 153 return; |
| 154 | 154 |
| 155 FilePath path(it->second.location); | 155 FilePath path(it->second.location); |
| 156 fileapi::IsolatedContext::GetInstance()->RevokeFileSystemByPath(path); | 156 fileapi::IsolatedContext::GetInstance()->RevokeFileSystemByPath(path); |
| 157 device_id_map_.erase(it); | 157 device_id_map_.erase(it); |
| 158 } | 158 } |
| OLD | NEW |