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_CHROMEOS_DRIVE_DRIVE_TASK_EXECUTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TASK_EXECUTOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TASK_EXECUTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TASK_EXECUTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "chrome/browser/chromeos/drive/drive_file_error.h" | 11 #include "chrome/browser/chromeos/drive/drive_file_error.h" |
12 #include "chrome/browser/chromeos/extensions/file_handler_util.h" | 12 #include "chrome/browser/chromeos/extensions/file_manager/file_handler_util.h" |
13 #include "chrome/browser/google_apis/gdata_errorcode.h" | 13 #include "chrome/browser/google_apis/gdata_errorcode.h" |
14 | 14 |
15 namespace drive { | 15 namespace drive { |
16 | 16 |
17 class DriveEntryProto; | 17 class DriveEntryProto; |
18 | 18 |
19 // This class implements an "executor" class that will execute tasks for | 19 // This class implements an "executor" class that will execute tasks for |
20 // third party Drive apps that store data in Drive itself. To do that, it | 20 // third party Drive apps that store data in Drive itself. To do that, it |
21 // needs to find the file resource IDs and pass them to a server-side function | 21 // needs to find the file resource IDs and pass them to a server-side function |
22 // that will authorize the app to open the given document and return a URL | 22 // that will authorize the app to open the given document and return a URL |
(...skipping 25 matching lines...) Expand all Loading... |
48 | 48 |
49 const GURL source_url_; | 49 const GURL source_url_; |
50 const std::string action_id_; | 50 const std::string action_id_; |
51 int current_index_; | 51 int current_index_; |
52 file_handler_util::FileTaskFinishedCallback done_; | 52 file_handler_util::FileTaskFinishedCallback done_; |
53 }; | 53 }; |
54 | 54 |
55 } // namespace drive | 55 } // namespace drive |
56 | 56 |
57 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TASK_EXECUTOR_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TASK_EXECUTOR_H_ |
OLD | NEW |