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

Side by Side Diff: content/public/test/test_service.h

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 | « content/public/test/mock_render_thread.cc ('k') | content/public/test/test_service.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 #ifndef CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_SERVICE_H_
6 #define CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/public/test/test_service.mojom.h" 11 #include "content/public/test/test_service.mojom.h"
12 #include "mojo/public/cpp/bindings/binding.h" 12 #include "mojo/public/cpp/bindings/binding.h"
13 #include "services/shell/public/cpp/interface_factory.h" 13 #include "services/service_manager/public/cpp/interface_factory.h"
14 #include "services/shell/public/cpp/service.h" 14 #include "services/service_manager/public/cpp/service.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 extern const char kTestServiceUrl[]; 18 extern const char kTestServiceUrl[];
19 19
20 // Simple Service which provides a mojom::TestService impl. The service 20 // Simple Service which provides a mojom::TestService impl. The service
21 // terminates itself after its TestService fulfills a single DoSomething call. 21 // terminates itself after its TestService fulfills a single DoSomething call.
22 class TestService : public shell::Service, 22 class TestService : public shell::Service,
23 public shell::InterfaceFactory<mojom::TestService>, 23 public shell::InterfaceFactory<mojom::TestService>,
24 public mojom::TestService { 24 public mojom::TestService {
(...skipping 22 matching lines...) Expand all
47 47
48 // The name of the app connecting to us. 48 // The name of the app connecting to us.
49 std::string requestor_name_; 49 std::string requestor_name_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(TestService); 51 DISALLOW_COPY_AND_ASSIGN(TestService);
52 }; 52 };
53 53
54 } // namespace content 54 } // namespace content
55 55
56 #endif // CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ 56 #endif // CONTENT_PUBLIC_TEST_TEST_SERVICE_H_
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/public/test/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698