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

Side by Side Diff: content/browser/plugin_service_filter.h

Issue 7477044: Use PluginPrefs in ChromePluginServiceFilter to check whether a plugin is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 CONTENT_BROWSER_PLUGIN_FILTER_H_
6 #define CONTENT_BROWSER_PLUGIN_FILTER_H_
7 #pragma once
8
9 class GURL;
10
11 namespace webkit {
12 namespace npapi {
13 struct WebPluginInfo;
14 }
15 }
16
17 namespace content {
18
19 class ResourceContext;
20
21 // Callback class to let the client filter the list of all installed plug-ins.
22 // This class is called on the FILE thread.
23 class PluginServiceFilter {
24 public:
25 virtual ~PluginServiceFilter() {}
26 // Whether to use |plugin|. The client can return false to disallow the
27 // plugin, or return true and optionally change the passed in plugin.
28 virtual bool ShouldUsePlugin(
29 int render_process_id,
30 int render_view_id,
31 const ResourceContext& resource_context,
32 const GURL& url,
33 const GURL& policy_url,
34 webkit::npapi::WebPluginInfo* plugin) const = 0;
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_BROWSER_PLUGIN_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_service_browsertest.cc ('k') | content/browser/renderer_host/buffered_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698