| 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/chromeos/extensions/file_manager/file_handler_util.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/file_handler_util.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/i18n/case_conversion.h" | 9 #include "base/i18n/case_conversion.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "chrome/browser/ui/host_desktop.h" | 31 #include "chrome/browser/ui/host_desktop.h" |
| 32 #include "chrome/common/extensions/background_info.h" | 32 #include "chrome/common/extensions/background_info.h" |
| 33 #include "chrome/common/pref_names.h" | 33 #include "chrome/common/pref_names.h" |
| 34 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
| 35 #include "content/public/browser/child_process_security_policy.h" | 35 #include "content/public/browser/child_process_security_policy.h" |
| 36 #include "content/public/browser/render_process_host.h" | 36 #include "content/public/browser/render_process_host.h" |
| 37 #include "content/public/browser/site_instance.h" | 37 #include "content/public/browser/site_instance.h" |
| 38 #include "content/public/browser/storage_partition.h" | 38 #include "content/public/browser/storage_partition.h" |
| 39 #include "content/public/browser/web_contents.h" | 39 #include "content/public/browser/web_contents.h" |
| 40 #include "net/base/escape.h" | 40 #include "net/base/escape.h" |
| 41 #include "webkit/browser/fileapi/isolated_context.h" |
| 41 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" | 42 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" |
| 42 #include "webkit/fileapi/file_system_context.h" | 43 #include "webkit/fileapi/file_system_context.h" |
| 43 #include "webkit/fileapi/file_system_url.h" | 44 #include "webkit/fileapi/file_system_url.h" |
| 44 #include "webkit/fileapi/file_system_util.h" | 45 #include "webkit/fileapi/file_system_util.h" |
| 45 #include "webkit/fileapi/isolated_context.h" | |
| 46 | 46 |
| 47 using content::BrowserContext; | 47 using content::BrowserContext; |
| 48 using content::BrowserThread; | 48 using content::BrowserThread; |
| 49 using content::ChildProcessSecurityPolicy; | 49 using content::ChildProcessSecurityPolicy; |
| 50 using content::SiteInstance; | 50 using content::SiteInstance; |
| 51 using content::WebContents; | 51 using content::WebContents; |
| 52 using extensions::Extension; | 52 using extensions::Extension; |
| 53 using fileapi::FileSystemURL; | 53 using fileapi::FileSystemURL; |
| 54 | 54 |
| 55 namespace file_handler_util { | 55 namespace file_handler_util { |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 extensions::LaunchPlatformAppWithFileHandler(profile(), GetExtension(), | 988 extensions::LaunchPlatformAppWithFileHandler(profile(), GetExtension(), |
| 989 action_id_, file_urls[i].path()); | 989 action_id_, file_urls[i].path()); |
| 990 } | 990 } |
| 991 | 991 |
| 992 if (!done.is_null()) | 992 if (!done.is_null()) |
| 993 done.Run(true); | 993 done.Run(true); |
| 994 return true; | 994 return true; |
| 995 } | 995 } |
| 996 | 996 |
| 997 } // namespace file_handler_util | 997 } // namespace file_handler_util |
| OLD | NEW |