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

Side by Side Diff: chrome/worker/webworker_context_stub.cc

Issue 20413: old1 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/worker/webworker_context_stub.h ('k') | chrome/worker/worker.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/worker/webworker_context_stub.h"
6
7 #include "chrome/common/ipc_logging.h"
8 #include "chrome/common/worker_messages.h"
9 #include "chrome/worker/worker_thread.h"
10 #include "webkit/glue/webworker.h"
11
12
13 WebWorkerContextStub::WebWorkerContextStub(const GURL& url, int route_id)
14 : url_(url),
15 route_id_(route_id),
16 wrapper_(CreateWebWorkerContextWrapper()) {
17 }
18
19 WebWorkerContextStub::~WebWorkerContextStub() {
20 thread_->OnWorkerDestruction(this);
21 }
22
23 void WebWorkerContextStub::OnMessageReceived(const IPC::Message& message) {
24 IPC_BEGIN_MESSAGE_MAP(WebWorkerContextStub, message)
25 IPC_MESSAGE_HANDLER(WorkerMsg_StartContext, OnStartContext)
26 IPC_END_MESSAGE_MAP()
27 }
28
29 void WebWorkerContextStub::OnStartContext(const std::string& user_agent,
30 const std::string& source_code) {
31 wrapper_->StartWorkerContext(url_, user_agent, source_code);
32
33 }
OLDNEW
« no previous file with comments | « chrome/worker/webworker_context_stub.h ('k') | chrome/worker/worker.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698