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

Side by Side Diff: content/renderer/pepper/pepper_directory_reader_host.cc

Issue 13508005: Allow RequestOSFileHandle if an app has unlimited storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert most of patch set 2 Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "content/renderer/pepper/pepper_directory_reader_host.h" 5 #include "content/renderer/pepper/pepper_directory_reader_host.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/public/renderer/renderer_ppapi_host.h" 10 #include "content/public/renderer/renderer_ppapi_host.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void DidFail(base::PlatformFileError error) OVERRIDE { 87 virtual void DidFail(base::PlatformFileError error) OVERRIDE {
88 callback_.Run(PepperDirectoryReaderHost::Entries(), 88 callback_.Run(PepperDirectoryReaderHost::Entries(),
89 false, 89 false,
90 ppapi::PlatformFileErrorToPepperError(error)); 90 ppapi::PlatformFileErrorToPepperError(error));
91 } 91 }
92 92
93 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE { 93 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE {
94 NOTREACHED(); 94 NOTREACHED();
95 } 95 }
96 96
97 virtual void DidOpenFile(base::PlatformFile file) OVERRIDE { 97 virtual void DidOpenFile(base::PlatformFile file,
98 quota::QuotaLimitType quota_policy) OVERRIDE {
98 NOTREACHED(); 99 NOTREACHED();
99 } 100 }
100 101
101 private: 102 private:
102 OnReadDirectoryCallback callback_; 103 OnReadDirectoryCallback callback_;
103 }; 104 };
104 105
105 } // namespace 106 } // namespace
106 107
107 PepperDirectoryReaderHost::PepperDirectoryReaderHost( 108 PepperDirectoryReaderHost::PepperDirectoryReaderHost(
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 file_types)); 209 file_types));
209 } 210 }
210 211
211 PepperDirectoryReaderHost::EntryData::EntryData() { 212 PepperDirectoryReaderHost::EntryData::EntryData() {
212 } 213 }
213 214
214 PepperDirectoryReaderHost::EntryData::~EntryData() { 215 PepperDirectoryReaderHost::EntryData::~EntryData() {
215 } 216 }
216 217
217 } // namespace content 218 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698