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

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

Issue 10634020: [FileManager] Do drive search incrementally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <queue> 10 #include <queue>
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 protected: 641 protected:
642 virtual ~SetGDataPreferencesFunction() {} 642 virtual ~SetGDataPreferencesFunction() {}
643 643
644 virtual bool RunImpl() OVERRIDE; 644 virtual bool RunImpl() OVERRIDE;
645 }; 645 };
646 646
647 class SearchDriveFunction : public AsyncExtensionFunction { 647 class SearchDriveFunction : public AsyncExtensionFunction {
648 public: 648 public:
649 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.searchGData"); 649 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.searchGData");
650 650
651 SearchDriveFunction();
652
651 protected: 653 protected:
652 virtual ~SearchDriveFunction() {} 654 virtual ~SearchDriveFunction();
653 655
654 virtual bool RunImpl() OVERRIDE; 656 virtual bool RunImpl() OVERRIDE;
655 657
656 private: 658 private:
657 // Callback fo OpenFileSystem called from RunImpl. 659 // Callback fo OpenFileSystem called from RunImpl.
658 void OnFileSystemOpened(base::PlatformFileError result, 660 void OnFileSystemOpened(base::PlatformFileError result,
659 const std::string& file_system_name, 661 const std::string& file_system_name,
660 const GURL& file_system_url); 662 const GURL& file_system_url);
661 // Callback for gdata::SearchAsync called after file system is opened. 663 // Callback for gdata::SearchAsync called after file system is opened.
662 void OnSearch(gdata::GDataFileError error, 664 void OnSearch(gdata::GDataFileError error,
665 const GURL& next_feed,
663 scoped_ptr<std::vector<gdata::SearchResultInfo> > result_paths); 666 scoped_ptr<std::vector<gdata::SearchResultInfo> > result_paths);
664 667
665 // Query for which the search is being performed. 668 // Query for which the search is being performed.
666 std::string query_; 669 std::string query_;
670 std::string next_feed_;
667 // Information about remote file system we will need to create file entries 671 // Information about remote file system we will need to create file entries
668 // to represent search results. 672 // to represent search results.
669 std::string file_system_name_; 673 std::string file_system_name_;
670 GURL file_system_url_; 674 GURL file_system_url_;
671 }; 675 };
672 676
673 class ClearDriveCacheFunction : public AsyncExtensionFunction { 677 class ClearDriveCacheFunction : public AsyncExtensionFunction {
674 public: 678 public:
675 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.clearDriveCache"); 679 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.clearDriveCache");
676 680
(...skipping 21 matching lines...) Expand all
698 DECLARE_EXTENSION_FUNCTION_NAME( 702 DECLARE_EXTENSION_FUNCTION_NAME(
699 "fileBrowserPrivate.requestDirectoryRefresh"); 703 "fileBrowserPrivate.requestDirectoryRefresh");
700 704
701 protected: 705 protected:
702 virtual ~RequestDirectoryRefreshFunction() {} 706 virtual ~RequestDirectoryRefreshFunction() {}
703 707
704 virtual bool RunImpl() OVERRIDE; 708 virtual bool RunImpl() OVERRIDE;
705 }; 709 };
706 710
707 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 711 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698