| 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 | 658 |
| 659 virtual bool RunImpl() OVERRIDE; | 659 virtual bool RunImpl() OVERRIDE; |
| 660 | 660 |
| 661 private: | 661 private: |
| 662 // Callback fo OpenFileSystem called from RunImpl. | 662 // Callback fo OpenFileSystem called from RunImpl. |
| 663 void OnFileSystemOpened(base::PlatformFileError result, | 663 void OnFileSystemOpened(base::PlatformFileError result, |
| 664 const std::string& file_system_name, | 664 const std::string& file_system_name, |
| 665 const GURL& file_system_url); | 665 const GURL& file_system_url); |
| 666 // Callback for gdata::SearchAsync called after file system is opened. | 666 // Callback for gdata::SearchAsync called after file system is opened. |
| 667 void OnSearch(gdata::GDataFileError error, | 667 void OnSearch(gdata::GDataFileError error, |
| 668 const GURL& next_feed, |
| 668 scoped_ptr<std::vector<gdata::SearchResultInfo> > result_paths); | 669 scoped_ptr<std::vector<gdata::SearchResultInfo> > result_paths); |
| 669 | 670 |
| 670 // Query for which the search is being performed. | 671 // Query for which the search is being performed. |
| 671 std::string query_; | 672 std::string query_; |
| 673 std::string next_feed_; |
| 672 // Information about remote file system we will need to create file entries | 674 // Information about remote file system we will need to create file entries |
| 673 // to represent search results. | 675 // to represent search results. |
| 674 std::string file_system_name_; | 676 std::string file_system_name_; |
| 675 GURL file_system_url_; | 677 GURL file_system_url_; |
| 676 }; | 678 }; |
| 677 | 679 |
| 678 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method. | 680 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method. |
| 679 class GetNetworkConnectionStateFunction : public SyncExtensionFunction { | 681 class GetNetworkConnectionStateFunction : public SyncExtensionFunction { |
| 680 public: | 682 public: |
| 681 DECLARE_EXTENSION_FUNCTION_NAME( | 683 DECLARE_EXTENSION_FUNCTION_NAME( |
| (...skipping 11 matching lines...) Expand all Loading... |
| 693 DECLARE_EXTENSION_FUNCTION_NAME( | 695 DECLARE_EXTENSION_FUNCTION_NAME( |
| 694 "fileBrowserPrivate.requestDirectoryRefresh"); | 696 "fileBrowserPrivate.requestDirectoryRefresh"); |
| 695 | 697 |
| 696 protected: | 698 protected: |
| 697 virtual ~RequestDirectoryRefreshFunction() {} | 699 virtual ~RequestDirectoryRefreshFunction() {} |
| 698 | 700 |
| 699 virtual bool RunImpl() OVERRIDE; | 701 virtual bool RunImpl() OVERRIDE; |
| 700 }; | 702 }; |
| 701 | 703 |
| 702 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 704 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |