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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend_v1/api_util_interface.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 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_V1_API_UTIL_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_INTERFACE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_INTERFACE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "google_apis/drive/gdata_errorcode.h" 11 #include "google_apis/drive/gdata_errorcode.h"
12 #include "google_apis/drive/gdata_wapi_parser.h" 12 #include "google_apis/drive/gdata_wapi_parser.h"
13 13
14 class GURL; 14 class GURL;
15 class Profile; 15 class Profile;
16 16
17 namespace base { 17 namespace base {
18 class Time; 18 class Time;
19 } 19 }
20 20
21 namespace google_apis { 21 namespace google_apis {
22 class DriveUploaderInterface; 22 class DriveUploaderInterface;
23 } 23 }
24 24
25 namespace webkit_blob { 25 namespace storage {
26 class ScopedFile; 26 class ScopedFile;
27 } 27 }
28 28
29 namespace sync_file_system { 29 namespace sync_file_system {
30 namespace drive_backend { 30 namespace drive_backend {
31 31
32 class APIUtilObserver { 32 class APIUtilObserver {
33 public: 33 public:
34 APIUtilObserver() {} 34 APIUtilObserver() {}
35 virtual ~APIUtilObserver() {} 35 virtual ~APIUtilObserver() {}
36 virtual void OnAuthenticated() = 0; 36 virtual void OnAuthenticated() = 0;
37 virtual void OnNetworkConnected() = 0; 37 virtual void OnNetworkConnected() = 0;
38 38
39 private: 39 private:
40 DISALLOW_COPY_AND_ASSIGN(APIUtilObserver); 40 DISALLOW_COPY_AND_ASSIGN(APIUtilObserver);
41 }; 41 };
42 42
43 // The implementation of this class is responsible for talking to the Drive 43 // The implementation of this class is responsible for talking to the Drive
44 // service to get and put Drive directories, files and metadata. 44 // service to get and put Drive directories, files and metadata.
45 // This class is owned by DriveFileSyncService. 45 // This class is owned by DriveFileSyncService.
46 class APIUtilInterface { 46 class APIUtilInterface {
47 public: 47 public:
48 typedef base::Callback<void(google_apis::GDataErrorCode error)> 48 typedef base::Callback<void(google_apis::GDataErrorCode error)>
49 GDataErrorCallback; 49 GDataErrorCallback;
50 typedef base::Callback<void(google_apis::GDataErrorCode error, 50 typedef base::Callback<void(google_apis::GDataErrorCode error,
51 const std::string& file_md5, 51 const std::string& file_md5,
52 int64 file_size, 52 int64 file_size,
53 const base::Time& last_updated, 53 const base::Time& last_updated,
54 webkit_blob::ScopedFile downloaded)> 54 storage::ScopedFile downloaded)>
55 DownloadFileCallback; 55 DownloadFileCallback;
56 typedef base::Callback<void(google_apis::GDataErrorCode error, 56 typedef base::Callback<void(google_apis::GDataErrorCode error,
57 const std::string& resource_id, 57 const std::string& resource_id,
58 const std::string& file_md5)> UploadFileCallback; 58 const std::string& file_md5)> UploadFileCallback;
59 typedef base::Callback< 59 typedef base::Callback<
60 void(google_apis::GDataErrorCode error, const std::string& resource_id)> 60 void(google_apis::GDataErrorCode error, const std::string& resource_id)>
61 ResourceIdCallback; 61 ResourceIdCallback;
62 typedef base::Callback<void(google_apis::GDataErrorCode error, 62 typedef base::Callback<void(google_apis::GDataErrorCode error,
63 int64 changestamp)> ChangeStampCallback; 63 int64 changestamp)> ChangeStampCallback;
64 typedef base::Callback<void(google_apis::GDataErrorCode error, 64 typedef base::Callback<void(google_apis::GDataErrorCode error,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 const std::string& sync_root_resource_id) = 0; 189 const std::string& sync_root_resource_id) = 0;
190 190
191 private: 191 private:
192 DISALLOW_COPY_AND_ASSIGN(APIUtilInterface); 192 DISALLOW_COPY_AND_ASSIGN(APIUtilInterface);
193 }; 193 };
194 194
195 } // namespace drive_backend 195 } // namespace drive_backend
196 } // namespace sync_file_system 196 } // namespace sync_file_system
197 197
198 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_INTERFACE_H _ 198 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_V1_API_UTIL_INTERFACE_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698