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

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

Issue 10837201: Pass parsed ChangeList to GDataFileSystem. (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_DRIVE_API_PARSER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/string_piece.h" 15 #include "base/string_piece.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
satorux1 2012/08/10 18:14:34 This dependency is worrisome. This is for Document
kochi 2012/08/13 09:08:39 Once migration is done, EntryKind will not necessa
18 19
19 namespace base { 20 namespace base {
20 class Value; 21 class Value;
21 template <class StructType> 22 template <class StructType>
22 class JSONValueConverter; 23 class JSONValueConverter;
23 24
24 namespace internal { 25 namespace internal {
25 template <class NestedType> 26 template <class NestedType>
26 class RepeatedMessageConverter; 27 class RepeatedMessageConverter;
27 } // namespace internal 28 } // namespace internal
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 base::JSONValueConverter<FileResource>* converter); 309 base::JSONValueConverter<FileResource>* converter);
309 310
310 // Creates file resource from parsed JSON. 311 // Creates file resource from parsed JSON.
311 static scoped_ptr<FileResource> CreateFrom(const base::Value& value); 312 static scoped_ptr<FileResource> CreateFrom(const base::Value& value);
312 313
313 // Returns true if this is a directory. 314 // Returns true if this is a directory.
314 // Note: "folder" is used elsewhere in this file to match Drive API reference, 315 // Note: "folder" is used elsewhere in this file to match Drive API reference,
315 // but outside this file we use "directory" to match HTML5 filesystem API. 316 // but outside this file we use "directory" to match HTML5 filesystem API.
316 bool IsDirectory() const; 317 bool IsDirectory() const;
317 318
319 DocumentEntry::EntryKind GetKind() const;
320
318 // Returns file ID. This is unique in all files in Google Drive. 321 // Returns file ID. This is unique in all files in Google Drive.
319 const std::string& file_id() const { return file_id_; } 322 const std::string& file_id() const { return file_id_; }
320 323
321 // Returns ETag for this file. 324 // Returns ETag for this file.
322 const std::string& etag() const { return etag_; } 325 const std::string& etag() const { return etag_; }
323 326
324 // Returns the link to JSON of this file itself. 327 // Returns the link to JSON of this file itself.
325 const GURL& self_link() const { return self_link_; } 328 const GURL& self_link() const { return self_link_; }
326 329
327 // Returns the title of this file. 330 // Returns the title of this file.
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 GURL next_link_; 533 GURL next_link_;
531 int64 largest_change_id_; 534 int64 largest_change_id_;
532 ScopedVector<ChangeResource> items_; 535 ScopedVector<ChangeResource> items_;
533 536
534 DISALLOW_COPY_AND_ASSIGN(ChangeList); 537 DISALLOW_COPY_AND_ASSIGN(ChangeList);
535 }; 538 };
536 539
537 } // namespace gdata 540 } // namespace gdata
538 541
539 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_ 542 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_API_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/drive_api_parser.cc » ('j') | chrome/browser/chromeos/gdata/drive_api_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698