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

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

Issue 2215133002: Change signature of OnConnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: . Created 4 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 | « content/public/test/mock_render_thread.cc ('k') | content/public/test/test_mojo_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 #ifndef CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_
6 #define CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 // terminates itself after its TestService fulfills a single DoSomething call. 21 // terminates itself after its TestService fulfills a single DoSomething call.
22 class TestMojoApp : public shell::Service, 22 class TestMojoApp : public shell::Service,
23 public shell::InterfaceFactory<mojom::TestMojoService>, 23 public shell::InterfaceFactory<mojom::TestMojoService>,
24 public mojom::TestMojoService { 24 public mojom::TestMojoService {
25 public: 25 public:
26 TestMojoApp(); 26 TestMojoApp();
27 ~TestMojoApp() override; 27 ~TestMojoApp() override;
28 28
29 private: 29 private:
30 // shell::Service: 30 // shell::Service:
31 bool OnConnect(shell::Connection* connection) override; 31 bool OnConnect(const shell::Identity& remote_identity,
32 shell::InterfaceRegistry* registry) override;
32 33
33 // shell::InterfaceFactory<mojom::TestMojoService>: 34 // shell::InterfaceFactory<mojom::TestMojoService>:
34 void Create(const shell::Identity& remote_identity, 35 void Create(const shell::Identity& remote_identity,
35 mojo::InterfaceRequest<mojom::TestMojoService> request) override; 36 mojo::InterfaceRequest<mojom::TestMojoService> request) override;
36 37
37 // TestMojoService: 38 // TestMojoService:
38 void DoSomething(const DoSomethingCallback& callback) override; 39 void DoSomething(const DoSomethingCallback& callback) override;
39 void DoTerminateProcess(const DoTerminateProcessCallback& callback) override; 40 void DoTerminateProcess(const DoTerminateProcessCallback& callback) override;
40 void CreateFolder(const CreateFolderCallback& callback) override; 41 void CreateFolder(const CreateFolderCallback& callback) override;
41 void GetRequestorName(const GetRequestorNameCallback& callback) override; 42 void GetRequestorName(const GetRequestorNameCallback& callback) override;
42 43
43 mojo::Binding<mojom::TestMojoService> service_binding_; 44 mojo::Binding<mojom::TestMojoService> service_binding_;
44 45
45 // The name of the app connecting to us. 46 // The name of the app connecting to us.
46 std::string requestor_name_; 47 std::string requestor_name_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(TestMojoApp); 49 DISALLOW_COPY_AND_ASSIGN(TestMojoApp);
49 }; 50 };
50 51
51 } // namespace content 52 } // namespace content
52 53
53 #endif // CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_ 54 #endif // CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/public/test/test_mojo_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698