Index: content/public/common/application_registry.h |
diff --git a/content/public/common/application_registry.h b/content/public/common/application_registry.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0e514b302b9c6d9aea9e350cca6def16e7c8f49c |
--- /dev/null |
+++ b/content/public/common/application_registry.h |
@@ -0,0 +1,41 @@ |
+// 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 CONTENT_PUBLIC_COMMON_APPLICATION_REGISTRY_H_ |
+#define CONTENT_PUBLIC_COMMON_APPLICATION_REGISTRY_H_ |
+ |
+#include "base/bind.h" |
+#include "base/macros.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "content/common/content_export.h" |
+ |
+class GURL; |
+ |
+namespace mojo { |
+class ApplicationDelegate; |
+} |
+ |
+namespace content { |
+ |
+// This is the embedder interface used to register URL-to-application mappings. |
+// See ContentBrowserClient::RegisterMojoApplications and |
+// ContentUtilityClient::RegisterMojoApplications. |
+class CONTENT_EXPORT ApplicationRegistry { |
+ public: |
+ using StaticAppFactory = |
+ base::Callback<scoped_ptr<mojo::ApplicationDelegate>()>; |
+ |
+ ApplicationRegistry() {} |
+ virtual ~ApplicationRegistry() {} |
+ |
+ virtual void RegisterStaticAppForURL(const GURL& url, |
+ const StaticAppFactory& factory) = 0; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ApplicationRegistry); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_COMMON_APPLICATION_REGISTRY_H_ |