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

Side by Side Diff: mojo/services/html_viewer/webthread_impl.cc

Issue 393983004: Move mojo/examples/html_viewer to mojo/services/html_viewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nuke 'examples' namespace Created 6 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // An implementation of WebThread in terms of base::MessageLoop and 5 // An implementation of WebThread in terms of base::MessageLoop and
6 // base::Thread 6 // base::Thread
7 7
8 #include "mojo/examples/html_viewer/webthread_impl.h" 8 #include "mojo/services/html_viewer/webthread_impl.h"
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/pending_task.h" 13 #include "base/pending_task.h"
14 #include "base/threading/platform_thread.h" 14 #include "base/threading/platform_thread.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace examples {
18 17
19 WebThreadBase::WebThreadBase() {} 18 WebThreadBase::WebThreadBase() {}
20 WebThreadBase::~WebThreadBase() {} 19 WebThreadBase::~WebThreadBase() {}
21 20
22 class WebThreadBase::TaskObserverAdapter 21 class WebThreadBase::TaskObserverAdapter
23 : public base::MessageLoop::TaskObserver { 22 : public base::MessageLoop::TaskObserver {
24 public: 23 public:
25 TaskObserverAdapter(WebThread::TaskObserver* observer) 24 TaskObserverAdapter(WebThread::TaskObserver* observer)
26 : observer_(observer) {} 25 : observer_(observer) {}
27 26
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 CHECK(base::MessageLoop::current()->is_running()); 121 CHECK(base::MessageLoop::current()->is_running());
123 base::MessageLoop::current()->Quit(); 122 base::MessageLoop::current()->Quit();
124 } 123 }
125 124
126 bool WebThreadImplForMessageLoop::isCurrentThread() const { 125 bool WebThreadImplForMessageLoop::isCurrentThread() const {
127 return message_loop_->BelongsToCurrentThread(); 126 return message_loop_->BelongsToCurrentThread();
128 } 127 }
129 128
130 WebThreadImplForMessageLoop::~WebThreadImplForMessageLoop() {} 129 WebThreadImplForMessageLoop::~WebThreadImplForMessageLoop() {}
131 130
132 } // namespace examples
133 } // namespace mojo 131 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/webthread_impl.h ('k') | mojo/services/html_viewer/weburlloader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698