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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <queue> | 10 #include <queue> |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 scoped_ptr<std::vector<gdata::SearchResultInfo> > result_paths); | 663 scoped_ptr<std::vector<gdata::SearchResultInfo> > result_paths); |
664 | 664 |
665 // Query for which the search is being performed. | 665 // Query for which the search is being performed. |
666 std::string query_; | 666 std::string query_; |
667 // Information about remote file system we will need to create file entries | 667 // Information about remote file system we will need to create file entries |
668 // to represent search results. | 668 // to represent search results. |
669 std::string file_system_name_; | 669 std::string file_system_name_; |
670 GURL file_system_url_; | 670 GURL file_system_url_; |
671 }; | 671 }; |
672 | 672 |
| 673 class ClearDriveCacheFunction : public AsyncExtensionFunction { |
| 674 public: |
| 675 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.clearDriveCache"); |
| 676 |
| 677 protected: |
| 678 virtual ~ClearDriveCacheFunction() {} |
| 679 |
| 680 virtual bool RunImpl() OVERRIDE; |
| 681 }; |
| 682 |
673 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method. | 683 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method. |
674 class GetNetworkConnectionStateFunction : public SyncExtensionFunction { | 684 class GetNetworkConnectionStateFunction : public SyncExtensionFunction { |
675 public: | 685 public: |
676 DECLARE_EXTENSION_FUNCTION_NAME( | 686 DECLARE_EXTENSION_FUNCTION_NAME( |
677 "fileBrowserPrivate.getNetworkConnectionState"); | 687 "fileBrowserPrivate.getNetworkConnectionState"); |
678 | 688 |
679 protected: | 689 protected: |
680 virtual ~GetNetworkConnectionStateFunction() {} | 690 virtual ~GetNetworkConnectionStateFunction() {} |
681 | 691 |
682 virtual bool RunImpl() OVERRIDE; | 692 virtual bool RunImpl() OVERRIDE; |
683 }; | 693 }; |
684 | 694 |
685 // Implements the chrome.fileBrowserPrivate.requestDirectoryRefresh method. | 695 // Implements the chrome.fileBrowserPrivate.requestDirectoryRefresh method. |
686 class RequestDirectoryRefreshFunction : public SyncExtensionFunction { | 696 class RequestDirectoryRefreshFunction : public SyncExtensionFunction { |
687 public: | 697 public: |
688 DECLARE_EXTENSION_FUNCTION_NAME( | 698 DECLARE_EXTENSION_FUNCTION_NAME( |
689 "fileBrowserPrivate.requestDirectoryRefresh"); | 699 "fileBrowserPrivate.requestDirectoryRefresh"); |
690 | 700 |
691 protected: | 701 protected: |
692 virtual ~RequestDirectoryRefreshFunction() {} | 702 virtual ~RequestDirectoryRefreshFunction() {} |
693 | 703 |
694 virtual bool RunImpl() OVERRIDE; | 704 virtual bool RunImpl() OVERRIDE; |
695 }; | 705 }; |
696 | 706 |
697 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 707 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |