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

Side by Side Diff: chrome/browser/chromeos/drive/file_system/update_operation.h

Issue 15650008: drive: Rename drive::DriveClientContext to drive::ClientContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_DRIVE_FILE_SYSTEM_UPDATE_OPERATION_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UPDATE_OPERATION_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UPDATE_OPERATION_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UPDATE_OPERATION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 28 matching lines...) Expand all
39 internal::ResourceMetadata* metadata, 39 internal::ResourceMetadata* metadata,
40 internal::FileCache* cache); 40 internal::FileCache* cache);
41 ~UpdateOperation(); 41 ~UpdateOperation();
42 42
43 // Updates a file by the given |resource_id| on the Drive server by 43 // Updates a file by the given |resource_id| on the Drive server by
44 // uploading an updated version. Used for uploading dirty files. The file 44 // uploading an updated version. Used for uploading dirty files. The file
45 // should already be present in the cache. 45 // should already be present in the cache.
46 // 46 //
47 // |callback| must not be null. 47 // |callback| must not be null.
48 void UpdateFileByResourceId(const std::string& resource_id, 48 void UpdateFileByResourceId(const std::string& resource_id,
49 DriveClientContext context, 49 ClientContext context,
hashimoto 2013/05/27 03:04:39 nit: Could you fix this to const ClientContext whi
satorux1 2013/05/27 03:36:11 Done.
50 const FileOperationCallback& callback); 50 const FileOperationCallback& callback);
51 51
52 private: 52 private:
53 void UpdateFileAfterGetEntryInfo(DriveClientContext context, 53 void UpdateFileAfterGetEntryInfo(ClientContext context,
hashimoto 2013/05/27 03:04:39 ditto.
satorux1 2013/05/27 03:36:11 Done.
54 const FileOperationCallback& callback, 54 const FileOperationCallback& callback,
55 FileError error, 55 FileError error,
56 const base::FilePath& drive_file_path, 56 const base::FilePath& drive_file_path,
57 scoped_ptr<ResourceEntry> entry); 57 scoped_ptr<ResourceEntry> entry);
58 58
59 void UpdateFileAfterGetFile(DriveClientContext context, 59 void UpdateFileAfterGetFile(ClientContext context,
hashimoto 2013/05/27 03:04:39 ditto.
satorux1 2013/05/27 03:36:11 Done.
60 const FileOperationCallback& callback, 60 const FileOperationCallback& callback,
61 const base::FilePath& drive_file_path, 61 const base::FilePath& drive_file_path,
62 scoped_ptr<ResourceEntry> entry, 62 scoped_ptr<ResourceEntry> entry,
63 FileError error, 63 FileError error,
64 const base::FilePath& cache_file_path); 64 const base::FilePath& cache_file_path);
65 65
66 void UpdateFileAfterUpload( 66 void UpdateFileAfterUpload(
67 const FileOperationCallback& callback, 67 const FileOperationCallback& callback,
68 google_apis::GDataErrorCode error, 68 google_apis::GDataErrorCode error,
69 scoped_ptr<google_apis::ResourceEntry> resource_entry); 69 scoped_ptr<google_apis::ResourceEntry> resource_entry);
(...skipping 11 matching lines...) Expand all
81 // Note: This should remain the last member so it'll be destroyed and 81 // Note: This should remain the last member so it'll be destroyed and
82 // invalidate the weak pointers before any other members are destroyed. 82 // invalidate the weak pointers before any other members are destroyed.
83 base::WeakPtrFactory<UpdateOperation> weak_ptr_factory_; 83 base::WeakPtrFactory<UpdateOperation> weak_ptr_factory_;
84 DISALLOW_COPY_AND_ASSIGN(UpdateOperation); 84 DISALLOW_COPY_AND_ASSIGN(UpdateOperation);
85 }; 85 };
86 86
87 } // namespace file_system 87 } // namespace file_system
88 } // namespace drive 88 } // namespace drive
89 89
90 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UPDATE_OPERATION_H_ 90 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UPDATE_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698