Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: third_party/WebKit/Source/core/loader/WorkerThreadableLoader.cpp

Issue 1818233003: Merge WTF::initializeMainThread into WTF::initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698