OLD | NEW |
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 return false; | 131 return false; |
132 } | 132 } |
133 | 133 |
134 bool MockPluginDelegate::AsyncOpenFile(const FilePath& path, | 134 bool MockPluginDelegate::AsyncOpenFile(const FilePath& path, |
135 int flags, | 135 int flags, |
136 const AsyncOpenFileCallback& callback) { | 136 const AsyncOpenFileCallback& callback) { |
137 return false; | 137 return false; |
138 } | 138 } |
139 | 139 |
140 bool MockPluginDelegate::AsyncOpenFileSystemURL( | 140 bool MockPluginDelegate::AsyncOpenFileSystemURL( |
141 const GURL& path, int flags, const AsyncOpenFileCallback& callback) { | 141 const GURL& path, |
| 142 int flags, |
| 143 const AsyncOpenFileSystemURLCallback& callback) { |
142 return false; | 144 return false; |
143 } | 145 } |
144 | 146 |
| 147 base::Callback<void (base::PlatformFileError)> |
| 148 MockPluginDelegate::GetCloseFileSystemURLCallback(const GURL& path) { |
| 149 return base::Callback<void (base::PlatformFileError)>(); |
| 150 } |
| 151 |
145 bool MockPluginDelegate::OpenFileSystem( | 152 bool MockPluginDelegate::OpenFileSystem( |
146 const GURL& url, | 153 const GURL& url, |
147 fileapi::FileSystemType type, | 154 fileapi::FileSystemType type, |
148 long long size, | 155 long long size, |
149 fileapi::FileSystemCallbackDispatcher* dispatcher) { | 156 fileapi::FileSystemCallbackDispatcher* dispatcher) { |
150 return false; | 157 return false; |
151 } | 158 } |
152 | 159 |
153 bool MockPluginDelegate::MakeDirectory( | 160 bool MockPluginDelegate::MakeDirectory( |
154 const GURL& path, | 161 const GURL& path, |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 MockPluginDelegate::CreateClipboardClient() const { | 461 MockPluginDelegate::CreateClipboardClient() const { |
455 return NULL; | 462 return NULL; |
456 } | 463 } |
457 | 464 |
458 std::string MockPluginDelegate::GetDeviceID() { | 465 std::string MockPluginDelegate::GetDeviceID() { |
459 return std::string(); | 466 return std::string(); |
460 } | 467 } |
461 | 468 |
462 } // namespace ppapi | 469 } // namespace ppapi |
463 } // namespace webkit | 470 } // namespace webkit |
OLD | NEW |