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

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

Issue 10837091: Drive: Adds clearDriveCache API to file_browser_private. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 scoped_ptr<std::vector<gdata::SearchResultInfo> > result_paths); 668 scoped_ptr<std::vector<gdata::SearchResultInfo> > result_paths);
669 669
670 // Query for which the search is being performed. 670 // Query for which the search is being performed.
671 std::string query_; 671 std::string query_;
672 // Information about remote file system we will need to create file entries 672 // Information about remote file system we will need to create file entries
673 // to represent search results. 673 // to represent search results.
674 std::string file_system_name_; 674 std::string file_system_name_;
675 GURL file_system_url_; 675 GURL file_system_url_;
676 }; 676 };
677 677
678 class ClearDriveCacheFunction : public AsyncExtensionFunction {
679 public:
680 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.clearDriveCache");
681
682 protected:
683 virtual ~ClearDriveCacheFunction() {}
684
685 virtual bool RunImpl() OVERRIDE;
686 };
687
678 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method. 688 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method.
679 class GetNetworkConnectionStateFunction : public SyncExtensionFunction { 689 class GetNetworkConnectionStateFunction : public SyncExtensionFunction {
680 public: 690 public:
681 DECLARE_EXTENSION_FUNCTION_NAME( 691 DECLARE_EXTENSION_FUNCTION_NAME(
682 "fileBrowserPrivate.getNetworkConnectionState"); 692 "fileBrowserPrivate.getNetworkConnectionState");
683 693
684 protected: 694 protected:
685 virtual ~GetNetworkConnectionStateFunction() {} 695 virtual ~GetNetworkConnectionStateFunction() {}
686 696
687 virtual bool RunImpl() OVERRIDE; 697 virtual bool RunImpl() OVERRIDE;
688 }; 698 };
689 699
690 // Implements the chrome.fileBrowserPrivate.requestDirectoryRefresh method. 700 // Implements the chrome.fileBrowserPrivate.requestDirectoryRefresh method.
691 class RequestDirectoryRefreshFunction : public SyncExtensionFunction { 701 class RequestDirectoryRefreshFunction : public SyncExtensionFunction {
692 public: 702 public:
693 DECLARE_EXTENSION_FUNCTION_NAME( 703 DECLARE_EXTENSION_FUNCTION_NAME(
694 "fileBrowserPrivate.requestDirectoryRefresh"); 704 "fileBrowserPrivate.requestDirectoryRefresh");
695 705
696 protected: 706 protected:
697 virtual ~RequestDirectoryRefreshFunction() {} 707 virtual ~RequestDirectoryRefreshFunction() {}
698 708
699 virtual bool RunImpl() OVERRIDE; 709 virtual bool RunImpl() OVERRIDE;
700 }; 710 };
701 711
702 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 712 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698