Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / renderer_context_menu / context_menu_content_type_factory.h
1 // Copyright 2014 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 CHROME_BROWSER_RENDERER_CONTEXT_MENU_CONTEXT_MENU_CONTENT_TYPE_FACTORY_H_
6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_CONTEXT_MENU_CONTENT_TYPE_FACTORY_H_
7
8 #include "content/public/common/context_menu_params.h"
9
10 class ContextMenuContentType;
11
12 namespace content {
13 class WebContents;
14 }
15
16 class ContextMenuContentTypeFactory {
17  public:
18   static ContextMenuContentType* Create(
19       content::WebContents* web_contents,
20       const content::ContextMenuParams& params);
21
22   // Sets the chrome specific url checker for internal resources.
23   // This is exposed for tests.
24   static ContextMenuContentType* SetInternalResourcesURLChecker(
25       ContextMenuContentType* content_type);
26
27  private:
28   ContextMenuContentTypeFactory();
29   virtual ~ContextMenuContentTypeFactory();
30
31   static ContextMenuContentType* CreateInternal(
32       content::WebContents* web_contents,
33       const content::ContextMenuParams& params);
34
35   DISALLOW_COPY_AND_ASSIGN(ContextMenuContentTypeFactory);
36 };
37
38 #endif  // CHROME_BROWSER_RENDERER_CONTEXT_MENU_CONTEXT_MENU_CONTENT_TYPE_FACTORY_H_