| 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_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 // |remaining_gdata_paths_|, and calls GetFileOrSendResponse(). | 474 // |remaining_gdata_paths_|, and calls GetFileOrSendResponse(). |
| 475 void OnFileReady(base::PlatformFileError error, | 475 void OnFileReady(base::PlatformFileError error, |
| 476 const FilePath& local_path); | 476 const FilePath& local_path); |
| 477 | 477 |
| 478 std::queue<FilePath> remaining_gdata_paths_; | 478 std::queue<FilePath> remaining_gdata_paths_; |
| 479 ListValue* local_paths_; | 479 ListValue* local_paths_; |
| 480 | 480 |
| 481 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getGDataFiles"); | 481 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getGDataFiles"); |
| 482 }; | 482 }; |
| 483 | 483 |
| 484 // Implements the chrome.fileBrowserPrivate.executeTask method. | |
| 485 class GetFileTransfersFunction : public AsyncExtensionFunction { | |
| 486 public: | |
| 487 GetFileTransfersFunction(); | |
| 488 virtual ~GetFileTransfersFunction(); | |
| 489 | |
| 490 protected: | |
| 491 // AsyncExtensionFunction overrides. | |
| 492 virtual bool RunImpl() OVERRIDE; | |
| 493 | |
| 494 private: | |
| 495 ListValue* GetFileTransfersList(); | |
| 496 | |
| 497 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getFileTransfers"); | |
| 498 }; | |
| 499 | |
| 500 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 484 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |