| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 48 #include "extensions/browser/blob_holder.h" | 48 #include "extensions/browser/blob_holder.h" | 
| 49 #include "extensions/browser/extension_prefs.h" | 49 #include "extensions/browser/extension_prefs.h" | 
| 50 #include "extensions/browser/extension_system.h" | 50 #include "extensions/browser/extension_system.h" | 
| 51 #include "extensions/common/extension.h" | 51 #include "extensions/common/extension.h" | 
| 52 #include "extensions/common/permissions/api_permission.h" | 52 #include "extensions/common/permissions/api_permission.h" | 
| 53 #include "extensions/common/permissions/media_galleries_permission.h" | 53 #include "extensions/common/permissions/media_galleries_permission.h" | 
| 54 #include "extensions/common/permissions/permissions_data.h" | 54 #include "extensions/common/permissions/permissions_data.h" | 
| 55 #include "grit/generated_resources.h" | 55 #include "grit/generated_resources.h" | 
| 56 #include "net/base/mime_sniffer.h" | 56 #include "net/base/mime_sniffer.h" | 
| 57 #include "ui/base/l10n/l10n_util.h" | 57 #include "ui/base/l10n/l10n_util.h" | 
| 58 #include "webkit/browser/blob/blob_data_handle.h" | 58 #include "storage/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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1028     return; | 1028     return; | 
| 1029   } | 1029   } | 
| 1030 | 1030 | 
| 1031   // All Blobs have been constructed. The renderer will take ownership. | 1031   // All Blobs have been constructed. The renderer will take ownership. | 
| 1032   SetResult(result_dictionary.release()); | 1032   SetResult(result_dictionary.release()); | 
| 1033   SetTransferredBlobUUIDs(*blob_uuids); | 1033   SetTransferredBlobUUIDs(*blob_uuids); | 
| 1034   SendResponse(true); | 1034   SendResponse(true); | 
| 1035 } | 1035 } | 
| 1036 | 1036 | 
| 1037 }  // namespace extensions | 1037 }  // namespace extensions | 
| OLD | NEW | 
|---|