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

Side by Side Diff: services/shell/public/cpp/service_runner.h

Issue 2351603002: mojo: Use TYPE_DEFAULT message-loop for browser-tests. (Closed)
Patch Set: . Created 4 years, 3 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 | « chrome/test/base/mash_browser_tests_main.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef SERVICES_SHELL_PUBLIC_CPP_SERVICE_RUNNER_H_ 5 #ifndef SERVICES_SHELL_PUBLIC_CPP_SERVICE_RUNNER_H_
6 #define SERVICES_SHELL_PUBLIC_CPP_SERVICE_RUNNER_H_ 6 #define SERVICES_SHELL_PUBLIC_CPP_SERVICE_RUNNER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // and handle requests from others. 54 // and handle requests from others.
55 void DestroyServiceContext(); 55 void DestroyServiceContext();
56 56
57 // Allows the caller to explicitly quit the service. Must be called from 57 // Allows the caller to explicitly quit the service. Must be called from
58 // the thread which created the ServiceRunner. 58 // the thread which created the ServiceRunner.
59 void Quit(); 59 void Quit();
60 60
61 private: 61 private:
62 std::unique_ptr<Service> service_; 62 std::unique_ptr<Service> service_;
63 63
64 // MessageLoop type. TYPE_CUSTOM is default (MessagePumpMojo will be used as 64 // MessageLoop type. Default is TYPE_DEFAULT.
65 // the underlying message pump).
66 base::MessageLoop::Type message_loop_type_; 65 base::MessageLoop::Type message_loop_type_;
67 // Whether Run() has been called. 66 // Whether Run() has been called.
68 bool has_run_; 67 bool has_run_;
69 68
70 DISALLOW_COPY_AND_ASSIGN(ServiceRunner); 69 DISALLOW_COPY_AND_ASSIGN(ServiceRunner);
71 }; 70 };
72 71
73 } // namespace shell 72 } // namespace shell
74 73
75 #endif // SERVICES_SHELL_PUBLIC_CPP_SERVICE_RUNNER_H_ 74 #endif // SERVICES_SHELL_PUBLIC_CPP_SERVICE_RUNNER_H_
OLDNEW
« no previous file with comments | « chrome/test/base/mash_browser_tests_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698