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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef ASH_LINK_HANDLER_MODEL_FACTORY_H_
6 #define ASH_LINK_HANDLER_MODEL_FACTORY_H_
7
8 #include <memory>
9
10 #include "ash/ash_export.h"
11 #include "base/macros.h"
12
13 class GURL;
14
15 namespace ash {
16
17 class LinkHandlerModel;
18
19 // A class for creating a LinkHandlerModel object.
20 class ASH_EXPORT LinkHandlerModelFactory {
21 public:
22 LinkHandlerModelFactory();
23 virtual ~LinkHandlerModelFactory();
24
25 // Returns a model for the |url|. When such a model for the |url| cannot be
26 // created, returns nullptr.
27 virtual std::unique_ptr<LinkHandlerModel> CreateModel(const GURL& url);
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(LinkHandlerModelFactory);
31 };
32
33 } // namespace ash
34
35 #endif // ASH_LINK_HANDLER_MODEL_FACTORY_H_
OLDNEW
« 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