| 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_APP_FILE_HANDLER_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_APP_FILE_HANDLER_UTIL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_APP_FILE_HANDLER_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_APP_FILE_HANDLER_UTIL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "chrome/common/extensions/api/file_handlers/file_handlers_parser.h" | 13 #include "chrome/common/extensions/api/file_handlers/file_handlers_parser.h" |
| 14 #include "chrome/common/extensions/extension.h" | 14 #include "extensions/common/extension.h" |
| 15 | 15 |
| 16 class Profile; | 16 class Profile; |
| 17 | 17 |
| 18 namespace extensions { | 18 namespace extensions { |
| 19 class ExtensionPrefs; | 19 class ExtensionPrefs; |
| 20 | 20 |
| 21 // TODO(benwells): move this to platform_apps namespace. | 21 // TODO(benwells): move this to platform_apps namespace. |
| 22 namespace app_file_handler_util { | 22 namespace app_file_handler_util { |
| 23 | 23 |
| 24 // A set of pairs of path and its corresponding MIME type. | 24 // A set of pairs of path and its corresponding MIME type. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const base::Callback<void(const base::FilePath&)>& on_failure); | 73 const base::Callback<void(const base::FilePath&)>& on_failure); |
| 74 | 74 |
| 75 // Returns whether |extension| has the fileSystem.write permission. | 75 // Returns whether |extension| has the fileSystem.write permission. |
| 76 bool HasFileSystemWritePermission(const Extension* extension); | 76 bool HasFileSystemWritePermission(const Extension* extension); |
| 77 | 77 |
| 78 } // namespace app_file_handler_util | 78 } // namespace app_file_handler_util |
| 79 | 79 |
| 80 } // namespace extensions | 80 } // namespace extensions |
| 81 | 81 |
| 82 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_APP_FILE_HANDLER_UTIL_H_ | 82 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_APP_FILE_HANDLER_UTIL_H_ |
| OLD | NEW |