| Index: content/child/service_worker/embedded_worker_stub.h
|
| diff --git a/content/child/service_worker/embedded_worker_stub.h b/content/child/service_worker/embedded_worker_stub.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9e84397ce7a4228e588f5ad33acaf353e0a41349
|
| --- /dev/null
|
| +++ b/content/child/service_worker/embedded_worker_stub.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2013 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 CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_STUB_H_
|
| +#define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_STUB_H_
|
| +
|
| +#include "ipc/ipc_listener.h"
|
| +#include "url/gurl.h"
|
| +
|
| +namespace content {
|
| +
|
| +// TODO(kinuko): Will implements WebKit::WebEmbeddedWorkerClient
|
| +// and owns WebKit::WebEmbeddedWorker instance, which will create a
|
| +// WorkerThread and starts WorkerGlobalScope later when requested.
|
| +class EmbeddedWorkerStub : public IPC::Listener {
|
| + public:
|
| + EmbeddedWorkerStub(const GURL& script_url, int route_id);
|
| +
|
| + // IPC::Listener implementation.
|
| + virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| +
|
| + private:
|
| + virtual ~EmbeddedWorkerStub();
|
| +
|
| + GURL script_url_;
|
| + int route_id_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerStub);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_STUB_H_
|
|
|