| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extensions/extension_file_browser_private_api.h" | 5 #include "chrome/browser/extensions/extension_file_browser_private_api.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "webkit/fileapi/file_system_operation.h" | 46 #include "webkit/fileapi/file_system_operation.h" |
| 47 #include "webkit/fileapi/file_system_operation_context.h" | 47 #include "webkit/fileapi/file_system_operation_context.h" |
| 48 #include "webkit/fileapi/file_system_path_manager.h" | 48 #include "webkit/fileapi/file_system_path_manager.h" |
| 49 #include "webkit/fileapi/file_system_types.h" | 49 #include "webkit/fileapi/file_system_types.h" |
| 50 #include "webkit/fileapi/file_system_util.h" | 50 #include "webkit/fileapi/file_system_util.h" |
| 51 | 51 |
| 52 #ifdef OS_CHROMEOS | 52 #ifdef OS_CHROMEOS |
| 53 #include "chrome/browser/chromeos/cros/cros_library.h" | 53 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 using content::BrowserThread; |
| 57 |
| 56 // Error messages. | 58 // Error messages. |
| 57 const char kFileError[] = "File error %d"; | 59 const char kFileError[] = "File error %d"; |
| 58 const char kInvalidFileUrl[] = "Invalid file URL"; | 60 const char kInvalidFileUrl[] = "Invalid file URL"; |
| 59 const char kVolumeDevicePathNotFound[] = "Device path not found"; | 61 const char kVolumeDevicePathNotFound[] = "Device path not found"; |
| 60 | 62 |
| 61 #ifdef OS_CHROMEOS | 63 #ifdef OS_CHROMEOS |
| 62 // Volume type strings. | 64 // Volume type strings. |
| 63 const std::string kVolumeTypeFlash = "flash"; | 65 const std::string kVolumeTypeFlash = "flash"; |
| 64 const std::string kVolumeTypeOptical = "optical"; | 66 const std::string kVolumeTypeOptical = "optical"; |
| 65 const std::string kVolumeTypeHardDrive = "hdd"; | 67 const std::string kVolumeTypeHardDrive = "hdd"; |
| (...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1700 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); | 1702 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); |
| 1701 dict->SetString("PLAY_MEDIA", | 1703 dict->SetString("PLAY_MEDIA", |
| 1702 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); | 1704 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); |
| 1703 #if defined(OS_CHROMEOS) | 1705 #if defined(OS_CHROMEOS) |
| 1704 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePhotoEditor)) | 1706 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePhotoEditor)) |
| 1705 dict->SetString("ENABLE_PHOTO_EDITOR", "true"); | 1707 dict->SetString("ENABLE_PHOTO_EDITOR", "true"); |
| 1706 #endif | 1708 #endif |
| 1707 | 1709 |
| 1708 return true; | 1710 return true; |
| 1709 } | 1711 } |
| OLD | NEW |