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

Unified Diff: mandoline/services/core_services/application_delegate_factory.h

Issue 1278803006: Gets //mandoline passing gn check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: notandroid Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: mandoline/services/core_services/application_delegate_factory.h
diff --git a/mandoline/services/core_services/application_delegate_factory.h b/mandoline/services/core_services/application_delegate_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..d92bc68d3bfd7dd1db6ee7094a8e0d7e6d826198
--- /dev/null
+++ b/mandoline/services/core_services/application_delegate_factory.h
@@ -0,0 +1,37 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MANDOLINE_SERVICES_CORE_SERVICES_APPLICATION_DELEGATE_FACTORY_H_
+#define MANDOLINE_SERVICES_CORE_SERVICES_APPLICATION_DELEGATE_FACTORY_H_
+
+#include <string>
+
+#include "base/memory/scoped_ptr.h"
+
+namespace mojo {
+class ApplicationDelegate;
+}
+
+namespace core_services {
+
+// This is always called to create a platform specific ApplicationDelegate.
+scoped_ptr<mojo::ApplicationDelegate> CreatePlatformSpecificApplicationDelegate(
+ const std::string& url);
+
+// The following are conditionally called. You do not need to call these from
+// CreatePlatformSpecificApplicationDelegate(), they are called (if appropriate)
+// before CreatePlatformSpecificApplicationDelegate().
+#if !defined(OS_ANDROID)
+scoped_ptr<mojo::ApplicationDelegate> CreateApplicationDelegateNotAndroid(
+ const std::string& url);
+#endif
+
+#if defined(USE_AURA)
+scoped_ptr<mojo::ApplicationDelegate> CreateApplicationDelegateAura(
+ const std::string& url);
+#endif
+
+} // namespace core_services
+
+#endif // MANDOLINE_SERVICES_CORE_SERVICES_APPLICATION_DELEGATE_FACTORY_H_
« no previous file with comments | « mandoline/services/core_services/BUILD.gn ('k') | mandoline/services/core_services/application_delegate_factory_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698