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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 base::DictionaryValue* properties, | 407 base::DictionaryValue* properties, |
408 base::PlatformFileError error); | 408 base::PlatformFileError error); |
409 | 409 |
410 // AsyncExtensionFunction overrides. | 410 // AsyncExtensionFunction overrides. |
411 virtual bool RunImpl() OVERRIDE; | 411 virtual bool RunImpl() OVERRIDE; |
412 | 412 |
413 // Builds list of file properies. Calls DoOperation for each file. | 413 // Builds list of file properies. Calls DoOperation for each file. |
414 void PrepareResults(); | 414 void PrepareResults(); |
415 | 415 |
416 private: | 416 private: |
417 void OnFileProperties(base::DictionaryValue* property_dict, | 417 void OnGetFileInfo(base::DictionaryValue* property_dict, |
418 const FilePath& file_path, | 418 const FilePath& file_path, |
419 base::PlatformFileError error, | 419 base::PlatformFileError error, |
420 const FilePath& directory_path, | 420 scoped_ptr<gdata::GDataFileProto> file_proto); |
421 gdata::GDataEntry* entry); | |
422 | 421 |
423 void CacheStateReceived(base::DictionaryValue* property_dict, | 422 void CacheStateReceived(base::DictionaryValue* property_dict, |
424 base::PlatformFileError error, | 423 base::PlatformFileError error, |
425 int cache_state); | 424 int cache_state); |
426 | 425 |
427 size_t current_index_; | 426 size_t current_index_; |
428 base::ListValue* path_list_; | 427 base::ListValue* path_list_; |
429 scoped_ptr<base::ListValue> file_properties_; | 428 scoped_ptr<base::ListValue> file_properties_; |
430 | 429 |
431 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getGDataFileProperties"); | 430 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getGDataFileProperties"); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 | 585 |
587 // Write setting value. | 586 // Write setting value. |
588 class SetGDataPreferencesFunction : public SyncExtensionFunction { | 587 class SetGDataPreferencesFunction : public SyncExtensionFunction { |
589 protected: | 588 protected: |
590 virtual bool RunImpl() OVERRIDE; | 589 virtual bool RunImpl() OVERRIDE; |
591 private: | 590 private: |
592 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.setGDataPreferences"); | 591 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.setGDataPreferences"); |
593 }; | 592 }; |
594 | 593 |
595 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 594 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |