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

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

Issue 379743003: [fsp] Remove the create flag from the file opening operation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FAKE_PROVIDED_FILE_SYSTEM_H _ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H _
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 30 matching lines...) Expand all
41 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 41 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
42 virtual void GetMetadata( 42 virtual void GetMetadata(
43 const base::FilePath& entry_path, 43 const base::FilePath& entry_path,
44 const ProvidedFileSystemInterface::GetMetadataCallback& callback) 44 const ProvidedFileSystemInterface::GetMetadataCallback& callback)
45 OVERRIDE; 45 OVERRIDE;
46 virtual void ReadDirectory( 46 virtual void ReadDirectory(
47 const base::FilePath& directory_path, 47 const base::FilePath& directory_path,
48 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; 48 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE;
49 virtual void OpenFile(const base::FilePath& file_path, 49 virtual void OpenFile(const base::FilePath& file_path,
50 OpenFileMode mode, 50 OpenFileMode mode,
51 bool create,
52 const OpenFileCallback& callback) OVERRIDE; 51 const OpenFileCallback& callback) OVERRIDE;
53 virtual void CloseFile( 52 virtual void CloseFile(
54 int file_handle, 53 int file_handle,
55 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 54 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
56 virtual void ReadFile(int file_handle, 55 virtual void ReadFile(int file_handle,
57 net::IOBuffer* buffer, 56 net::IOBuffer* buffer,
58 int64 offset, 57 int64 offset,
59 int length, 58 int length,
60 const ReadChunkReceivedCallback& callback) OVERRIDE; 59 const ReadChunkReceivedCallback& callback) OVERRIDE;
61 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; 60 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE;
(...skipping 14 matching lines...) Expand all
76 int last_file_handle_; 75 int last_file_handle_;
77 76
78 base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_; 77 base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_;
79 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); 78 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem);
80 }; 79 };
81 80
82 } // namespace file_system_provider 81 } // namespace file_system_provider
83 } // namespace chromeos 82 } // namespace chromeos
84 83
85 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_ 84 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE M_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698