| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 { | 50 { |
| 51 if (!V8DOMFileSystem::hasInstance(value, v8::Isolate::GetCurrent())) | 51 if (!V8DOMFileSystem::hasInstance(value, v8::Isolate::GetCurrent())) |
| 52 return WebDOMFileSystem(); | 52 return WebDOMFileSystem(); |
| 53 v8::Handle<v8::Object> object = v8::Handle<v8::Object>::Cast(value); | 53 v8::Handle<v8::Object> object = v8::Handle<v8::Object>::Cast(value); |
| 54 DOMFileSystem* domFileSystem = V8DOMFileSystem::toNative(object); | 54 DOMFileSystem* domFileSystem = V8DOMFileSystem::toNative(object); |
| 55 ASSERT(domFileSystem); | 55 ASSERT(domFileSystem); |
| 56 return WebDOMFileSystem(domFileSystem); | 56 return WebDOMFileSystem(domFileSystem); |
| 57 } | 57 } |
| 58 | 58 |
| 59 WebDOMFileSystem WebDOMFileSystem::create( | 59 WebDOMFileSystem WebDOMFileSystem::create( |
| 60 WebFrame* frame, | 60 WebLocalFrame* frame, |
| 61 WebFileSystemType type, | 61 WebFileSystemType type, |
| 62 const WebString& name, | 62 const WebString& name, |
| 63 const WebURL& rootURL, | 63 const WebURL& rootURL, |
| 64 SerializableType serializableType) | 64 SerializableType serializableType) |
| 65 { | 65 { |
| 66 ASSERT(frame && toWebFrameImpl(frame)->frame()); | 66 ASSERT(frame && toWebFrameImpl(frame)->frame()); |
| 67 RefPtrWillBeRawPtr<DOMFileSystem> domFileSystem = DOMFileSystem::create(toWe
bFrameImpl(frame)->frame()->document(), name, static_cast<WebCore::FileSystemTyp
e>(type), rootURL); | 67 RefPtrWillBeRawPtr<DOMFileSystem> domFileSystem = DOMFileSystem::create(toWe
bFrameImpl(frame)->frame()->document(), name, static_cast<WebCore::FileSystemTyp
e>(type), rootURL); |
| 68 if (serializableType == SerializableTypeSerializable) | 68 if (serializableType == SerializableTypeSerializable) |
| 69 domFileSystem->makeClonable(); | 69 domFileSystem->makeClonable(); |
| 70 return WebDOMFileSystem(domFileSystem); | 70 return WebDOMFileSystem(domFileSystem); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 { | 134 { |
| 135 } | 135 } |
| 136 | 136 |
| 137 WebDOMFileSystem& WebDOMFileSystem::operator=(const PassRefPtrWillBeRawPtr<WebCo
re::DOMFileSystem>& domFileSystem) | 137 WebDOMFileSystem& WebDOMFileSystem::operator=(const PassRefPtrWillBeRawPtr<WebCo
re::DOMFileSystem>& domFileSystem) |
| 138 { | 138 { |
| 139 m_private = domFileSystem; | 139 m_private = domFileSystem; |
| 140 return *this; | 140 return *this; |
| 141 } | 141 } |
| 142 | 142 |
| 143 } // namespace blink | 143 } // namespace blink |
| OLD | NEW |