Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.h

Issue 9719012: Revert 127317 - Implemented API for tracking ongoing file transfers from file manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698