| 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/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 const int kReadOnlyFilePermissions = base::PLATFORM_FILE_OPEN | | 57 const int kReadOnlyFilePermissions = base::PLATFORM_FILE_OPEN | |
| 58 base::PLATFORM_FILE_READ | | 58 base::PLATFORM_FILE_READ | |
| 59 base::PLATFORM_FILE_EXCLUSIVE_READ | | 59 base::PLATFORM_FILE_EXCLUSIVE_READ | |
| 60 base::PLATFORM_FILE_ASYNC; | 60 base::PLATFORM_FILE_ASYNC; |
| 61 | 61 |
| 62 const int kReadWriteFilePermissions = base::PLATFORM_FILE_OPEN | | 62 const int kReadWriteFilePermissions = base::PLATFORM_FILE_OPEN | |
| 63 base::PLATFORM_FILE_CREATE | | 63 base::PLATFORM_FILE_CREATE | |
| 64 base::PLATFORM_FILE_OPEN_ALWAYS | | 64 base::PLATFORM_FILE_OPEN_ALWAYS | |
| 65 base::PLATFORM_FILE_CREATE_ALWAYS | | 65 base::PLATFORM_FILE_CREATE_ALWAYS | |
| 66 base::PLATFORM_FILE_OPEN_TRUNCATED | |
| 66 base::PLATFORM_FILE_READ | | 67 base::PLATFORM_FILE_READ | |
| 67 base::PLATFORM_FILE_WRITE | | 68 base::PLATFORM_FILE_WRITE | |
| 68 base::PLATFORM_FILE_EXCLUSIVE_READ | | 69 base::PLATFORM_FILE_EXCLUSIVE_READ | |
| 69 base::PLATFORM_FILE_EXCLUSIVE_WRITE | | 70 base::PLATFORM_FILE_EXCLUSIVE_WRITE | |
| 70 base::PLATFORM_FILE_ASYNC | | 71 base::PLATFORM_FILE_ASYNC | |
| 71 base::PLATFORM_FILE_TRUNCATE | | |
| 72 base::PLATFORM_FILE_WRITE_ATTRIBUTES; | 72 base::PLATFORM_FILE_WRITE_ATTRIBUTES; |
| 73 | 73 |
| 74 typedef std::pair<int, const FileBrowserHandler* > LastUsedHandler; | 74 typedef std::pair<int, const FileBrowserHandler* > LastUsedHandler; |
| 75 typedef std::vector<LastUsedHandler> LastUsedHandlerList; | 75 typedef std::vector<LastUsedHandler> LastUsedHandlerList; |
| 76 | 76 |
| 77 typedef std::vector<const FileBrowserHandler*> ActionList; | 77 typedef std::vector<const FileBrowserHandler*> ActionList; |
| 78 | 78 |
| 79 | 79 |
| 80 // Breaks down task_id that is used between getFileTasks() and executeTask() on | 80 // Breaks down task_id that is used between getFileTasks() and executeTask() on |
| 81 // its building blocks. task_id field the following structure: | 81 // its building blocks. task_id field the following structure: |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 #undef SET_STRING | 1082 #undef SET_STRING |
| 1083 | 1083 |
| 1084 // TODO(serya): Create a new string in .grd file for this one in M13. | 1084 // TODO(serya): Create a new string in .grd file for this one in M13. |
| 1085 dict->SetString("PREVIEW_IMAGE", | 1085 dict->SetString("PREVIEW_IMAGE", |
| 1086 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); | 1086 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); |
| 1087 dict->SetString("PLAY_MEDIA", | 1087 dict->SetString("PLAY_MEDIA", |
| 1088 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); | 1088 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); |
| 1089 | 1089 |
| 1090 return true; | 1090 return true; |
| 1091 } | 1091 } |
| OLD | NEW |