| 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 26 matching lines...) Expand all Loading... |
| 37 #include "chrome/common/pref_names.h" | 37 #include "chrome/common/pref_names.h" |
| 38 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 38 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 39 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.h" |
| 40 #include "content/public/browser/child_process_security_policy.h" | 40 #include "content/public/browser/child_process_security_policy.h" |
| 41 #include "content/public/browser/render_process_host.h" | 41 #include "content/public/browser/render_process_host.h" |
| 42 #include "content/public/browser/render_view_host.h" | 42 #include "content/public/browser/render_view_host.h" |
| 43 #include "content/public/browser/web_contents.h" | 43 #include "content/public/browser/web_contents.h" |
| 44 #include "content/public/browser/web_contents_view.h" | 44 #include "content/public/browser/web_contents_view.h" |
| 45 #include "extensions/browser/event_router.h" | 45 #include "extensions/browser/event_router.h" |
| 46 #include "extensions/browser/extension_prefs.h" | 46 #include "extensions/browser/extension_prefs.h" |
| 47 #include "extensions/browser/extension_system.h" |
| 47 #include "extensions/common/extension.h" | 48 #include "extensions/common/extension.h" |
| 48 #include "extensions/common/permissions/api_permission.h" | 49 #include "extensions/common/permissions/api_permission.h" |
| 49 #include "extensions/common/permissions/permissions_data.h" | 50 #include "extensions/common/permissions/permissions_data.h" |
| 50 #include "grit/generated_resources.h" | 51 #include "grit/generated_resources.h" |
| 51 #include "net/base/mime_sniffer.h" | 52 #include "net/base/mime_sniffer.h" |
| 52 #include "ui/base/l10n/l10n_util.h" | 53 #include "ui/base/l10n/l10n_util.h" |
| 53 | 54 |
| 54 using content::WebContents; | 55 using content::WebContents; |
| 55 using web_modal::WebContentsModalDialogManager; | 56 using web_modal::WebContentsModalDialogManager; |
| 56 | 57 |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 if (mime_type_sniffed) | 798 if (mime_type_sniffed) |
| 798 metadata.mime_type = mime_type; | 799 metadata.mime_type = mime_type; |
| 799 | 800 |
| 800 // TODO(tommycli): Kick off SafeMediaMetadataParser if |mime_type_only| false. | 801 // TODO(tommycli): Kick off SafeMediaMetadataParser if |mime_type_only| false. |
| 801 | 802 |
| 802 SetResult(metadata.ToValue().release()); | 803 SetResult(metadata.ToValue().release()); |
| 803 SendResponse(true); | 804 SendResponse(true); |
| 804 } | 805 } |
| 805 | 806 |
| 806 } // namespace extensions | 807 } // namespace extensions |
| OLD | NEW |