| OLD | NEW |
| 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/fileapi/file_system_test_helper.h" | 5 #include "webkit/fileapi/file_system_test_helper.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 : unlimited_quota_(unlimited_quota) {} | 25 : unlimited_quota_(unlimited_quota) {} |
| 26 | 26 |
| 27 virtual bool IsStorageProtected(const GURL& origin) { | 27 virtual bool IsStorageProtected(const GURL& origin) { |
| 28 return false; | 28 return false; |
| 29 } | 29 } |
| 30 | 30 |
| 31 virtual bool IsStorageUnlimited(const GURL& origin) { | 31 virtual bool IsStorageUnlimited(const GURL& origin) { |
| 32 return unlimited_quota_; | 32 return unlimited_quota_; |
| 33 } | 33 } |
| 34 | 34 |
| 35 virtual bool IsStorageSessionOnly(const GURL& origin) { |
| 36 return false; |
| 37 } |
| 38 |
| 35 virtual bool IsFileHandler(const std::string& extension_id) { | 39 virtual bool IsFileHandler(const std::string& extension_id) { |
| 36 return true; | 40 return true; |
| 37 } | 41 } |
| 38 | 42 |
| 39 private: | 43 private: |
| 40 bool unlimited_quota_; | 44 bool unlimited_quota_; |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 } // anonymous namespace | 47 } // anonymous namespace |
| 44 | 48 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 void FileSystemTestOriginHelper::InitializeOperationContext( | 206 void FileSystemTestOriginHelper::InitializeOperationContext( |
| 203 FileSystemOperationContext* context) { | 207 FileSystemOperationContext* context) { |
| 204 DCHECK(context); | 208 DCHECK(context); |
| 205 context->set_src_origin_url(origin_); | 209 context->set_src_origin_url(origin_); |
| 206 context->set_src_type(type_); | 210 context->set_src_type(type_); |
| 207 context->set_dest_origin_url(origin_); | 211 context->set_dest_origin_url(origin_); |
| 208 context->set_dest_type(type_); | 212 context->set_dest_type(type_); |
| 209 } | 213 } |
| 210 | 214 |
| 211 } // namespace fileapi | 215 } // namespace fileapi |
| OLD | NEW |