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

Side by Side Diff: content/public/test/test_mojo_app.cc

Issue 1266643003: ApplicationImpl cleanup, part 1: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 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
« no previous file with comments | « components/view_manager/view_manager_app.cc ('k') | device/devices_app/devices_app.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/public/test/test_mojo_app.h" 5 #include "content/public/test/test_mojo_app.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "mojo/application/public/cpp/application_connection.h" 8 #include "mojo/application/public/cpp/application_connection.h"
9 #include "mojo/application/public/cpp/application_impl.h" 9 #include "mojo/application/public/cpp/application_impl.h"
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 void TestMojoApp::Create(mojo::ApplicationConnection* connection, 32 void TestMojoApp::Create(mojo::ApplicationConnection* connection,
33 mojo::InterfaceRequest<TestMojoService> request) { 33 mojo::InterfaceRequest<TestMojoService> request) {
34 DCHECK(!service_binding_.is_bound()); 34 DCHECK(!service_binding_.is_bound());
35 service_binding_.Bind(request.Pass()); 35 service_binding_.Bind(request.Pass());
36 } 36 }
37 37
38 void TestMojoApp::DoSomething(const DoSomethingCallback& callback) { 38 void TestMojoApp::DoSomething(const DoSomethingCallback& callback) {
39 callback.Run(); 39 callback.Run();
40 DCHECK(app_); 40 DCHECK(app_);
41 app_->Terminate(); 41 app_->Quit();
42 } 42 }
43 43
44 void TestMojoApp::GetRequestorURL(const GetRequestorURLCallback& callback) { 44 void TestMojoApp::GetRequestorURL(const GetRequestorURLCallback& callback) {
45 callback.Run(requestor_url_.spec()); 45 callback.Run(requestor_url_.spec());
46 } 46 }
47 47
48 } // namespace content 48 } // namespace content
OLDNEW
« no previous file with comments | « components/view_manager/view_manager_app.cc ('k') | device/devices_app/devices_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698