| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 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 28 matching lines...) Expand all Loading... |
| 39 #include "core/workers/WorkerThread.h" | 39 #include "core/workers/WorkerThread.h" |
| 40 #include "platform/ThreadSafeFunctional.h" | 40 #include "platform/ThreadSafeFunctional.h" |
| 41 #include "platform/WaitableEvent.h" | 41 #include "platform/WaitableEvent.h" |
| 42 #include "platform/heap/SafePoint.h" | 42 #include "platform/heap/SafePoint.h" |
| 43 #include "platform/network/ResourceError.h" | 43 #include "platform/network/ResourceError.h" |
| 44 #include "platform/network/ResourceRequest.h" | 44 #include "platform/network/ResourceRequest.h" |
| 45 #include "platform/network/ResourceResponse.h" | 45 #include "platform/network/ResourceResponse.h" |
| 46 #include "platform/network/ResourceTimingInfo.h" | 46 #include "platform/network/ResourceTimingInfo.h" |
| 47 #include "platform/weborigin/SecurityPolicy.h" | 47 #include "platform/weborigin/SecurityPolicy.h" |
| 48 #include "public/platform/Platform.h" | 48 #include "public/platform/Platform.h" |
| 49 #include "wtf/MainThread.h" | |
| 50 #include "wtf/OwnPtr.h" | 49 #include "wtf/OwnPtr.h" |
| 51 #include "wtf/Vector.h" | 50 #include "wtf/Vector.h" |
| 52 | 51 |
| 53 namespace blink { | 52 namespace blink { |
| 54 | 53 |
| 55 static PassOwnPtr<Vector<char>> createVectorFromMemoryRegion(const char* data, u
nsigned dataLength) | 54 static PassOwnPtr<Vector<char>> createVectorFromMemoryRegion(const char* data, u
nsigned dataLength) |
| 56 { | 55 { |
| 57 OwnPtr<Vector<char>> buffer = adoptPtr(new Vector<char>(dataLength)); | 56 OwnPtr<Vector<char>> buffer = adoptPtr(new Vector<char>(dataLength)); |
| 58 memcpy(buffer->data(), data, dataLength); | 57 memcpy(buffer->data(), data, dataLength); |
| 59 return buffer.release(); | 58 return buffer.release(); |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 362 |
| 364 MutexLocker lock(m_lock); | 363 MutexLocker lock(m_lock); |
| 365 RELEASE_ASSERT(!m_done); | 364 RELEASE_ASSERT(!m_done); |
| 366 | 365 |
| 367 m_clientTasks.append(task); | 366 m_clientTasks.append(task); |
| 368 m_done = true; | 367 m_done = true; |
| 369 m_loaderDoneEvent->signal(); | 368 m_loaderDoneEvent->signal(); |
| 370 } | 369 } |
| 371 | 370 |
| 372 } // namespace blink | 371 } // namespace blink |
| OLD | NEW |