Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

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

Issue 13726024: Refactor FileSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/shared_impl/ppapi_preferences.h" 10 #include "ppapi/shared_impl/ppapi_preferences.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 return false; 148 return false;
149 } 149 }
150 150
151 bool MockPluginDelegate::AsyncOpenFileSystemURL( 151 bool MockPluginDelegate::AsyncOpenFileSystemURL(
152 const GURL& path, 152 const GURL& path,
153 int flags, 153 int flags,
154 const AsyncOpenFileSystemURLCallback& callback) { 154 const AsyncOpenFileSystemURLCallback& callback) {
155 return false; 155 return false;
156 } 156 }
157 157
158 bool MockPluginDelegate::IsFileSystemOpened(
159 PP_Instance instance,
160 PP_Resource resource) const {
161 return false;
162 }
163
164 PP_FileSystemType MockPluginDelegate::GetFileSystemType(
165 PP_Instance instance,
166 PP_Resource resource) const {
167 return PP_FILESYSTEMTYPE_INVALID;
168 }
169
170 std::string MockPluginDelegate::GetFileSystemRootUrl(
171 PP_Instance instance,
172 PP_Resource resource) const {
173 return "";
yzshen1 2013/04/08 21:05:16 nit: it is preferred to use std::string().
victorhsieh 2013/04/08 23:44:38 Done.
174 }
175
158 bool MockPluginDelegate::OpenFileSystem( 176 bool MockPluginDelegate::OpenFileSystem(
159 const GURL& origin_url, 177 const GURL& origin_url,
160 fileapi::FileSystemType type, 178 fileapi::FileSystemType type,
161 long long size, 179 long long size,
162 fileapi::FileSystemCallbackDispatcher* dispatcher) { 180 fileapi::FileSystemCallbackDispatcher* dispatcher) {
163 return false; 181 return false;
164 } 182 }
165 183
166 bool MockPluginDelegate::MakeDirectory( 184 bool MockPluginDelegate::MakeDirectory(
167 const GURL& path, 185 const GURL& path,
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 403
386 IPC::PlatformFileForTransit MockPluginDelegate::ShareHandleWithRemote( 404 IPC::PlatformFileForTransit MockPluginDelegate::ShareHandleWithRemote(
387 base::PlatformFile handle, 405 base::PlatformFile handle,
388 base::ProcessId target_process_id, 406 base::ProcessId target_process_id,
389 bool should_close_source) const { 407 bool should_close_source) const {
390 return IPC::InvalidPlatformFileForTransit(); 408 return IPC::InvalidPlatformFileForTransit();
391 } 409 }
392 410
393 } // namespace ppapi 411 } // namespace ppapi
394 } // namespace webkit 412 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698