| 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 // This file provides utility functions for "file tasks". | 5 // This file provides utility functions for "file tasks". |
| 6 // | 6 // |
| 7 // WHAT ARE FILE TASKS? | 7 // WHAT ARE FILE TASKS? |
| 8 // | 8 // |
| 9 // File tasks are representation of actions that can be performed over the | 9 // File tasks are representation of actions that can be performed over the |
| 10 // currently selected files from Files.app. A task can be either of: | 10 // currently selected files from Files.app. A task can be either of: |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // ui/file_manager/file_manager/foreground/js/file_tasks.js | 107 // ui/file_manager/file_manager/foreground/js/file_tasks.js |
| 108 // | 108 // |
| 109 | 109 |
| 110 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ | 110 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ |
| 111 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ | 111 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ |
| 112 | 112 |
| 113 #include <set> | 113 #include <set> |
| 114 #include <string> | 114 #include <string> |
| 115 #include <vector> | 115 #include <vector> |
| 116 | 116 |
| 117 #include "base/basictypes.h" | |
| 118 #include "base/callback_forward.h" | 117 #include "base/callback_forward.h" |
| 119 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" | 118 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
| 120 #include "chrome/common/extensions/api/file_manager_private.h" | 119 #include "chrome/common/extensions/api/file_manager_private.h" |
| 121 #include "url/gurl.h" | 120 #include "url/gurl.h" |
| 122 | 121 |
| 123 class PrefService; | 122 class PrefService; |
| 124 class Profile; | 123 class Profile; |
| 125 | 124 |
| 126 namespace drive { | 125 namespace drive { |
| 127 class DriveAppRegistry; | 126 class DriveAppRegistry; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 // task is found (i.e. the default task may not exist in |tasks|). No tasks | 306 // task is found (i.e. the default task may not exist in |tasks|). No tasks |
| 308 // should be set as default before calling this function. | 307 // should be set as default before calling this function. |
| 309 void ChooseAndSetDefaultTask(const PrefService& pref_service, | 308 void ChooseAndSetDefaultTask(const PrefService& pref_service, |
| 310 const PathAndMimeTypeSet& path_mime_set, | 309 const PathAndMimeTypeSet& path_mime_set, |
| 311 std::vector<FullTaskDescriptor>* tasks); | 310 std::vector<FullTaskDescriptor>* tasks); |
| 312 | 311 |
| 313 } // namespace file_tasks | 312 } // namespace file_tasks |
| 314 } // namespace file_manager | 313 } // namespace file_manager |
| 315 | 314 |
| 316 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ | 315 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ |
| OLD | NEW |