| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 , m_type(type) | 64 , m_type(type) |
| 65 , m_filesystemRootURL(rootURL) | 65 , m_filesystemRootURL(rootURL) |
| 66 , m_clonable(false) | 66 , m_clonable(false) |
| 67 { | 67 { |
| 68 } | 68 } |
| 69 | 69 |
| 70 DOMFileSystemBase::~DOMFileSystemBase() | 70 DOMFileSystemBase::~DOMFileSystemBase() |
| 71 { | 71 { |
| 72 } | 72 } |
| 73 | 73 |
| 74 blink::WebFileSystem* DOMFileSystemBase::fileSystem() const | 74 WebFileSystem* DOMFileSystemBase::fileSystem() const |
| 75 { | 75 { |
| 76 blink::Platform* platform = blink::Platform::current(); | 76 Platform* platform = Platform::current(); |
| 77 if (!platform) | 77 if (!platform) |
| 78 return nullptr; | 78 return nullptr; |
| 79 return platform->fileSystem(); | 79 return platform->fileSystem(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 SecurityOrigin* DOMFileSystemBase::securityOrigin() const | 82 SecurityOrigin* DOMFileSystemBase::securityOrigin() const |
| 83 { | 83 { |
| 84 return m_context->securityOrigin(); | 84 return m_context->securityOrigin(); |
| 85 } | 85 } |
| 86 | 86 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 } | 380 } |
| 381 | 381 |
| 382 bool DOMFileSystemBase::waitForAdditionalResult(int callbacksId) | 382 bool DOMFileSystemBase::waitForAdditionalResult(int callbacksId) |
| 383 { | 383 { |
| 384 if (!fileSystem()) | 384 if (!fileSystem()) |
| 385 return false; | 385 return false; |
| 386 return fileSystem()->waitForAdditionalResult(callbacksId); | 386 return fileSystem()->waitForAdditionalResult(callbacksId); |
| 387 } | 387 } |
| 388 | 388 |
| 389 } // namespace blink | 389 } // namespace blink |
| OLD | NEW |