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

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

Issue 343073003: Files.app: Provide detailed change information on onDirectoryChanged event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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_REMOVE_OPERATION_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_REMOVE_OPERATION_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_REMOVE_OPERATION_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_REMOVE_OPERATION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // 46 //
47 // |callback| must not be null. 47 // |callback| must not be null.
48 void Remove(const base::FilePath& path, 48 void Remove(const base::FilePath& path,
49 bool is_recursive, 49 bool is_recursive,
50 const FileOperationCallback& callback); 50 const FileOperationCallback& callback);
51 51
52 private: 52 private:
53 // Part of Remove(). Called after UpdateLocalState() completion. 53 // Part of Remove(). Called after UpdateLocalState() completion.
54 void RemoveAfterUpdateLocalState(const FileOperationCallback& callback, 54 void RemoveAfterUpdateLocalState(const FileOperationCallback& callback,
55 const std::string* local_id, 55 const std::string* local_id,
56 const ResourceEntry* entry,
56 const base::FilePath* changed_directory_path, 57 const base::FilePath* changed_directory_path,
57 FileError error); 58 FileError error);
58 59
59 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 60 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
60 OperationObserver* observer_; 61 OperationObserver* observer_;
61 internal::ResourceMetadata* metadata_; 62 internal::ResourceMetadata* metadata_;
62 internal::FileCache* cache_; 63 internal::FileCache* cache_;
63 64
64 // Note: This should remain the last member so it'll be destroyed and 65 // Note: This should remain the last member so it'll be destroyed and
65 // invalidate the weak pointers before any other members are destroyed. 66 // invalidate the weak pointers before any other members are destroyed.
66 base::WeakPtrFactory<RemoveOperation> weak_ptr_factory_; 67 base::WeakPtrFactory<RemoveOperation> weak_ptr_factory_;
67 DISALLOW_COPY_AND_ASSIGN(RemoveOperation); 68 DISALLOW_COPY_AND_ASSIGN(RemoveOperation);
68 }; 69 };
69 70
70 } // namespace file_system 71 } // namespace file_system
71 } // namespace drive 72 } // namespace drive
72 73
73 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_REMOVE_OPERATION_H_ 74 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_REMOVE_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698