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

Side by Side Diff: mojo/services/html_viewer/blink_platform_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 #include "mojo/examples/html_viewer/blink_platform_impl.h" 5 #include "mojo/services/html_viewer/blink_platform_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/rand_util.h" 9 #include "base/rand_util.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "mojo/examples/html_viewer/webthread_impl.h"
14 #include "mojo/examples/html_viewer/weburlloader_impl.h"
15 #include "mojo/public/cpp/application/application_impl.h" 13 #include "mojo/public/cpp/application/application_impl.h"
14 #include "mojo/services/html_viewer/webthread_impl.h"
15 #include "mojo/services/html_viewer/weburlloader_impl.h"
16 #include "net/base/data_url.h" 16 #include "net/base/data_url.h"
17 #include "net/base/mime_util.h" 17 #include "net/base/mime_util.h"
18 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 #include "third_party/WebKit/public/platform/WebWaitableEvent.h" 19 #include "third_party/WebKit/public/platform/WebWaitableEvent.h"
20 20
21 namespace mojo { 21 namespace mojo {
22 namespace examples {
23 namespace { 22 namespace {
24 23
25 // TODO(darin): Figure out what our UA should really be. 24 // TODO(darin): Figure out what our UA should really be.
26 const char kUserAgentString[] = 25 const char kUserAgentString[] =
27 "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) " 26 "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) "
28 "Chrome/35.0.1916.153 Safari/537.36"; 27 "Chrome/35.0.1916.153 Safari/537.36";
29 28
30 class WebWaitableEventImpl : public blink::WebWaitableEvent { 29 class WebWaitableEventImpl : public blink::WebWaitableEvent {
31 public: 30 public:
32 WebWaitableEventImpl() : impl_(new base::WaitableEvent(false, false)) {} 31 WebWaitableEventImpl() : impl_(new base::WaitableEvent(false, false)) {}
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 return web_events[idx]; 205 return web_events[idx];
207 } 206 }
208 207
209 // static 208 // static
210 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { 209 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) {
211 WebThreadImplForMessageLoop* impl = 210 WebThreadImplForMessageLoop* impl =
212 static_cast<WebThreadImplForMessageLoop*>(thread); 211 static_cast<WebThreadImplForMessageLoop*>(thread);
213 delete impl; 212 delete impl;
214 } 213 }
215 214
216 } // namespace examples
217 } // namespace mojo 215 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/blink_platform_impl.h ('k') | mojo/services/html_viewer/html_document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698