| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 | 8 |
| 9 #include "DedicatedWorkerContext.h" | 9 #include "DedicatedWorkerContext.h" |
| 10 #include "DedicatedWorkerThread.h" | 10 #include "DedicatedWorkerThread.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void DidCreateDataSource(WebFrame* frame, WebKit::WebDataSource* ds) { | 73 virtual void DidCreateDataSource(WebFrame* frame, WebKit::WebDataSource* ds) { |
| 74 static_cast<WebDataSourceImpl*>(ds)->setDeferMainResourceDataLoad(false); | 74 static_cast<WebDataSourceImpl*>(ds)->setDeferMainResourceDataLoad(false); |
| 75 } | 75 } |
| 76 | 76 |
| 77 // Lazy allocate and leak this instance. | 77 // Lazy allocate and leak this instance. |
| 78 static WorkerWebViewDelegate* worker_delegate() { | 78 static WorkerWebViewDelegate* worker_delegate() { |
| 79 static WorkerWebViewDelegate* worker_delegate = new WorkerWebViewDelegate(); | 79 static WorkerWebViewDelegate* worker_delegate = new WorkerWebViewDelegate(); |
| 80 return worker_delegate; | 80 return worker_delegate; |
| 81 } | 81 } |
| 82 | 82 |
| 83 // FIXME(benl): temporary, remove when WebViewDelegate becomes non-pure again |
| 84 virtual void chooseGeolocationProvider( |
| 85 ChooseGeolocationProviderCallback *geolocation_provider_callback, |
| 86 const WebCore::KURL &url) { } |
| 87 |
| 83 private: | 88 private: |
| 84 DISALLOW_COPY_AND_ASSIGN(WorkerWebViewDelegate); | 89 DISALLOW_COPY_AND_ASSIGN(WorkerWebViewDelegate); |
| 85 }; | 90 }; |
| 86 | 91 |
| 87 namespace WebKit { | 92 namespace WebKit { |
| 88 | 93 |
| 89 WebWorker* WebWorker::create(WebWorkerClient* client) { | 94 WebWorker* WebWorker::create(WebWorkerClient* client) { |
| 90 return new WebWorkerImpl(client); | 95 return new WebWorkerImpl(client); |
| 91 } | 96 } |
| 92 | 97 |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 390 |
| 386 namespace WebKit { | 391 namespace WebKit { |
| 387 | 392 |
| 388 WebWorker* WebWorker::create(WebWorkerClient* client) { | 393 WebWorker* WebWorker::create(WebWorkerClient* client) { |
| 389 return NULL; | 394 return NULL; |
| 390 } | 395 } |
| 391 | 396 |
| 392 } | 397 } |
| 393 | 398 |
| 394 #endif | 399 #endif |
| OLD | NEW |