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

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

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_
6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_
7
8 #include <string>
9
10 #include "mojo/public/cpp/system/macros.h"
11
12 namespace mojo {
13
14 class ApplicationConnection;
15 class ApplicationImpl;
16
17 class ApplicationDelegate {
18 public:
19 ApplicationDelegate();
20 virtual ~ApplicationDelegate();
21
22 virtual void Initialize(ApplicationImpl* app);
23
24 // Override this method to configure what services a connection supports when
25 // being connected to from an app.
26 // return false to reject the connection entirely.
27 virtual bool ConfigureIncomingConnection(ApplicationConnection* connection);
28
29 // Override this method to configure what services a connection supports when
30 // connecting to another app.
31 // return false to reject the connection entirely.
32 virtual bool ConfigureOutgoingConnection(ApplicationConnection* connection);
33
34 private:
35 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationDelegate);
36 };
37
38 } // namespace mojo
39
40 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/application/application_connection.h ('k') | mojo/public/cpp/application/application_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698