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

Side by Side Diff: content/child/service_worker/embedded_worker_stub.h

Issue 54573002: Initial child-process side plumbing for starting an embedded ServiceWorker context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated Created 7 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_STUB_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_STUB_H_
7
8 #include "ipc/ipc_listener.h"
9 #include "url/gurl.h"
10
11 namespace content {
12
13 // TODO(kinuko): Will implements WebKit::WebEmbeddedWorkerClient
14 // and owns WebKit::WebEmbeddedWorker instance, which will create a
15 // WorkerThread and starts WorkerGlobalScope later when requested.
16 class EmbeddedWorkerStub : public IPC::Listener {
17 public:
18 EmbeddedWorkerStub(const GURL& script_url, int route_id);
19
20 // IPC::Listener implementation.
21 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
22
23 private:
24 virtual ~EmbeddedWorkerStub();
25
26 GURL script_url_;
27 int route_id_;
28
29 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerStub);
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698