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

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

Issue 316223002: Include mojo_main_{chromium,standalone}.cc instead of using a target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort files Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « mojo/mojo_services.gypi ('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 MOJO_PUBLIC_APPLICATION_APPLICATION_H_ 5 #ifndef MOJO_PUBLIC_APPLICATION_APPLICATION_H_
6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_H_ 6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_H_
7 #include <vector> 7 #include <vector>
8 8
9 #include "mojo/public/cpp/application/connect.h" 9 #include "mojo/public/cpp/application/connect.h"
10 #include "mojo/public/cpp/application/lib/service_connector.h" 10 #include "mojo/public/cpp/application/lib/service_connector.h"
11 #include "mojo/public/cpp/system/core.h" 11 #include "mojo/public/cpp/system/core.h"
12 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" 12 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
13 13
14 #if defined(WIN32) 14 #if defined(WIN32)
15 #if !defined(CDECL) 15 #if !defined(CDECL)
16 #define CDECL __cdecl 16 #define CDECL __cdecl
17 #endif 17 #endif
18 #define APPLICATION_EXPORT __declspec(dllexport) 18 #define APPLICATION_EXPORT __declspec(dllexport)
19 #else 19 #else
20 #define CDECL 20 #define CDECL
21 #define APPLICATION_EXPORT __attribute__((visibility("default"))) 21 #define APPLICATION_EXPORT __attribute__((visibility("default")))
22 #endif 22 #endif
23 23
24 // DSOs can either implement MojoMain directly or utilize the 24 // DSOs can either implement MojoMain directly or include
25 // mojo_main_{standalone|chromium} gyp targets and implement 25 // mojo_main_{standalone|chromium}.cc in their project and implement
26 // Application::Create(); 26 // Application::Create();
27 // TODO(davemoore): Establish this as part of our SDK for third party mojo 27 // TODO(davemoore): Establish this as part of our SDK for third party mojo
28 // application writers. 28 // application writers.
29 extern "C" APPLICATION_EXPORT MojoResult CDECL MojoMain( 29 extern "C" APPLICATION_EXPORT MojoResult CDECL MojoMain(
30 MojoHandle service_provider_handle); 30 MojoHandle service_provider_handle);
31 31
32 namespace mojo { 32 namespace mojo {
33 33
34 // Utility class for creating ServiceProviders that vend service instances. 34 // Utility class for creating ServiceProviders that vend service instances.
35 // To use define a class that implements your specific server api, e.g. FooImpl 35 // To use define a class that implements your specific server api, e.g. FooImpl
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 internal::ServiceConnectorBase* service_connector) MOJO_OVERRIDE; 120 internal::ServiceConnectorBase* service_connector) MOJO_OVERRIDE;
121 121
122 typedef std::map<std::string, internal::ServiceConnectorBase*> 122 typedef std::map<std::string, internal::ServiceConnectorBase*>
123 NameToServiceConnectorMap; 123 NameToServiceConnectorMap;
124 NameToServiceConnectorMap name_to_service_connector_; 124 NameToServiceConnectorMap name_to_service_connector_;
125 }; 125 };
126 126
127 } // namespace mojo 127 } // namespace mojo
128 128
129 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_H_ 129 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_H_
OLDNEW
« no previous file with comments | « mojo/mojo_services.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698