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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_util.h

Issue 125733003: [SyncFS] Clean up V1 drive_file_sync_util.h dependency from V2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" 12 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h"
13 #include "chrome/browser/sync_file_system/sync_status_code.h"
14 #include "google_apis/drive/gdata_errorcode.h"
13 #include "webkit/common/blob/scoped_file.h" 15 #include "webkit/common/blob/scoped_file.h"
14 16
15 namespace google_apis { 17 namespace google_apis {
16 class ChangeResource; 18 class ChangeResource;
17 class FileResource; 19 class FileResource;
18 class ResourceEntry; 20 class ResourceEntry;
19 } 21 }
20 22
21 namespace leveldb { 23 namespace leveldb {
22 class WriteBatch; 24 class WriteBatch;
(...skipping 26 matching lines...) Expand all
49 51
50 std::string FileKindToString(FileKind file_kind); 52 std::string FileKindToString(FileKind file_kind);
51 53
52 bool HasFileAsParent(const FileDetails& details, const std::string& file_id); 54 bool HasFileAsParent(const FileDetails& details, const std::string& file_id);
53 55
54 std::string GetMimeTypeFromTitle(const base::FilePath& title); 56 std::string GetMimeTypeFromTitle(const base::FilePath& title);
55 57
56 scoped_ptr<google_apis::ResourceEntry> GetOldestCreatedFolderResource( 58 scoped_ptr<google_apis::ResourceEntry> GetOldestCreatedFolderResource(
57 ScopedVector<google_apis::ResourceEntry> list); 59 ScopedVector<google_apis::ResourceEntry> list);
58 60
61 // Translates GDataErrorCode to SyncStatusCode.
nhiroki 2014/01/07 06:55:05 nit: This comment seems a bit verbose and I think
tzik 2014/01/07 14:02:41 Done.
62 SyncStatusCode GDataErrorCodeToSyncStatusCode(
63 google_apis::GDataErrorCode error);
64
59 } // namespace drive_backend 65 } // namespace drive_backend
60 } // namespace sync_file_system 66 } // namespace sync_file_system
61 67
62 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ 68 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698