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 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1873 { | 1873 { |
1874 uint32_t type; | 1874 uint32_t type; |
1875 String name; | 1875 String name; |
1876 String url; | 1876 String url; |
1877 if (!doReadUint32(&type)) | 1877 if (!doReadUint32(&type)) |
1878 return false; | 1878 return false; |
1879 if (!readWebCoreString(&name)) | 1879 if (!readWebCoreString(&name)) |
1880 return false; | 1880 return false; |
1881 if (!readWebCoreString(&url)) | 1881 if (!readWebCoreString(&url)) |
1882 return false; | 1882 return false; |
1883 RefPtr<DOMFileSystem> fs = DOMFileSystem::create(getScriptExecutionConte
xt(), name, static_cast<WebCore::FileSystemType>(type), KURL(ParsedURLString, ur
l), AsyncFileSystem::create()); | 1883 RefPtr<DOMFileSystem> fs = DOMFileSystem::create(getScriptExecutionConte
xt(), name, static_cast<WebCore::FileSystemType>(type), KURL(ParsedURLString, ur
l)); |
1884 *value = toV8(fs.release(), v8::Handle<v8::Object>(), m_isolate); | 1884 *value = toV8(fs.release(), v8::Handle<v8::Object>(), m_isolate); |
1885 return true; | 1885 return true; |
1886 } | 1886 } |
1887 | 1887 |
1888 bool readFile(v8::Handle<v8::Value>* value) | 1888 bool readFile(v8::Handle<v8::Value>* value) |
1889 { | 1889 { |
1890 String path; | 1890 String path; |
1891 String url; | 1891 String url; |
1892 String type; | 1892 String type; |
1893 if (!readWebCoreString(&path)) | 1893 if (!readWebCoreString(&path)) |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2531 v8::V8::AdjustAmountOfExternalAllocatedMemory(-m_externallyAllocatedMemo
ry); | 2531 v8::V8::AdjustAmountOfExternalAllocatedMemory(-m_externallyAllocatedMemo
ry); |
2532 } | 2532 } |
2533 } | 2533 } |
2534 | 2534 |
2535 uint32_t SerializedScriptValue::wireFormatVersion() | 2535 uint32_t SerializedScriptValue::wireFormatVersion() |
2536 { | 2536 { |
2537 return WebCore::wireFormatVersion; | 2537 return WebCore::wireFormatVersion; |
2538 } | 2538 } |
2539 | 2539 |
2540 } // namespace WebCore | 2540 } // namespace WebCore |
OLD | NEW |