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

Side by Side Diff: mojo/services/test_service/test_service_impl.cc

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 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
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/services/test_service/test_service_impl.h" 5 #include "mojo/services/test_service/test_service_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/i18n/time_formatting.h" 12 #include "base/i18n/time_formatting.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "mojo/application/public/cpp/application_impl.h"
15 #include "mojo/services/test_service/test_service_application.h" 14 #include "mojo/services/test_service/test_service_application.h"
16 #include "mojo/services/test_service/test_time_service_impl.h" 15 #include "mojo/services/test_service/test_time_service_impl.h"
17 #include "mojo/services/test_service/tracked_service.h" 16 #include "mojo/services/test_service/tracked_service.h"
17 #include "mojo/shell/public/cpp/application_impl.h"
18 18
19 namespace mojo { 19 namespace mojo {
20 namespace test { 20 namespace test {
21 21
22 TestServiceImpl::TestServiceImpl(ApplicationImpl* app_impl, 22 TestServiceImpl::TestServiceImpl(ApplicationImpl* app_impl,
23 TestServiceApplication* application, 23 TestServiceApplication* application,
24 InterfaceRequest<TestService> request) 24 InterfaceRequest<TestService> request)
25 : application_(application), 25 : application_(application),
26 app_impl_(app_impl), 26 app_impl_(app_impl),
27 binding_(this, std::move(request)) { 27 binding_(this, std::move(request)) {
(...skipping 29 matching lines...) Expand all
57 57
58 void TestServiceImpl::StartTrackingRequests( 58 void TestServiceImpl::StartTrackingRequests(
59 const mojo::Callback<void()>& callback) { 59 const mojo::Callback<void()>& callback) {
60 TestRequestTrackerPtr tracker; 60 TestRequestTrackerPtr tracker;
61 app_impl_->ConnectToService("mojo:test_request_tracker_app", &tracker); 61 app_impl_->ConnectToService("mojo:test_request_tracker_app", &tracker);
62 tracking_.reset(new TrackedService(std::move(tracker), Name_, callback)); 62 tracking_.reset(new TrackedService(std::move(tracker), Name_, callback));
63 } 63 }
64 64
65 } // namespace test 65 } // namespace test
66 } // namespace mojo 66 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/test_service/test_service_application.cc ('k') | mojo/services/test_service/test_time_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698