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

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

Issue 10828126: gdata: Introduce GDataWapiFeedLoader class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_FILES_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // Adds the entry to resource map. 372 // Adds the entry to resource map.
373 void AddEntryToResourceMap(GDataEntry* entry); 373 void AddEntryToResourceMap(GDataEntry* entry);
374 374
375 // Removes the entry from resource map. 375 // Removes the entry from resource map.
376 void RemoveEntryFromResourceMap(GDataEntry* entry); 376 void RemoveEntryFromResourceMap(GDataEntry* entry);
377 377
378 // Searches for |file_path| synchronously. 378 // Searches for |file_path| synchronously.
379 // TODO(satorux): Replace this with an async version crbug.com/137160 379 // TODO(satorux): Replace this with an async version crbug.com/137160
380 GDataEntry* FindEntryByPathSync(const FilePath& file_path); 380 GDataEntry* FindEntryByPathSync(const FilePath& file_path);
381 381
382 // Searches for |file_path| synchronously, and runs |callback|.
383 // TODO(satorux): Replace this with an async version crbug.com/137160
384 void FindEntryByPathAndRunSync(const FilePath& file_path,
385 const FindEntryCallback& callback);
386
382 // Returns the GDataEntry* with the corresponding |resource_id|. 387 // Returns the GDataEntry* with the corresponding |resource_id|.
383 // TODO(achuith): Get rid of this in favor of async version crbug.com/13957. 388 // TODO(achuith): Get rid of this in favor of async version crbug.com/13957.
384 GDataEntry* GetEntryByResourceId(const std::string& resource_id); 389 GDataEntry* GetEntryByResourceId(const std::string& resource_id);
385 390
386 // Returns the GDataEntry* in the callback with the corresponding 391 // Returns the GDataEntry* in the callback with the corresponding
387 // |resource_id|. TODO(achuith): Rename this to GetEntryByResourceId. 392 // |resource_id|. TODO(achuith): Rename this to GetEntryByResourceId.
388 void GetEntryByResourceIdAsync(const std::string& resource_id, 393 void GetEntryByResourceIdAsync(const std::string& resource_id,
389 const GetEntryByResourceIdCallback& callback); 394 const GetEntryByResourceIdCallback& callback);
390 395
391 // Replaces file entry with the same resource id as |fresh_file| with its 396 // Replaces file entry with the same resource id as |fresh_file| with its
(...skipping 19 matching lines...) Expand all
411 size_t serialized_size_; 416 size_t serialized_size_;
412 int largest_changestamp_; // Stored in the serialized proto. 417 int largest_changestamp_; // Stored in the serialized proto.
413 ContentOrigin origin_; 418 ContentOrigin origin_;
414 419
415 DISALLOW_COPY_AND_ASSIGN(GDataDirectoryService); 420 DISALLOW_COPY_AND_ASSIGN(GDataDirectoryService);
416 }; 421 };
417 422
418 } // namespace gdata 423 } // namespace gdata
419 424
420 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ 425 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698