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.
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_
8 #include "content/public/common/context_menu_params.h"
10 class ContextMenuContentType;
16 class ContextMenuContentTypeFactory {
18 static ContextMenuContentType* Create(
19 content::WebContents* web_contents,
20 const content::ContextMenuParams& params);
22 // Sets the chrome specific url checker for internal resources.
23 // This is exposed for tests.
24 static ContextMenuContentType* SetInternalResourcesURLChecker(
25 ContextMenuContentType* content_type);
28 ContextMenuContentTypeFactory();
29 virtual ~ContextMenuContentTypeFactory();
31 static ContextMenuContentType* CreateInternal(
32 content::WebContents* web_contents,
33 const content::ContextMenuParams& params);
35 DISALLOW_COPY_AND_ASSIGN(ContextMenuContentTypeFactory);
38 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_CONTEXT_MENU_CONTENT_TYPE_FACTORY_H_