Remove unneeded WebWorker stub code (issue #230).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@376 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-11-14 15:49:26 +00:00
parent f211cbbc2e
commit 69226efeb6
4 changed files with 0 additions and 112 deletions

View File

@ -677,7 +677,6 @@
'libcef/browser_settings.h',
'libcef/browser_socket_stream_bridge.cc',
'libcef/browser_socket_stream_bridge.h',
'libcef/browser_web_worker.h',
'libcef/browser_webcookiejar_impl.cc',
'libcef/browser_webcookiejar_impl.h',
'libcef/browser_webblobregistry_impl.cc',

View File

@ -1,101 +0,0 @@
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef _BROWSER_WEB_WORKER_H
#define _BROWSER_WEB_WORKER_H
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebMessagePortChannel.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebWorker.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebWorkerClient.h"
namespace WebKit {
class WebApplicationCacheHost;
class WebApplicationCacheHostClient;
class WebFrame;
class WebNotificationPresenter;
class WebString;
class WebURL;
}
// WebWorkers are not currently functional in CEF. This class effectively
// stubs things out.
class BrowserWebWorker : public WebKit::WebWorker,
public WebKit::WebWorkerClient,
public base::RefCounted<BrowserWebWorker> {
public:
BrowserWebWorker() {
AddRef(); // Adds the reference held for worker object.
AddRef(); // Adds the reference held for worker context object.
}
// WebWorker methods:
virtual void startWorkerContext(const WebKit::WebURL& script_url,
const WebKit::WebString& user_agent,
const WebKit::WebString& source_code) {
}
virtual void terminateWorkerContext() {
}
virtual void postMessageToWorkerContext(
const WebKit::WebString& message,
const WebKit::WebMessagePortChannelArray& channel) {
}
virtual void workerObjectDestroyed() {
Release(); // Releases the reference held for worker object.
}
virtual void clientDestroyed() {
}
// WebWorkerClient methods:
virtual void postMessageToWorkerObject(
const WebKit::WebString& message,
const WebKit::WebMessagePortChannelArray& channel) {
}
virtual void postExceptionToWorkerObject(
const WebKit::WebString& error_message,
int line_number,
const WebKit::WebString& source_url) {
}
virtual void postConsoleMessageToWorkerObject(
int destination_id,
int source_id,
int message_type,
int message_level,
const WebKit::WebString& message,
int line_number,
const WebKit::WebString& source_url) {
}
virtual void confirmMessageFromWorkerObject(bool has_pending_activity) { }
virtual void reportPendingActivity(bool has_pending_activity) { }
virtual void workerContextClosed() { }
virtual void workerContextDestroyed() {
Release(); // Releases the reference held for worker context object.
}
virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client) {
return NULL;
}
virtual WebKit::WebNotificationPresenter* notificationPresenter() {
return NULL;
}
virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(
WebKit::WebApplicationCacheHostClient*) {
return NULL;
}
virtual bool allowDatabase(WebKit::WebFrame* frame,
const WebKit::WebString& name,
const WebKit::WebString& display_name,
unsigned long estimated_size) {
return true;
}
private:
friend class base::RefCounted<BrowserWebWorker>;
~BrowserWebWorker() {}
DISALLOW_COPY_AND_ASSIGN(BrowserWebWorker);
};
#endif // _BROWSER_WEB_WORKER_H

View File

@ -12,7 +12,6 @@
#include "browser_file_system.h"
#include "browser_impl.h"
#include "browser_navigation_controller.h"
#include "browser_web_worker.h"
#include "browser_webkit_glue.h"
#include "browser_webstoragenamespace_impl.h"
#include "browser_zoom_map.h"
@ -117,8 +116,6 @@ using WebKit::WebVector;
using WebKit::WebView;
using WebKit::WebWidget;
using WebKit::WebWindowFeatures;
using WebKit::WebWorker;
using WebKit::WebWorkerClient;
using WebKit::WebKeyboardEvent;
namespace {
@ -629,11 +626,6 @@ WebPlugin* BrowserWebViewDelegate::createPlugin(
frame, params, plugins.front().path, AsWeakPtr());
}
WebWorker* BrowserWebViewDelegate::createWorker(
WebFrame* frame, WebWorkerClient* client) {
return new BrowserWebWorker();
}
WebMediaPlayer* BrowserWebViewDelegate::createMediaPlayer(
WebFrame* frame, WebMediaPlayerClient* client) {
scoped_ptr<media::MessageLoopFactory> message_loop_factory(

View File

@ -138,8 +138,6 @@ class BrowserWebViewDelegate : public WebKit::WebViewClient,
// WebKit::WebFrameClient
virtual WebKit::WebPlugin* createPlugin(
WebKit::WebFrame*, const WebKit::WebPluginParams&) OVERRIDE;
virtual WebKit::WebWorker* createWorker(
WebKit::WebFrame*, WebKit::WebWorkerClient*) OVERRIDE;
virtual WebKit::WebMediaPlayer* createMediaPlayer(
WebKit::WebFrame*, WebKit::WebMediaPlayerClient*) OVERRIDE;
virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(