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.
5 #ifndef MANDOLINE_SERVICES_CORE_SERVICES_APPLICATION_DELEGATE_FACTORY_H_
6 #define MANDOLINE_SERVICES_CORE_SERVICES_APPLICATION_DELEGATE_FACTORY_H_
10 #include "base/memory/scoped_ptr.h"
13 class ApplicationDelegate
;
16 namespace core_services
{
18 // This is always called to create a platform specific ApplicationDelegate.
19 scoped_ptr
<mojo::ApplicationDelegate
> CreatePlatformSpecificApplicationDelegate(
20 const std::string
& url
);
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::ApplicationDelegate
> CreateApplicationDelegateNotAndroid(
27 const std::string
& url
);
31 scoped_ptr
<mojo::ApplicationDelegate
> CreateApplicationDelegateAura(
32 const std::string
& url
);
35 } // namespace core_services
37 #endif // MANDOLINE_SERVICES_CORE_SERVICES_APPLICATION_DELEGATE_FACTORY_H_