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

Side by Side Diff: mojo/public/cpp/application/application_delegate.h

Issue 947253003: Add ApplicationDelegate::Quit() (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | mojo/public/cpp/application/application_impl.h » ('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 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 MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_ 5 #ifndef MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_
6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_ 6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "mojo/public/cpp/system/macros.h" 10 #include "mojo/public/cpp/system/macros.h"
(...skipping 16 matching lines...) Expand all
27 // Override this method to configure what services a connection supports when 27 // Override this method to configure what services a connection supports when
28 // being connected to from an app. 28 // being connected to from an app.
29 // Return false to reject the connection entirely. 29 // Return false to reject the connection entirely.
30 virtual bool ConfigureIncomingConnection(ApplicationConnection* connection); 30 virtual bool ConfigureIncomingConnection(ApplicationConnection* connection);
31 31
32 // Override this method to configure what services a connection supports when 32 // Override this method to configure what services a connection supports when
33 // connecting to another app. 33 // connecting to another app.
34 // Return false to reject the connection entirely. 34 // Return false to reject the connection entirely.
35 virtual bool ConfigureOutgoingConnection(ApplicationConnection* connection); 35 virtual bool ConfigureOutgoingConnection(ApplicationConnection* connection);
36 36
37 // Called before ApplicationImpl::Terminate(). After returning from this call
38 // the delegate can no longer rely on the main run loop still running.
jamesr 2015/02/23 20:27:31 "the main run loop" is a feature of the chromium a
blundell 2015/02/23 20:35:42 I was following the terminology used in the commen
39 virtual void Quit();
40
37 private: 41 private:
38 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationDelegate); 42 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationDelegate);
39 }; 43 };
40 44
41 } // namespace mojo 45 } // namespace mojo
42 46
43 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_ 47 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/public/cpp/application/application_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698