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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system.h

Issue 10823226: Get AboutResource as account metadata for Drive V2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 4 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
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_GDATA_GDATA_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 virtual void OnDocumentFeedFetched(int num_accumulated_entries) OVERRIDE; 134 virtual void OnDocumentFeedFetched(int num_accumulated_entries) OVERRIDE;
135 virtual void OnFeedFromServerLoaded() OVERRIDE; 135 virtual void OnFeedFromServerLoaded() OVERRIDE;
136 136
137 // Used in tests to load the root feed from the cache. 137 // Used in tests to load the root feed from the cache.
138 void LoadRootFeedFromCacheForTesting(); 138 void LoadRootFeedFromCacheForTesting();
139 139
140 // Used in tests to update the file system from |feed_list|. 140 // Used in tests to update the file system from |feed_list|.
141 // See also the comment at GDataWapiFeedLoader::UpdateFromFeed(). 141 // See also the comment at GDataWapiFeedLoader::UpdateFromFeed().
142 GDataFileError UpdateFromFeedForTesting( 142 GDataFileError UpdateFromFeedForTesting(
143 const std::vector<DocumentFeed*>& feed_list, 143 const std::vector<DocumentFeed*>& feed_list,
144 int start_changestamp, 144 int64 start_changestamp,
145 int root_feed_changestamp); 145 int64 root_feed_changestamp);
146 146
147 private: 147 private:
148 friend class GDataFileSystemTest; 148 friend class GDataFileSystemTest;
149 FRIEND_TEST_ALL_PREFIXES(GDataFileSystemTest, 149 FRIEND_TEST_ALL_PREFIXES(GDataFileSystemTest,
150 FindFirstMissingParentDirectory); 150 FindFirstMissingParentDirectory);
151 151
152 // Defines possible search results of FindFirstMissingParentDirectory(). 152 // Defines possible search results of FindFirstMissingParentDirectory().
153 enum FindMissingDirectoryResult { 153 enum FindMissingDirectoryResult {
154 // Target directory found, it's not a directory. 154 // Target directory found, it's not a directory.
155 FOUND_INVALID, 155 FOUND_INVALID,
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 const FilePath& dir_path, 424 const FilePath& dir_path,
425 GDataErrorCode status, 425 GDataErrorCode status,
426 const GURL& document_url); 426 const GURL& document_url);
427 427
428 // Callback for handling account metadata fetch. 428 // Callback for handling account metadata fetch.
429 void OnGetAvailableSpace( 429 void OnGetAvailableSpace(
430 const GetAvailableSpaceCallback& callback, 430 const GetAvailableSpaceCallback& callback,
431 GDataErrorCode status, 431 GDataErrorCode status,
432 scoped_ptr<base::Value> data); 432 scoped_ptr<base::Value> data);
433 433
434 // Callback for handling Drive V2 about resource fetch.
435 void OnGetAboutResource(
436 const GetAvailableSpaceCallback& callback,
437 GDataErrorCode status,
438 scoped_ptr<base::Value> data);
439
434 // Callback for handling document remove attempt. 440 // Callback for handling document remove attempt.
435 void OnRemovedDocument( 441 void OnRemovedDocument(
436 const FileOperationCallback& callback, 442 const FileOperationCallback& callback,
437 const FilePath& file_path, 443 const FilePath& file_path,
438 GDataErrorCode status, 444 GDataErrorCode status,
439 const GURL& document_url); 445 const GURL& document_url);
440 446
441 // Callback for handling directory create requests. 447 // Callback for handling directory create requests.
442 void OnCreateDirectoryCompleted( 448 void OnCreateDirectoryCompleted(
443 const CreateDirectoryParams& params, 449 const CreateDirectoryParams& params,
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 // invalidate the weak pointers before any other members are destroyed. 821 // invalidate the weak pointers before any other members are destroyed.
816 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; 822 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_;
817 // Unlike other classes, we need this as we need this to redirect a task 823 // Unlike other classes, we need this as we need this to redirect a task
818 // from IO thread to UI thread. 824 // from IO thread to UI thread.
819 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 825 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
820 }; 826 };
821 827
822 } // namespace gdata 828 } // namespace gdata
823 829
824 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 830 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata.proto ('k') | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698