mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-04-12 01:51:12 +02:00
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:
parent
f211cbbc2e
commit
69226efeb6
1
cef.gyp
1
cef.gyp
@ -677,7 +677,6 @@
|
|||||||
'libcef/browser_settings.h',
|
'libcef/browser_settings.h',
|
||||||
'libcef/browser_socket_stream_bridge.cc',
|
'libcef/browser_socket_stream_bridge.cc',
|
||||||
'libcef/browser_socket_stream_bridge.h',
|
'libcef/browser_socket_stream_bridge.h',
|
||||||
'libcef/browser_web_worker.h',
|
|
||||||
'libcef/browser_webcookiejar_impl.cc',
|
'libcef/browser_webcookiejar_impl.cc',
|
||||||
'libcef/browser_webcookiejar_impl.h',
|
'libcef/browser_webcookiejar_impl.h',
|
||||||
'libcef/browser_webblobregistry_impl.cc',
|
'libcef/browser_webblobregistry_impl.cc',
|
||||||
|
@ -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
|
|
@ -12,7 +12,6 @@
|
|||||||
#include "browser_file_system.h"
|
#include "browser_file_system.h"
|
||||||
#include "browser_impl.h"
|
#include "browser_impl.h"
|
||||||
#include "browser_navigation_controller.h"
|
#include "browser_navigation_controller.h"
|
||||||
#include "browser_web_worker.h"
|
|
||||||
#include "browser_webkit_glue.h"
|
#include "browser_webkit_glue.h"
|
||||||
#include "browser_webstoragenamespace_impl.h"
|
#include "browser_webstoragenamespace_impl.h"
|
||||||
#include "browser_zoom_map.h"
|
#include "browser_zoom_map.h"
|
||||||
@ -117,8 +116,6 @@ using WebKit::WebVector;
|
|||||||
using WebKit::WebView;
|
using WebKit::WebView;
|
||||||
using WebKit::WebWidget;
|
using WebKit::WebWidget;
|
||||||
using WebKit::WebWindowFeatures;
|
using WebKit::WebWindowFeatures;
|
||||||
using WebKit::WebWorker;
|
|
||||||
using WebKit::WebWorkerClient;
|
|
||||||
using WebKit::WebKeyboardEvent;
|
using WebKit::WebKeyboardEvent;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@ -629,11 +626,6 @@ WebPlugin* BrowserWebViewDelegate::createPlugin(
|
|||||||
frame, params, plugins.front().path, AsWeakPtr());
|
frame, params, plugins.front().path, AsWeakPtr());
|
||||||
}
|
}
|
||||||
|
|
||||||
WebWorker* BrowserWebViewDelegate::createWorker(
|
|
||||||
WebFrame* frame, WebWorkerClient* client) {
|
|
||||||
return new BrowserWebWorker();
|
|
||||||
}
|
|
||||||
|
|
||||||
WebMediaPlayer* BrowserWebViewDelegate::createMediaPlayer(
|
WebMediaPlayer* BrowserWebViewDelegate::createMediaPlayer(
|
||||||
WebFrame* frame, WebMediaPlayerClient* client) {
|
WebFrame* frame, WebMediaPlayerClient* client) {
|
||||||
scoped_ptr<media::MessageLoopFactory> message_loop_factory(
|
scoped_ptr<media::MessageLoopFactory> message_loop_factory(
|
||||||
|
@ -138,8 +138,6 @@ class BrowserWebViewDelegate : public WebKit::WebViewClient,
|
|||||||
// WebKit::WebFrameClient
|
// WebKit::WebFrameClient
|
||||||
virtual WebKit::WebPlugin* createPlugin(
|
virtual WebKit::WebPlugin* createPlugin(
|
||||||
WebKit::WebFrame*, const WebKit::WebPluginParams&) OVERRIDE;
|
WebKit::WebFrame*, const WebKit::WebPluginParams&) OVERRIDE;
|
||||||
virtual WebKit::WebWorker* createWorker(
|
|
||||||
WebKit::WebFrame*, WebKit::WebWorkerClient*) OVERRIDE;
|
|
||||||
virtual WebKit::WebMediaPlayer* createMediaPlayer(
|
virtual WebKit::WebMediaPlayer* createMediaPlayer(
|
||||||
WebKit::WebFrame*, WebKit::WebMediaPlayerClient*) OVERRIDE;
|
WebKit::WebFrame*, WebKit::WebMediaPlayerClient*) OVERRIDE;
|
||||||
virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(
|
virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user