| 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 // Implements the Chrome Extensions Media Galleries API. | 5 // Implements the Chrome Extensions Media Galleries API. |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/api/media_galleries/media_galleries_api.h" | 7 #include "chrome/browser/extensions/api/media_galleries/media_galleries_api.h" |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "extensions/browser/app_window/app_window.h" | 47 #include "extensions/browser/app_window/app_window.h" |
| 48 #include "extensions/browser/app_window/app_window_registry.h" | 48 #include "extensions/browser/app_window/app_window_registry.h" |
| 49 #include "extensions/browser/blob_holder.h" | 49 #include "extensions/browser/blob_holder.h" |
| 50 #include "extensions/browser/extension_prefs.h" | 50 #include "extensions/browser/extension_prefs.h" |
| 51 #include "extensions/browser/extension_system.h" | 51 #include "extensions/browser/extension_system.h" |
| 52 #include "extensions/common/extension.h" | 52 #include "extensions/common/extension.h" |
| 53 #include "extensions/common/permissions/api_permission.h" | 53 #include "extensions/common/permissions/api_permission.h" |
| 54 #include "extensions/common/permissions/media_galleries_permission.h" | 54 #include "extensions/common/permissions/media_galleries_permission.h" |
| 55 #include "extensions/common/permissions/permissions_data.h" | 55 #include "extensions/common/permissions/permissions_data.h" |
| 56 #include "net/base/mime_sniffer.h" | 56 #include "net/base/mime_sniffer.h" |
| 57 #include "storage/browser/blob/blob_data_handle.h" |
| 57 #include "ui/base/l10n/l10n_util.h" | 58 #include "ui/base/l10n/l10n_util.h" |
| 58 #include "webkit/browser/blob/blob_data_handle.h" | |
| 59 | 59 |
| 60 using content::WebContents; | 60 using content::WebContents; |
| 61 using storage_monitor::MediaStorageUtil; | 61 using storage_monitor::MediaStorageUtil; |
| 62 using storage_monitor::StorageInfo; | 62 using storage_monitor::StorageInfo; |
| 63 using web_modal::WebContentsModalDialogManager; | 63 using web_modal::WebContentsModalDialogManager; |
| 64 | 64 |
| 65 namespace extensions { | 65 namespace extensions { |
| 66 | 66 |
| 67 namespace MediaGalleries = api::media_galleries; | 67 namespace MediaGalleries = api::media_galleries; |
| 68 namespace DropPermissionForMediaFileSystem = | 68 namespace DropPermissionForMediaFileSystem = |
| (...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 &MediaGalleriesRemoveAllGalleryWatchFunction::OnPreferencesInit, this)); | 1269 &MediaGalleriesRemoveAllGalleryWatchFunction::OnPreferencesInit, this)); |
| 1270 return true; | 1270 return true; |
| 1271 } | 1271 } |
| 1272 | 1272 |
| 1273 void MediaGalleriesRemoveAllGalleryWatchFunction::OnPreferencesInit() { | 1273 void MediaGalleriesRemoveAllGalleryWatchFunction::OnPreferencesInit() { |
| 1274 gallery_watch_manager()->RemoveAllWatches(GetProfile(), extension_id()); | 1274 gallery_watch_manager()->RemoveAllWatches(GetProfile(), extension_id()); |
| 1275 SendResponse(true); | 1275 SendResponse(true); |
| 1276 } | 1276 } |
| 1277 | 1277 |
| 1278 } // namespace extensions | 1278 } // namespace extensions |
| OLD | NEW |