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

Unified Diff: mojo/shell/public/cpp/application_runner.h

Issue 1801963002: Change primordial pipes to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: mojo/shell/public/cpp/application_runner.h
diff --git a/mojo/shell/public/cpp/application_runner.h b/mojo/shell/public/cpp/application_runner.h
index 3863923e30fd20f56f3263e68c5e3a595a195821..2fb28a2b24bff3a337b27bae941b7abfdc3abe51 100644
--- a/mojo/shell/public/cpp/application_runner.h
+++ b/mojo/shell/public/cpp/application_runner.h
@@ -27,7 +27,7 @@ class ShellConnection;
// ultimately Quit().
class ApplicationRunner {
public:
- // Takes ownership of |delegate|.
+ // Takes ownership of |client|.
explicit ApplicationRunner(ShellClient* client);
~ApplicationRunner();
@@ -53,6 +53,10 @@ class ApplicationRunner {
// requests from others.
void DestroyShellConnection();
+ // Allows the caller to explicitly quit the application. Must be called from
+ // the thread which created the ApplicationRunner.
+ void Quit();
+
private:
scoped_ptr<ShellConnection> connection_;
scoped_ptr<ShellClient> client_;

Powered by Google App Engine
This is Rietveld 408576698