| 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 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1864     { | 1864     { | 
| 1865         uint32_t type; | 1865         uint32_t type; | 
| 1866         String name; | 1866         String name; | 
| 1867         String url; | 1867         String url; | 
| 1868         if (!doReadUint32(&type)) | 1868         if (!doReadUint32(&type)) | 
| 1869             return false; | 1869             return false; | 
| 1870         if (!readWebCoreString(&name)) | 1870         if (!readWebCoreString(&name)) | 
| 1871             return false; | 1871             return false; | 
| 1872         if (!readWebCoreString(&url)) | 1872         if (!readWebCoreString(&url)) | 
| 1873             return false; | 1873             return false; | 
| 1874         RefPtr<DOMFileSystem> fs = DOMFileSystem::create(currentExecutionContext
      (m_isolate), name, static_cast<WebCore::FileSystemType>(type), KURL(ParsedURLStr
      ing, url)); | 1874         RefPtrWillBeRawPtr<DOMFileSystem> fs = DOMFileSystem::create(currentExec
      utionContext(m_isolate), name, static_cast<WebCore::FileSystemType>(type), KURL(
      ParsedURLString, url)); | 
| 1875         *value = toV8(fs.release(), v8::Handle<v8::Object>(), m_isolate); | 1875         *value = toV8(fs.release(), v8::Handle<v8::Object>(), m_isolate); | 
| 1876         return true; | 1876         return true; | 
| 1877     } | 1877     } | 
| 1878 | 1878 | 
| 1879     bool readFile(v8::Handle<v8::Value>* value) | 1879     bool readFile(v8::Handle<v8::Value>* value) | 
| 1880     { | 1880     { | 
| 1881         RefPtrWillBeRawPtr<File> file = doReadFileHelper(); | 1881         RefPtrWillBeRawPtr<File> file = doReadFileHelper(); | 
| 1882         if (!file) | 1882         if (!file) | 
| 1883             return false; | 1883             return false; | 
| 1884         *value = toV8(file.release(), v8::Handle<v8::Object>(), m_isolate); | 1884         *value = toV8(file.release(), v8::Handle<v8::Object>(), m_isolate); | 
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2504     // If the allocated memory was not registered before, then this class is lik
      ely | 2504     // If the allocated memory was not registered before, then this class is lik
      ely | 
| 2505     // used in a context other then Worker's onmessage environment and the prese
      nce of | 2505     // used in a context other then Worker's onmessage environment and the prese
      nce of | 
| 2506     // current v8 context is not guaranteed. Avoid calling v8 then. | 2506     // current v8 context is not guaranteed. Avoid calling v8 then. | 
| 2507     if (m_externallyAllocatedMemory) { | 2507     if (m_externallyAllocatedMemory) { | 
| 2508         ASSERT(v8::Isolate::GetCurrent()); | 2508         ASSERT(v8::Isolate::GetCurrent()); | 
| 2509         v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(-m_exte
      rnallyAllocatedMemory); | 2509         v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(-m_exte
      rnallyAllocatedMemory); | 
| 2510     } | 2510     } | 
| 2511 } | 2511 } | 
| 2512 | 2512 | 
| 2513 } // namespace WebCore | 2513 } // namespace WebCore | 
| OLD | NEW | 
|---|