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 representatiosn of actions that can be performed over the | 9 // File tasks are representatiosn 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // handler (Chrome Extension/App or Drive App). | 100 // handler (Chrome Extension/App or Drive App). |
101 // | 101 // |
102 // Some built-in handlers such as "play" and "watch" are handled internally | 102 // Some built-in handlers such as "play" and "watch" are handled internally |
103 // in Files.app. "mount-archive" is handled very differently. The task | 103 // in Files.app. "mount-archive" is handled very differently. The task |
104 // execution business should be simplified: crbug.com/267313 | 104 // execution business should be simplified: crbug.com/267313 |
105 // | 105 // |
106 // See also: | 106 // See also: |
107 // chrome/browser/resources/file_manager/js/file_tasks.js | 107 // chrome/browser/resources/file_manager/js/file_tasks.js |
108 // | 108 // |
109 | 109 |
110 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_TASKS_H_ | 110 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ |
111 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_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" | 117 #include "base/basictypes.h" |
118 #include "base/callback_forward.h" | 118 #include "base/callback_forward.h" |
119 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" | 119 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
120 #include "url/gurl.h" | 120 #include "url/gurl.h" |
121 | 121 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 // Chooses the default task in |tasks| and sets it as default, if the default | 303 // Chooses the default task in |tasks| and sets it as default, if the default |
304 // task is found (i.e. the default task may not exist in |tasks|). No tasks | 304 // task is found (i.e. the default task may not exist in |tasks|). No tasks |
305 // should be set as default before calling this function. | 305 // should be set as default before calling this function. |
306 void ChooseAndSetDefaultTask(const PrefService& pref_service, | 306 void ChooseAndSetDefaultTask(const PrefService& pref_service, |
307 const PathAndMimeTypeSet& path_mime_set, | 307 const PathAndMimeTypeSet& path_mime_set, |
308 std::vector<FullTaskDescriptor>* tasks); | 308 std::vector<FullTaskDescriptor>* tasks); |
309 | 309 |
310 } // namespace file_tasks | 310 } // namespace file_tasks |
311 } // namespace file_manager | 311 } // namespace file_manager |
312 | 312 |
313 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_TASKS_H_ | 313 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_FILE_TASKS_H_ |
OLD | NEW |