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

Unified Diff: ash/link_handler_model_factory.h

Issue 1760773004: Add "Open with <ARC-app-name>" items to the context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address dcheng's comment Created 4 years, 8 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
« no previous file with comments | « ash/link_handler_model.cc ('k') | ash/link_handler_model_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/link_handler_model_factory.h
diff --git a/ash/link_handler_model_factory.h b/ash/link_handler_model_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..f39fef3f4fd7d741f64566ce4476fcf5b9a86d32
--- /dev/null
+++ b/ash/link_handler_model_factory.h
@@ -0,0 +1,35 @@
+// Copyright 2016 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 ASH_LINK_HANDLER_MODEL_FACTORY_H_
+#define ASH_LINK_HANDLER_MODEL_FACTORY_H_
+
+#include <memory>
+
+#include "ash/ash_export.h"
+#include "base/macros.h"
+
+class GURL;
+
+namespace ash {
+
+class LinkHandlerModel;
+
+// A class for creating a LinkHandlerModel object.
+class ASH_EXPORT LinkHandlerModelFactory {
+ public:
+ LinkHandlerModelFactory();
+ virtual ~LinkHandlerModelFactory();
+
+ // Returns a model for the |url|. When such a model for the |url| cannot be
+ // created, returns nullptr.
+ virtual std::unique_ptr<LinkHandlerModel> CreateModel(const GURL& url);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(LinkHandlerModelFactory);
+};
+
+} // namespace ash
+
+#endif // ASH_LINK_HANDLER_MODEL_FACTORY_H_
« no previous file with comments | « ash/link_handler_model.cc ('k') | ash/link_handler_model_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698