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

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

Issue 1042803002: Drive: Move inner structures of DriveAPIService under drive namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 5 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SERVICE_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/sequence_checker.h" 9 #include "base/sequence_checker.h"
10 #include "chrome/browser/drive/drive_service_interface.h" 10 #include "chrome/browser/drive/drive_service_interface.h"
11 11
12 namespace sync_file_system { 12 namespace sync_file_system {
13 namespace drive_backend { 13 namespace drive_backend {
14 14
15 // This class wraps a part of DriveServiceInterface class to support weak 15 // This class wraps a part of DriveServiceInterface class to support weak
16 // pointer. Each method wraps corresponding name method of 16 // pointer. Each method wraps corresponding name method of
17 // DriveServiceInterface. See comments in drive_service_interface.h 17 // DriveServiceInterface. See comments in drive_service_interface.h
18 // for details. 18 // for details.
19 class DriveServiceWrapper : public base::SupportsWeakPtr<DriveServiceWrapper> { 19 class DriveServiceWrapper : public base::SupportsWeakPtr<DriveServiceWrapper> {
20 public: 20 public:
21 explicit DriveServiceWrapper(drive::DriveServiceInterface* drive_service); 21 explicit DriveServiceWrapper(drive::DriveServiceInterface* drive_service);
22 22
23 void AddNewDirectory( 23 void AddNewDirectory(const std::string& parent_resource_id,
24 const std::string& parent_resource_id, 24 const std::string& directory_title,
25 const std::string& directory_title, 25 const drive::AddNewDirectoryOptions& options,
26 const drive::DriveServiceInterface::AddNewDirectoryOptions& options, 26 const google_apis::FileResourceCallback& callback);
27 const google_apis::FileResourceCallback& callback);
28 27
29 void DeleteResource( 28 void DeleteResource(
30 const std::string& resource_id, 29 const std::string& resource_id,
31 const std::string& etag, 30 const std::string& etag,
32 const google_apis::EntryActionCallback& callback); 31 const google_apis::EntryActionCallback& callback);
33 32
34 void DownloadFile( 33 void DownloadFile(
35 const base::FilePath& local_cache_path, 34 const base::FilePath& local_cache_path,
36 const std::string& resource_id, 35 const std::string& resource_id,
37 const google_apis::DownloadActionCallback& download_action_callback, 36 const google_apis::DownloadActionCallback& download_action_callback,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 drive::DriveServiceInterface* drive_service_; 74 drive::DriveServiceInterface* drive_service_;
76 base::SequenceChecker sequece_checker_; 75 base::SequenceChecker sequece_checker_;
77 76
78 DISALLOW_COPY_AND_ASSIGN(DriveServiceWrapper); 77 DISALLOW_COPY_AND_ASSIGN(DriveServiceWrapper);
79 }; 78 };
80 79
81 } // namespace drive_backend 80 } // namespace drive_backend
82 } // namespace sync_file_system 81 } // namespace sync_file_system
83 82
84 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H _ 83 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698