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

Side by Side Diff: chrome/browser/chromeos/drive/file_write_helper.h

Issue 11106007: drive: Rename 'gdata' namespace to 'drive' in chrome/browser/chromeos/drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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_WRITE_HELPER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_WRITE_HELPER_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_WRITE_HELPER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_WRITE_HELPER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/chromeos/drive/drive_file_error.h" 9 #include "chrome/browser/chromeos/drive/drive_file_error.h"
10 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" 10 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h"
11 11
12 class FilePath; 12 class FilePath;
13 13
14 namespace gdata { 14 namespace drive {
15 15
16 // This class provides higher level operations for writing to Drive files over 16 // This class provides higher level operations for writing to Drive files over
17 // DriveFileSystemInterface. 17 // DriveFileSystemInterface.
18 class FileWriteHelper { 18 class FileWriteHelper {
19 public: 19 public:
20 explicit FileWriteHelper(DriveFileSystemInterface* file_system); 20 explicit FileWriteHelper(DriveFileSystemInterface* file_system);
21 ~FileWriteHelper(); 21 ~FileWriteHelper();
22 22
23 // Prepares a local temporary file path and passes it to |callback| on the 23 // Prepares a local temporary file path and passes it to |callback| on the
24 // blocking thread pool that allows file operations. The modification to 24 // blocking thread pool that allows file operations. The modification to
(...skipping 23 matching lines...) Expand all
48 DriveFileSystemInterface* file_system_; 48 DriveFileSystemInterface* file_system_;
49 49
50 // WeakPtrFactory bound to the UI thread. 50 // WeakPtrFactory bound to the UI thread.
51 // Note: This should remain the last member so it'll be destroyed and 51 // Note: This should remain the last member so it'll be destroyed and
52 // invalidate its weak pointers before any other members are destroyed. 52 // invalidate its weak pointers before any other members are destroyed.
53 base::WeakPtrFactory<FileWriteHelper> weak_ptr_factory_; 53 base::WeakPtrFactory<FileWriteHelper> weak_ptr_factory_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(FileWriteHelper); 55 DISALLOW_COPY_AND_ASSIGN(FileWriteHelper);
56 }; 56 };
57 57
58 } // namespace gdata 58 } // namespace drive
59 59
60 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_WRITE_HELPER_H_ 60 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_WRITE_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/remove_operation.cc ('k') | chrome/browser/chromeos/drive/file_write_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698