| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "apps/app_window.h" | 13 #include "apps/app_window.h" |
| 14 #include "apps/app_window_registry.h" | 14 #include "apps/app_window_registry.h" |
| 15 #include "base/callback.h" | 15 #include "base/callback.h" |
| 16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
| 17 #include "base/platform_file.h" | |
| 18 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
| 19 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/values.h" | 20 #include "base/values.h" |
| 22 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
| 23 #include "chrome/browser/extensions/api/file_system/file_system_api.h" | 22 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
| 24 #include "chrome/browser/extensions/blob_reader.h" | 23 #include "chrome/browser/extensions/blob_reader.h" |
| 25 #include "chrome/browser/extensions/extension_tab_util.h" | 24 #include "chrome/browser/extensions/extension_tab_util.h" |
| 26 #include "chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h" | 25 #include "chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h" |
| 27 #include "chrome/browser/media_galleries/media_file_system_registry.h" | 26 #include "chrome/browser/media_galleries/media_file_system_registry.h" |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 if (!parse_success) { | 877 if (!parse_success) { |
| 879 SendResponse(false); | 878 SendResponse(false); |
| 880 return; | 879 return; |
| 881 } | 880 } |
| 882 | 881 |
| 883 SetResult(metadata_dictionary->DeepCopy()); | 882 SetResult(metadata_dictionary->DeepCopy()); |
| 884 SendResponse(true); | 883 SendResponse(true); |
| 885 } | 884 } |
| 886 | 885 |
| 887 } // namespace extensions | 886 } // namespace extensions |
| OLD | NEW |