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

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

Issue 10828163: gdata: Remove obsolete GDataDB related code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove FromProtoString too 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const GDataFile* AsGDataFileConst() const; 82 const GDataFile* AsGDataFileConst() const;
83 const GDataDirectory* AsGDataDirectoryConst() const; 83 const GDataDirectory* AsGDataDirectoryConst() const;
84 84
85 // Converts DocumentEntry into GDataEntry. 85 // Converts DocumentEntry into GDataEntry.
86 static GDataEntry* FromDocumentEntry( 86 static GDataEntry* FromDocumentEntry(
87 GDataDirectory* parent, 87 GDataDirectory* parent,
88 DocumentEntry* doc, 88 DocumentEntry* doc,
89 GDataDirectoryService* directory_service); 89 GDataDirectoryService* directory_service);
90 90
91 // Serialize/Parse to/from string via proto classes. 91 // Serialize/Parse to/from string via proto classes.
92 // TODO(achuith): Correctly set up parent_ and root_ links in
93 // FromProtoString.
94 void SerializeToString(std::string* serialized_proto) const; 92 void SerializeToString(std::string* serialized_proto) const;
95 static scoped_ptr<GDataEntry> FromProtoString(
96 const std::string& serialized_proto);
97 93
98 // Converts the proto representation to the platform file. 94 // Converts the proto representation to the platform file.
99 static void ConvertProtoToPlatformFileInfo( 95 static void ConvertProtoToPlatformFileInfo(
100 const PlatformFileInfoProto& proto, 96 const PlatformFileInfoProto& proto,
101 base::PlatformFileInfo* file_info); 97 base::PlatformFileInfo* file_info);
102 98
103 // Converts the platform file info to the proto representation. 99 // Converts the platform file info to the proto representation.
104 static void ConvertPlatformFileInfoToProto( 100 static void ConvertPlatformFileInfoToProto(
105 const base::PlatformFileInfo& file_info, 101 const base::PlatformFileInfo& file_info,
106 PlatformFileInfoProto* proto); 102 PlatformFileInfoProto* proto);
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 size_t serialized_size_; 412 size_t serialized_size_;
417 int largest_changestamp_; // Stored in the serialized proto. 413 int largest_changestamp_; // Stored in the serialized proto.
418 ContentOrigin origin_; 414 ContentOrigin origin_;
419 415
420 DISALLOW_COPY_AND_ASSIGN(GDataDirectoryService); 416 DISALLOW_COPY_AND_ASSIGN(GDataDirectoryService);
421 }; 417 };
422 418
423 } // namespace gdata 419 } // namespace gdata
424 420
425 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_ 421 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILES_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_db_unittest.cc ('k') | chrome/browser/chromeos/gdata/gdata_files.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698