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

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

Issue 42013: Slight code change to make some global variables const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 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/webworkerclient_proxy.cc ('k') | net/base/completion_callback.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/worker/worker_thread.h" 5 #include "chrome/worker/worker_thread.h"
6 6
7 #include "chrome/common/worker_messages.h" 7 #include "chrome/common/worker_messages.h"
8 #include "chrome/worker/webworkerclient_proxy.h" 8 #include "chrome/worker/webworkerclient_proxy.h"
9 #include "chrome/worker/worker_process.h" 9 #include "chrome/worker/worker_process.h"
10 #include "chrome/worker/worker_webkitclient_impl.h" 10 #include "chrome/worker/worker_webkitclient_impl.h"
11 11
12 #include "WebKit.h" 12 #include "WebKit.h"
13 13
14 WorkerThread::WorkerThread() 14 WorkerThread::WorkerThread()
15 : ChildThread(base::Thread::Options(MessageLoop::TYPE_DEFAULT, kV8StackSize) ) { 15 : ChildThread(base::Thread::Options(MessageLoop::TYPE_DEFAULT,
16 kV8StackSize)) {
16 } 17 }
17 18
18 WorkerThread::~WorkerThread() { 19 WorkerThread::~WorkerThread() {
19 } 20 }
20 21
21 void WorkerThread::Init() { 22 void WorkerThread::Init() {
22 ChildThread::Init(); 23 ChildThread::Init();
23 webkit_client_.reset(new WorkerWebKitClientImpl); 24 webkit_client_.reset(new WorkerWebKitClientImpl);
24 WebKit::initialize(webkit_client_.get()); 25 WebKit::initialize(webkit_client_.get());
25 } 26 }
(...skipping 11 matching lines...) Expand all
37 38
38 void WorkerThread::OnControlMessageReceived(const IPC::Message& msg) { 39 void WorkerThread::OnControlMessageReceived(const IPC::Message& msg) {
39 IPC_BEGIN_MESSAGE_MAP(WorkerThread, msg) 40 IPC_BEGIN_MESSAGE_MAP(WorkerThread, msg)
40 IPC_MESSAGE_HANDLER(WorkerProcessMsg_CreateWorker, OnCreateWorker) 41 IPC_MESSAGE_HANDLER(WorkerProcessMsg_CreateWorker, OnCreateWorker)
41 IPC_END_MESSAGE_MAP() 42 IPC_END_MESSAGE_MAP()
42 } 43 }
43 44
44 void WorkerThread::OnCreateWorker(const GURL& url, int route_id) { 45 void WorkerThread::OnCreateWorker(const GURL& url, int route_id) {
45 WebWorkerClientProxy* worker = new WebWorkerClientProxy(url, route_id); 46 WebWorkerClientProxy* worker = new WebWorkerClientProxy(url, route_id);
46 } 47 }
OLDNEW
« no previous file with comments | « chrome/worker/webworkerclient_proxy.cc ('k') | net/base/completion_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698