| 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 2163 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2174     { | 2174     { | 
| 2175         uint32_t type; | 2175         uint32_t type; | 
| 2176         String name; | 2176         String name; | 
| 2177         String url; | 2177         String url; | 
| 2178         if (!doReadUint32(&type)) | 2178         if (!doReadUint32(&type)) | 
| 2179             return false; | 2179             return false; | 
| 2180         if (!readWebCoreString(&name)) | 2180         if (!readWebCoreString(&name)) | 
| 2181             return false; | 2181             return false; | 
| 2182         if (!readWebCoreString(&url)) | 2182         if (!readWebCoreString(&url)) | 
| 2183             return false; | 2183             return false; | 
| 2184         RefPtrWillBeRawPtr<DOMFileSystem> fs = DOMFileSystem::create(m_scriptSta
      te->executionContext(), name, static_cast<WebCore::FileSystemType>(type), KURL(P
      arsedURLString, url)); | 2184         DOMFileSystem* fs = DOMFileSystem::create(m_scriptState->executionContex
      t(), name, static_cast<WebCore::FileSystemType>(type), KURL(ParsedURLString, url
      )); | 
| 2185         *value = toV8(fs.release(), m_scriptState->context()->Global(), isolate(
      )); | 2185         *value = toV8(fs, m_scriptState->context()->Global(), isolate()); | 
| 2186         return true; | 2186         return true; | 
| 2187     } | 2187     } | 
| 2188 | 2188 | 
| 2189     bool readFile(v8::Handle<v8::Value>* value, bool isIndexed) | 2189     bool readFile(v8::Handle<v8::Value>* value, bool isIndexed) | 
| 2190     { | 2190     { | 
| 2191         RefPtrWillBeRawPtr<File> file; | 2191         RefPtrWillBeRawPtr<File> file; | 
| 2192         if (isIndexed) { | 2192         if (isIndexed) { | 
| 2193             if (m_version < 6) | 2193             if (m_version < 6) | 
| 2194                 return false; | 2194                 return false; | 
| 2195             file = readFileIndexHelper(); | 2195             file = readFileIndexHelper(); | 
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3049     // If the allocated memory was not registered before, then this class is lik
      ely | 3049     // If the allocated memory was not registered before, then this class is lik
      ely | 
| 3050     // used in a context other then Worker's onmessage environment and the prese
      nce of | 3050     // used in a context other then Worker's onmessage environment and the prese
      nce of | 
| 3051     // current v8 context is not guaranteed. Avoid calling v8 then. | 3051     // current v8 context is not guaranteed. Avoid calling v8 then. | 
| 3052     if (m_externallyAllocatedMemory) { | 3052     if (m_externallyAllocatedMemory) { | 
| 3053         ASSERT(v8::Isolate::GetCurrent()); | 3053         ASSERT(v8::Isolate::GetCurrent()); | 
| 3054         v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(-m_exte
      rnallyAllocatedMemory); | 3054         v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(-m_exte
      rnallyAllocatedMemory); | 
| 3055     } | 3055     } | 
| 3056 } | 3056 } | 
| 3057 | 3057 | 
| 3058 } // namespace WebCore | 3058 } // namespace WebCore | 
| OLD | NEW | 
|---|