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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h

Issue 15814002: drive: Stop calling OpenFileSystem from SearchDriveFunction/SearchDriveMetadataFunction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h
diff --git a/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h b/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h
index 34a337f95ac34c47402dc0a7b5e10383956d2ca4..6f645d96484f47ad4dbec8c8b0aa27f90159d964 100644
--- a/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h
+++ b/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h
@@ -656,22 +656,10 @@ class SearchDriveFunction : public AsyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
private:
- // Callback fo OpenFileSystem called from RunImpl.
- void OnFileSystemOpened(base::PlatformFileError result,
- const std::string& file_system_name,
- const GURL& file_system_url);
- // Callback for google_apis::SearchAsync called after file system is opened.
+ // Callback for Search().
void OnSearch(drive::FileError error,
const GURL& next_feed,
scoped_ptr<std::vector<drive::SearchResultInfo> > result_paths);
-
- // Query for which the search is being performed.
- std::string query_;
- std::string next_feed_;
- // Information about remote file system we will need to create file entries
- // to represent search results.
- std::string file_system_name_;
- GURL file_system_url_;
};
// Similar to SearchDriveFunction but this one is used for searching drive
@@ -689,30 +677,9 @@ class SearchDriveMetadataFunction : public FileBrowserFunction {
virtual bool RunImpl() OVERRIDE;
private:
- // Callback fo OpenFileSystem called from RunImpl.
- void OnFileSystemOpened(base::PlatformFileError result,
- const std::string& file_system_name,
- const GURL& file_system_url);
- // Callback for LocalSearch().
- void OnSearchMetadata(
- drive::FileError error,
- scoped_ptr<drive::MetadataSearchResultVector> results);
-
- // Query for which the search is being performed.
- std::string query_;
- // String representing what type of entries are needed. It corresponds to
- // SearchMetadataOptions:
- // SEARCH_METADATA_OPTION_EXCLUDE_DIRECTORIES => "EXCLUDE_DIRECTORIES"
- // SEARCH_METADATA_OPTION_ALL => "ALL"
- std::string types_;
- // Maximum number of results. The results contains |max_num_results_| entries
- // at most.
- int max_results_;
-
- // Information about remote file system we will need to create file entries
- // to represent search results.
- std::string file_system_name_;
- GURL file_system_url_;
+ // Callback for SearchMetadata();
+ void OnSearchMetadata(drive::FileError error,
+ scoped_ptr<drive::MetadataSearchResultVector> results);
};
class ClearDriveCacheFunction : public AsyncExtensionFunction {
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698