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

Side by Side Diff: Source/core/loader/WorkerLoaderClientBridgeSyncHelper.cpp

Issue 1111173002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporating Review Comments Created 5 years, 7 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 24 matching lines...) Expand all
35 #include "core/workers/WorkerLoaderProxy.h" 35 #include "core/workers/WorkerLoaderProxy.h"
36 #include "platform/ThreadSafeFunctional.h" 36 #include "platform/ThreadSafeFunctional.h"
37 #include "platform/network/ResourceError.h" 37 #include "platform/network/ResourceError.h"
38 #include "platform/network/ResourceResponse.h" 38 #include "platform/network/ResourceResponse.h"
39 #include "public/platform/WebWaitableEvent.h" 39 #include "public/platform/WebWaitableEvent.h"
40 #include "wtf/MainThread.h" 40 #include "wtf/MainThread.h"
41 #include "wtf/OwnPtr.h" 41 #include "wtf/OwnPtr.h"
42 42
43 namespace blink { 43 namespace blink {
44 44
45 PassOwnPtr<WorkerLoaderClientBridgeSyncHelper> WorkerLoaderClientBridgeSyncHelpe r::create(ThreadableLoaderClient& client, PassOwnPtr<blink::WebWaitableEvent> ev ent) 45 PassOwnPtr<WorkerLoaderClientBridgeSyncHelper> WorkerLoaderClientBridgeSyncHelpe r::create(ThreadableLoaderClient& client, PassOwnPtr<WebWaitableEvent> event)
46 { 46 {
47 return adoptPtr(new WorkerLoaderClientBridgeSyncHelper(client, event)); 47 return adoptPtr(new WorkerLoaderClientBridgeSyncHelper(client, event));
48 } 48 }
49 49
50 WorkerLoaderClientBridgeSyncHelper::~WorkerLoaderClientBridgeSyncHelper() 50 WorkerLoaderClientBridgeSyncHelper::~WorkerLoaderClientBridgeSyncHelper()
51 { 51 {
52 MutexLocker lock(m_lock); 52 MutexLocker lock(m_lock);
53 ASSERT(isMainThread()); 53 ASSERT(isMainThread());
54 for (size_t i = 0; i < m_receivedData.size(); ++i) 54 for (size_t i = 0; i < m_receivedData.size(); ++i)
55 delete m_receivedData[i]; 55 delete m_receivedData[i];
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 void WorkerLoaderClientBridgeSyncHelper::didFailRedirectCheck() 141 void WorkerLoaderClientBridgeSyncHelper::didFailRedirectCheck()
142 { 142 {
143 MutexLocker lock(m_lock); 143 MutexLocker lock(m_lock);
144 ASSERT(isMainThread()); 144 ASSERT(isMainThread());
145 m_clientTasks.append(threadSafeBind(&ThreadableLoaderClient::didFailRedirect Check, AllowCrossThreadAccess(&m_client))); 145 m_clientTasks.append(threadSafeBind(&ThreadableLoaderClient::didFailRedirect Check, AllowCrossThreadAccess(&m_client)));
146 m_done = true; 146 m_done = true;
147 m_event->signal(); 147 m_event->signal();
148 } 148 }
149 149
150 WorkerLoaderClientBridgeSyncHelper::WorkerLoaderClientBridgeSyncHelper(Threadabl eLoaderClient& client, PassOwnPtr<blink::WebWaitableEvent> event) 150 WorkerLoaderClientBridgeSyncHelper::WorkerLoaderClientBridgeSyncHelper(Threadabl eLoaderClient& client, PassOwnPtr<WebWaitableEvent> event)
151 : m_done(false) 151 : m_done(false)
152 , m_client(client) 152 , m_client(client)
153 , m_event(event) 153 , m_event(event)
154 { 154 {
155 ASSERT(m_event); 155 ASSERT(m_event);
156 } 156 }
157 157
158 } // namespace blink 158 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/loader/WorkerLoaderClientBridgeSyncHelper.h ('k') | Source/core/loader/WorkerThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698