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

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

Issue 10271016: gdata: Remove use of FindEntryByPathAsync() from file_browser_private_api.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698