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

Side by Side Diff: webkit/glue/worker_task_runner.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 | « webkit/glue/weburlrequest_extradata_impl.h ('k') | webkit/media/webvideoframe_impl.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/callback.h" 5 #include "base/callback.h"
6 #include "base/lazy_instance.h" 6 #include "base/lazy_instance.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "webkit/glue/worker_task_runner.h" 10 #include "webkit/glue/worker_task_runner.h"
11 11
12 using WebKit::WebWorkerRunLoop; 12 using WebKit::WebWorkerRunLoop;
13 13
14 namespace { 14 namespace {
15 15
16 class RunClosureTask : public WebWorkerRunLoop::Task { 16 class RunClosureTask : public WebWorkerRunLoop::Task {
17 public: 17 public:
18 RunClosureTask(const base::Closure& task) : task_(task) {} 18 explicit RunClosureTask(const base::Closure& task) : task_(task) {}
19 virtual ~RunClosureTask() {} 19 virtual ~RunClosureTask() {}
20 virtual void Run() { 20 virtual void Run() {
21 task_.Run(); 21 task_.Run();
22 } 22 }
23 private: 23 private:
24 base::Closure task_; 24 base::Closure task_;
25 }; 25 };
26 26
27 } // unnamed namespace 27 } // unnamed namespace
28 28
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 { 93 {
94 base::AutoLock locker(loop_map_lock_); 94 base::AutoLock locker(loop_map_lock_);
95 DCHECK(loop_map_[CurrentWorkerId()] == loop); 95 DCHECK(loop_map_[CurrentWorkerId()] == loop);
96 loop_map_.erase(CurrentWorkerId()); 96 loop_map_.erase(CurrentWorkerId());
97 } 97 }
98 delete current_tls_.Get(); 98 delete current_tls_.Get();
99 current_tls_.Set(NULL); 99 current_tls_.Set(NULL);
100 } 100 }
101 101
102 } // namespace webkit_glue 102 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/weburlrequest_extradata_impl.h ('k') | webkit/media/webvideoframe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698