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