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

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.cc

Issue 7433006: Pepper quota support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/plugins/ppapi/mock_plugin_delegate.h" 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h"
6 6
7 #include "base/message_loop_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/shared_impl/ppapi_preferences.h" 9 #include "ppapi/shared_impl/ppapi_preferences.h"
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 fileapi::FileSystemCallbackDispatcher* dispatcher) { 129 fileapi::FileSystemCallbackDispatcher* dispatcher) {
130 return false; 130 return false;
131 } 131 }
132 132
133 bool MockPluginDelegate::ReadDirectory( 133 bool MockPluginDelegate::ReadDirectory(
134 const GURL& directory_path, 134 const GURL& directory_path,
135 fileapi::FileSystemCallbackDispatcher* dispatcher) { 135 fileapi::FileSystemCallbackDispatcher* dispatcher) {
136 return false; 136 return false;
137 } 137 }
138 138
139 bool MockPluginDelegate::CanWrite(
140 const GURL& origin, StorageType type, int64 growth,
141 QuotaStatusCallback* callback) {
142 return false;
143 }
144
145 void MockPluginDelegate::NotifyStorageModified(
146 quota::QuotaClient::ID client_id,
147 const GURL& origin,
148 quota::StorageType type,
149 int64 delta) {
150 }
151
139 base::PlatformFileError MockPluginDelegate::OpenFile( 152 base::PlatformFileError MockPluginDelegate::OpenFile(
140 const PepperFilePath& path, 153 const PepperFilePath& path,
141 int flags, 154 int flags,
142 base::PlatformFile* file) { 155 base::PlatformFile* file) {
143 return base::PLATFORM_FILE_ERROR_FAILED; 156 return base::PLATFORM_FILE_ERROR_FAILED;
144 } 157 }
145 158
146 base::PlatformFileError MockPluginDelegate::RenameFile( 159 base::PlatformFileError MockPluginDelegate::RenameFile(
147 const PepperFilePath& from_path, 160 const PepperFilePath& from_path,
148 const PepperFilePath& to_path) { 161 const PepperFilePath& to_path) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 uint32_t size) { 266 uint32_t size) {
254 return NULL; 267 return NULL;
255 } 268 }
256 269
257 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { 270 ::ppapi::Preferences MockPluginDelegate::GetPreferences() {
258 return ::ppapi::Preferences(); 271 return ::ppapi::Preferences();
259 } 272 }
260 273
261 } // namespace ppapi 274 } // namespace ppapi
262 } // namespace webkit 275 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698