| 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 the Files app. A task can be either of: | 10 // currently selected files from the Files app. A task can be either of: |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ | 111 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ |
| 112 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ | 112 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ |
| 113 | 113 |
| 114 #include <memory> | 114 #include <memory> |
| 115 #include <set> | 115 #include <set> |
| 116 #include <string> | 116 #include <string> |
| 117 #include <vector> | 117 #include <vector> |
| 118 | 118 |
| 119 #include "base/callback_forward.h" | 119 #include "base/callback_forward.h" |
| 120 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" | |
| 121 #include "chrome/common/extensions/api/file_manager_private.h" | 120 #include "chrome/common/extensions/api/file_manager_private.h" |
| 121 #include "extensions/browser/api/file_handlers/app_file_handler_util.h" |
| 122 #include "url/gurl.h" | 122 #include "url/gurl.h" |
| 123 | 123 |
| 124 class PrefService; | 124 class PrefService; |
| 125 class Profile; | 125 class Profile; |
| 126 | 126 |
| 127 namespace drive { | 127 namespace drive { |
| 128 class DriveAppRegistry; | 128 class DriveAppRegistry; |
| 129 } | 129 } |
| 130 | 130 |
| 131 namespace extensions { | 131 namespace extensions { |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 // task is found (i.e. the default task may not exist in |tasks|). No tasks | 325 // task is found (i.e. the default task may not exist in |tasks|). No tasks |
| 326 // should be set as default before calling this function. | 326 // should be set as default before calling this function. |
| 327 void ChooseAndSetDefaultTask(const PrefService& pref_service, | 327 void ChooseAndSetDefaultTask(const PrefService& pref_service, |
| 328 const std::vector<extensions::EntryInfo>& entries, | 328 const std::vector<extensions::EntryInfo>& entries, |
| 329 std::vector<FullTaskDescriptor>* tasks); | 329 std::vector<FullTaskDescriptor>* tasks); |
| 330 | 330 |
| 331 } // namespace file_tasks | 331 } // namespace file_tasks |
| 332 } // namespace file_manager | 332 } // namespace file_manager |
| 333 | 333 |
| 334 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ | 334 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ |
| OLD | NEW |