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

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

Issue 1738613002: Rename enums/functions that collide in chromium style in core/dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-3
Patch Set: get-names-4: Created 4 years, 10 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 m_mainThreadLoader->start(request); 142 m_mainThreadLoader->start(request);
143 } 143 }
144 144
145 void WorkerThreadableLoader::MainThreadBridgeBase::createLoaderInMainThread(cons t ThreadableLoaderOptions& options, const ResourceLoaderOptions& resourceLoaderO ptions) 145 void WorkerThreadableLoader::MainThreadBridgeBase::createLoaderInMainThread(cons t ThreadableLoaderOptions& options, const ResourceLoaderOptions& resourceLoaderO ptions)
146 { 146 {
147 m_loaderProxy->postTaskToLoader(createCrossThreadTask(&MainThreadBridgeBase: :mainThreadCreateLoader, this, options, resourceLoaderOptions)); 147 m_loaderProxy->postTaskToLoader(createCrossThreadTask(&MainThreadBridgeBase: :mainThreadCreateLoader, this, options, resourceLoaderOptions));
148 } 148 }
149 149
150 void WorkerThreadableLoader::MainThreadBridgeBase::startInMainThread(const Resou rceRequest& request, const WorkerGlobalScope& workerGlobalScope) 150 void WorkerThreadableLoader::MainThreadBridgeBase::startInMainThread(const Resou rceRequest& request, const WorkerGlobalScope& workerGlobalScope)
151 { 151 {
152 loaderProxy()->postTaskToLoader(createCrossThreadTask(&MainThreadBridgeBase: :mainThreadStart, this, request, workerGlobalScope.referrerPolicy(), workerGloba lScope.url().strippedForUseAsReferrer())); 152 loaderProxy()->postTaskToLoader(createCrossThreadTask(&MainThreadBridgeBase: :mainThreadStart, this, request, workerGlobalScope.getReferrerPolicy(), workerGl obalScope.url().strippedForUseAsReferrer()));
153 } 153 }
154 154
155 void WorkerThreadableLoader::MainThreadBridgeBase::mainThreadDestroy(ExecutionCo ntext* context) 155 void WorkerThreadableLoader::MainThreadBridgeBase::mainThreadDestroy(ExecutionCo ntext* context)
156 { 156 {
157 ASSERT(isMainThread()); 157 ASSERT(isMainThread());
158 ASSERT_UNUSED(context, context->isDocument()); 158 ASSERT_UNUSED(context, context->isDocument());
159 delete this; 159 delete this;
160 } 160 }
161 161
162 void WorkerThreadableLoader::MainThreadBridgeBase::destroy() 162 void WorkerThreadableLoader::MainThreadBridgeBase::destroy()
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 363
364 MutexLocker lock(m_lock); 364 MutexLocker lock(m_lock);
365 RELEASE_ASSERT(!m_done); 365 RELEASE_ASSERT(!m_done);
366 366
367 m_clientTasks.append(task); 367 m_clientTasks.append(task);
368 m_done = true; 368 m_done = true;
369 m_loaderDoneEvent->signal(); 369 m_loaderDoneEvent->signal();
370 } 370 }
371 371
372 } // namespace blink 372 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698