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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_file_system.h

Issue 417983002: [fsp] Add support for truncating files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. 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 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_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h" 9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h"
10 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h" 10 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const base::FilePath& file_path, 70 const base::FilePath& file_path,
71 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 71 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
72 virtual void CopyEntry( 72 virtual void CopyEntry(
73 const base::FilePath& source_path, 73 const base::FilePath& source_path,
74 const base::FilePath& target_path, 74 const base::FilePath& target_path,
75 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 75 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
76 virtual void MoveEntry( 76 virtual void MoveEntry(
77 const base::FilePath& source_path, 77 const base::FilePath& source_path,
78 const base::FilePath& target_path, 78 const base::FilePath& target_path,
79 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 79 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
80 virtual void Truncate(
81 const base::FilePath& file_path,
82 int64 length,
83 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
80 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; 84 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE;
81 virtual RequestManager* GetRequestManager() OVERRIDE; 85 virtual RequestManager* GetRequestManager() OVERRIDE;
82 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() OVERRIDE; 86 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() OVERRIDE;
83 87
84 private: 88 private:
85 Profile* profile_; // Not owned. 89 Profile* profile_; // Not owned.
86 extensions::EventRouter* event_router_; // Not owned. May be NULL. 90 extensions::EventRouter* event_router_; // Not owned. May be NULL.
87 ProvidedFileSystemInfo file_system_info_; 91 ProvidedFileSystemInfo file_system_info_;
88 scoped_ptr<NotificationManagerInterface> notification_manager_; 92 scoped_ptr<NotificationManagerInterface> notification_manager_;
89 RequestManager request_manager_; 93 RequestManager request_manager_;
90 94
91 base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_; 95 base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_;
92 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); 96 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem);
93 }; 97 };
94 98
95 } // namespace file_system_provider 99 } // namespace file_system_provider
96 } // namespace chromeos 100 } // namespace chromeos
97 101
98 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ 102 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698