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

Side by Side Diff: webkit/glue/webworker_impl.cc

Issue 160084: Chaos geolocation demo, non-WebKit part. Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « webkit/glue/webview_delegate.h ('k') | webkit/webkit.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/glue/webview_delegate.h ('k') | webkit/webkit.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698