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

Side by Side Diff: webkit/browser/fileapi/local_file_system_operation.h

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // 159 //
160 void MoveFileLocal(const FileSystemURL& src_url, 160 void MoveFileLocal(const FileSystemURL& src_url,
161 const FileSystemURL& dest_url, 161 const FileSystemURL& dest_url,
162 const StatusCallback& callback); 162 const StatusCallback& callback);
163 163
164 // Synchronously gets the platform path for the given |url|. 164 // Synchronously gets the platform path for the given |url|.
165 void SyncGetPlatformPath(const FileSystemURL& url, 165 void SyncGetPlatformPath(const FileSystemURL& url,
166 base::FilePath* platform_path); 166 base::FilePath* platform_path);
167 167
168 FileSystemContext* file_system_context() const { 168 FileSystemContext* file_system_context() const {
169 return file_system_context_; 169 return file_system_context_.get();
170 } 170 }
171 171
172 FileSystemOperationContext* operation_context() const { 172 FileSystemOperationContext* operation_context() const {
173 if (parent_operation_) 173 if (parent_operation_)
174 return parent_operation_->operation_context(); 174 return parent_operation_->operation_context();
175 return operation_context_.get(); 175 return operation_context_.get();
176 } 176 }
177 177
178 private: 178 private:
179 enum OperationMode { 179 enum OperationMode {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // LocalFileSystemOperation instance is usually deleted upon completion but 332 // LocalFileSystemOperation instance is usually deleted upon completion but
333 // could be deleted while it has inflight callbacks when Cancel is called. 333 // could be deleted while it has inflight callbacks when Cancel is called.
334 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_; 334 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_;
335 335
336 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation); 336 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation);
337 }; 337 };
338 338
339 } // namespace fileapi 339 } // namespace fileapi
340 340
341 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ 341 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698