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

Side by Side Diff: Source/web/WorkerGlobalScopeProxyProviderImpl.cpp

Issue 564713002: Web SQL: Remove more worker-related code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Windows build Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebSharedWorkerImpl.cpp ('k') | Source/web/WorkerPermissionClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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/inspector/ScriptCallStack.h" 35 #include "core/inspector/ScriptCallStack.h"
36 #include "core/workers/Worker.h" 36 #include "core/workers/Worker.h"
37 #include "core/workers/WorkerClients.h" 37 #include "core/workers/WorkerClients.h"
38 #include "core/workers/WorkerMessagingProxy.h" 38 #include "core/workers/WorkerMessagingProxy.h"
39 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" 39 #include "modules/serviceworkers/ServiceWorkerContainerClient.h"
40 #include "public/platform/WebServiceWorkerProvider.h" 40 #include "public/platform/WebServiceWorkerProvider.h"
41 #include "public/platform/WebString.h" 41 #include "public/platform/WebString.h"
42 #include "public/web/WebFrameClient.h" 42 #include "public/web/WebFrameClient.h"
43 #include "public/web/WebPermissionClient.h" 43 #include "public/web/WebPermissionClient.h"
44 #include "public/web/WebWorkerPermissionClientProxy.h" 44 #include "public/web/WebWorkerPermissionClientProxy.h"
45 #include "web/DatabaseClientImpl.h"
46 #include "web/LocalFileSystemClient.h" 45 #include "web/LocalFileSystemClient.h"
47 #include "web/WebLocalFrameImpl.h" 46 #include "web/WebLocalFrameImpl.h"
48 #include "web/WebViewImpl.h" 47 #include "web/WebViewImpl.h"
49 #include "web/WorkerPermissionClient.h" 48 #include "web/WorkerPermissionClient.h"
50 49
51 namespace blink { 50 namespace blink {
52 51
53 WorkerGlobalScopeProxy* WorkerGlobalScopeProxyProviderImpl::createWorkerGlobalSc opeProxy(Worker* worker) 52 WorkerGlobalScopeProxy* WorkerGlobalScopeProxyProviderImpl::createWorkerGlobalSc opeProxy(Worker* worker)
54 { 53 {
55 if (worker->executionContext()->isDocument()) { 54 if (worker->executionContext()->isDocument()) {
56 Document* document = toDocument(worker->executionContext()); 55 Document* document = toDocument(worker->executionContext());
57 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->fra me()); 56 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->fra me());
58 OwnPtrWillBeRawPtr<WorkerClients> workerClients = WorkerClients::create( ); 57 OwnPtrWillBeRawPtr<WorkerClients> workerClients = WorkerClients::create( );
59 provideLocalFileSystemToWorker(workerClients.get(), LocalFileSystemClien t::create()); 58 provideLocalFileSystemToWorker(workerClients.get(), LocalFileSystemClien t::create());
60 provideDatabaseClientToWorker(workerClients.get(), DatabaseClientImpl::c reate());
61 providePermissionClientToWorker(workerClients.get(), adoptPtr(webFrame-> client()->createWorkerPermissionClientProxy(webFrame))); 59 providePermissionClientToWorker(workerClients.get(), adoptPtr(webFrame-> client()->createWorkerPermissionClientProxy(webFrame)));
62 provideServiceWorkerContainerClientToWorker(workerClients.get(), adoptPt r(webFrame->client()->createServiceWorkerProvider(webFrame))); 60 provideServiceWorkerContainerClientToWorker(workerClients.get(), adoptPt r(webFrame->client()->createServiceWorkerProvider(webFrame)));
63 return new WorkerMessagingProxy(worker, workerClients.release()); 61 return new WorkerMessagingProxy(worker, workerClients.release());
64 } 62 }
65 ASSERT_NOT_REACHED(); 63 ASSERT_NOT_REACHED();
66 return 0; 64 return 0;
67 } 65 }
68 66
69 } // namespace blink 67 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebSharedWorkerImpl.cpp ('k') | Source/web/WorkerPermissionClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698