| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 DraggedIsolatedFileSystem::~DraggedIsolatedFileSystem() | 42 DraggedIsolatedFileSystem::~DraggedIsolatedFileSystem() |
| 43 { | 43 { |
| 44 } | 44 } |
| 45 | 45 |
| 46 DOMFileSystem* DraggedIsolatedFileSystem::getDOMFileSystem(ExecutionContext* exe
cutionContext) | 46 DOMFileSystem* DraggedIsolatedFileSystem::getDOMFileSystem(ExecutionContext* exe
cutionContext) |
| 47 { | 47 { |
| 48 ASSERT(!m_filesystemId.isEmpty()); | 48 ASSERT(!m_filesystemId.isEmpty()); |
| 49 if (!m_filesystem) { | 49 if (!m_filesystem) |
| 50 ASSERT(executionContext); | |
| 51 m_filesystem = DOMFileSystem::createIsolatedFileSystem(executionContext,
m_filesystemId); | 50 m_filesystem = DOMFileSystem::createIsolatedFileSystem(executionContext,
m_filesystemId); |
| 52 } | |
| 53 return m_filesystem.get(); | 51 return m_filesystem.get(); |
| 54 } | 52 } |
| 55 | 53 |
| 56 // static | 54 // static |
| 57 const char* DraggedIsolatedFileSystem::supplementName() | 55 const char* DraggedIsolatedFileSystem::supplementName() |
| 58 { | 56 { |
| 59 ASSERT(isMainThread()); | 57 ASSERT(isMainThread()); |
| 60 return "DraggedIsolatedFileSystem"; | 58 return "DraggedIsolatedFileSystem"; |
| 61 } | 59 } |
| 62 | 60 |
| 63 DraggedIsolatedFileSystem::DraggedIsolatedFileSystem(const String& filesystemId) | 61 DraggedIsolatedFileSystem::DraggedIsolatedFileSystem(const String& filesystemId) |
| 64 : m_filesystemId(filesystemId) | 62 : m_filesystemId(filesystemId) |
| 65 { | 63 { |
| 66 } | 64 } |
| 67 | 65 |
| 68 } // namespace WebCore | 66 } // namespace WebCore |
| OLD | NEW |