OLD | NEW |
| (Empty) |
1 // Copyright 2015 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 MANDOLINE_SERVICES_CORE_SERVICES_APPLICATION_DELEGATE_FACTORY_H_ | |
6 #define MANDOLINE_SERVICES_CORE_SERVICES_APPLICATION_DELEGATE_FACTORY_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/memory/scoped_ptr.h" | |
11 | |
12 namespace mojo { | |
13 class ShellClient; | |
14 } | |
15 | |
16 namespace core_services { | |
17 | |
18 // This is always called to create a platform specific ShellClient. | |
19 scoped_ptr<mojo::ShellClient> CreatePlatformSpecificApplicationDelegate( | |
20 const std::string& url); | |
21 | |
22 // The following are conditionally called. You do not need to call these from | |
23 // CreatePlatformSpecificApplicationDelegate(), they are called (if appropriate) | |
24 // before CreatePlatformSpecificApplicationDelegate(). | |
25 #if !defined(OS_ANDROID) | |
26 scoped_ptr<mojo::ShellClient> CreateApplicationDelegateNotAndroid( | |
27 const std::string& url); | |
28 #endif | |
29 | |
30 } // namespace core_services | |
31 | |
32 #endif // MANDOLINE_SERVICES_CORE_SERVICES_APPLICATION_DELEGATE_FACTORY_H_ | |
OLD | NEW |