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

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

Issue 389893002: [fsp] Add support for creating files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const ReadChunkReceivedCallback& callback) OVERRIDE; 59 const ReadChunkReceivedCallback& callback) OVERRIDE;
60 virtual void CreateDirectory( 60 virtual void CreateDirectory(
61 const base::FilePath& directory_path, 61 const base::FilePath& directory_path,
62 bool exclusive, 62 bool exclusive,
63 bool recursive, 63 bool recursive,
64 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 64 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
65 virtual void DeleteEntry( 65 virtual void DeleteEntry(
66 const base::FilePath& entry_path, 66 const base::FilePath& entry_path,
67 bool recursive, 67 bool recursive,
68 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 68 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
69 virtual void CreateFile(
70 const base::FilePath& file_path,
71 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
69 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; 72 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE;
70 virtual RequestManager* GetRequestManager() OVERRIDE; 73 virtual RequestManager* GetRequestManager() OVERRIDE;
71 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() OVERRIDE; 74 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() OVERRIDE;
72 75
73 private: 76 private:
74 Profile* profile_; // Not owned. 77 Profile* profile_; // Not owned.
75 extensions::EventRouter* event_router_; // Not owned. May be NULL. 78 extensions::EventRouter* event_router_; // Not owned. May be NULL.
76 ProvidedFileSystemInfo file_system_info_; 79 ProvidedFileSystemInfo file_system_info_;
77 scoped_ptr<NotificationManagerInterface> notification_manager_; 80 scoped_ptr<NotificationManagerInterface> notification_manager_;
78 RequestManager request_manager_; 81 RequestManager request_manager_;
79 82
80 base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_; 83 base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_;
81 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); 84 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem);
82 }; 85 };
83 86
84 } // namespace file_system_provider 87 } // namespace file_system_provider
85 } // namespace chromeos 88 } // namespace chromeos
86 89
87 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ 90 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698