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

Unified Diff: third_party/WebKit/WebCore/loader/ThreadableLoader.cpp

Issue 20076: WebKit merge 40500:40539 [WebKit side] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/WebCore/loader/ThreadableLoader.cpp
===================================================================
--- third_party/WebKit/WebCore/loader/ThreadableLoader.cpp (revision 9118)
+++ third_party/WebKit/WebCore/loader/ThreadableLoader.cpp (working copy)
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, Google Inc. All rights reserved.
+ * Copyright (C) 2009 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -36,6 +36,8 @@
#include "Frame.h"
#include "FrameLoader.h"
#include "ScriptExecutionContext.h"
+#include "WorkerContext.h"
+#include "WorkerThreadableLoader.h"
namespace WebCore {
@@ -43,8 +45,13 @@
{
ASSERT(client);
ASSERT(context);
+
+#if ENABLE(WORKERS)
+ if (context->isWorkerContext())
+ return WorkerThreadableLoader::create(static_cast<WorkerContext*>(context), client, request, callbacksSetting, contentSniff);
+#endif // ENABLE(WORKERS)
+
ASSERT(context->isDocument());
-
return DocumentThreadableLoader::create(static_cast<Document*>(context), client, request, callbacksSetting, contentSniff);
}
« no previous file with comments | « third_party/WebKit/WebCore/loader/ThreadableLoader.h ('k') | third_party/WebKit/WebCore/loader/ThreadableLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698