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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 void PrepareResults(); | 459 void PrepareResults(); |
460 | 460 |
461 private: | 461 private: |
462 void OnGetFileInfo(const FilePath& file_path, | 462 void OnGetFileInfo(const FilePath& file_path, |
463 base::DictionaryValue* property_dict, | 463 base::DictionaryValue* property_dict, |
464 base::PlatformFileError error, | 464 base::PlatformFileError error, |
465 scoped_ptr<gdata::GDataFileProto> file_proto); | 465 scoped_ptr<gdata::GDataFileProto> file_proto); |
466 | 466 |
467 void CacheStateReceived(base::DictionaryValue* property_dict, | 467 void CacheStateReceived(base::DictionaryValue* property_dict, |
468 bool success, | 468 bool success, |
469 const gdata::GDataCache::CacheEntry& cache_entry); | 469 const gdata::GDataCacheEntry& cache_entry); |
470 | 470 |
471 size_t current_index_; | 471 size_t current_index_; |
472 base::ListValue* path_list_; | 472 base::ListValue* path_list_; |
473 scoped_ptr<base::ListValue> file_properties_; | 473 scoped_ptr<base::ListValue> file_properties_; |
474 }; | 474 }; |
475 | 475 |
476 // Pin/unpin multiple files in the cache, returning a list of file | 476 // Pin/unpin multiple files in the cache, returning a list of file |
477 // properties with the updated cache state. The returned array is the | 477 // properties with the updated cache state. The returned array is the |
478 // same length as the input list of file URLs. If a particular file | 478 // same length as the input list of file URLs. If a particular file |
479 // has an error, then return a dictionary with the key "error" set to | 479 // has an error, then return a dictionary with the key "error" set to |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 DECLARE_EXTENSION_FUNCTION_NAME( | 707 DECLARE_EXTENSION_FUNCTION_NAME( |
708 "fileBrowserPrivate.requestDirectoryRefresh"); | 708 "fileBrowserPrivate.requestDirectoryRefresh"); |
709 | 709 |
710 protected: | 710 protected: |
711 virtual ~RequestDirectoryRefreshFunction() {} | 711 virtual ~RequestDirectoryRefreshFunction() {} |
712 | 712 |
713 virtual bool RunImpl() OVERRIDE; | 713 virtual bool RunImpl() OVERRIDE; |
714 }; | 714 }; |
715 | 715 |
716 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 716 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |