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

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

Issue 698883005: Update mojo sdk to rev cfc99316100efdfa7d53d83f9e07f1d4d3765c21 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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"
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 class ApplicationConnection; 14 class ApplicationConnection;
15 class ApplicationImpl; 15 class ApplicationImpl;
16 16
17 class ApplicationDelegate { 17 class ApplicationDelegate {
18 public: 18 public:
19 ApplicationDelegate(); 19 ApplicationDelegate();
20 virtual ~ApplicationDelegate(); 20 virtual ~ApplicationDelegate();
21 21
22 // Implement this method to create the specific subclass of
23 // ApplicationDelegate. Ownership is taken by the caller. It will be deleted.
24 static ApplicationDelegate* Create();
25
26 virtual void Initialize(ApplicationImpl* app); 22 virtual void Initialize(ApplicationImpl* app);
27 23
28 // Override this method to configure what services a connection supports when 24 // Override this method to configure what services a connection supports when
29 // being connected to from an app. 25 // being connected to from an app.
30 // return false to reject the connection entirely. 26 // return false to reject the connection entirely.
31 virtual bool ConfigureIncomingConnection(ApplicationConnection* connection); 27 virtual bool ConfigureIncomingConnection(ApplicationConnection* connection);
32 28
33 // Override this method to configure what services a connection supports when 29 // Override this method to configure what services a connection supports when
34 // connecting to another app. 30 // connecting to another app.
35 // return false to reject the connection entirely. 31 // return false to reject the connection entirely.
36 virtual bool ConfigureOutgoingConnection(ApplicationConnection* connection); 32 virtual bool ConfigureOutgoingConnection(ApplicationConnection* connection);
37 33
38 private: 34 private:
39 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationDelegate); 35 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationDelegate);
40 }; 36 };
41 37
42 } // namespace mojo 38 } // namespace mojo
43 39
44 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_ 40 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/application/BUILD.gn ('k') | mojo/public/cpp/application/lib/application_test_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698