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

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

Issue 2871523002: Use OnceCallback on Mojo interfaces in //content (Closed)
Patch Set: . Created 3 years, 7 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/browser/webui/web_ui_mojo_browsertest.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"
(...skipping 16 matching lines...) Expand all
27 private: 27 private:
28 // service_manager::Service: 28 // service_manager::Service:
29 void OnBindInterface(const service_manager::BindSourceInfo& source_info, 29 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
30 const std::string& interface_name, 30 const std::string& interface_name,
31 mojo::ScopedMessagePipeHandle interface_pipe) override; 31 mojo::ScopedMessagePipeHandle interface_pipe) override;
32 32
33 void Create(const service_manager::BindSourceInfo& source_info, 33 void Create(const service_manager::BindSourceInfo& source_info,
34 mojom::TestServiceRequest request); 34 mojom::TestServiceRequest request);
35 35
36 // TestService: 36 // TestService:
37 void DoSomething(const DoSomethingCallback& callback) override; 37 void DoSomething(DoSomethingCallback callback) override;
38 void DoTerminateProcess(const DoTerminateProcessCallback& callback) override; 38 void DoTerminateProcess(DoTerminateProcessCallback callback) override;
39 void CreateFolder(const CreateFolderCallback& callback) override; 39 void CreateFolder(CreateFolderCallback callback) override;
40 void GetRequestorName(const GetRequestorNameCallback& callback) override; 40 void GetRequestorName(GetRequestorNameCallback callback) override;
41 void CreateSharedBuffer(const std::string& message, 41 void CreateSharedBuffer(const std::string& message,
42 const CreateSharedBufferCallback& callback) override; 42 CreateSharedBufferCallback callback) override;
43 43
44 service_manager::BinderRegistry registry_; 44 service_manager::BinderRegistry registry_;
45 mojo::Binding<mojom::TestService> service_binding_; 45 mojo::Binding<mojom::TestService> service_binding_;
46 46
47 // The name of the app connecting to us. 47 // The name of the app connecting to us.
48 std::string requestor_name_; 48 std::string requestor_name_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(TestService); 50 DISALLOW_COPY_AND_ASSIGN(TestService);
51 }; 51 };
52 52
53 } // namespace content 53 } // namespace content
54 54
55 #endif // CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ 55 #endif // CONTENT_PUBLIC_TEST_TEST_SERVICE_H_
OLDNEW
« no previous file with comments | « content/browser/webui/web_ui_mojo_browsertest.cc ('k') | content/public/test/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698