| Index: content/browser/plugin_service_filter.h
|
| diff --git a/content/browser/plugin_service_filter.h b/content/browser/plugin_service_filter.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3c47fac51555b251ff9f8dfe9d130cdb0f82253a
|
| --- /dev/null
|
| +++ b/content/browser/plugin_service_filter.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright (c) 2011 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 CONTENT_BROWSER_PLUGIN_FILTER_H_
|
| +#define CONTENT_BROWSER_PLUGIN_FILTER_H_
|
| +#pragma once
|
| +
|
| +class GURL;
|
| +
|
| +namespace webkit {
|
| +namespace npapi {
|
| +struct WebPluginInfo;
|
| +}
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +class BrowserContext;
|
| +
|
| +// Callback class to let the client filter the list of all installed plug-ins.
|
| +// This class is called on the FILE thread.
|
| +class PluginServiceFilter {
|
| + public:
|
| + virtual ~PluginServiceFilter() {}
|
| + // Whether to use |plugin|. The client can return false to disallow the
|
| + // plugin, or return true and optionally change the passed in plugin.
|
| + virtual bool ShouldUsePlugin(
|
| + int render_process_id,
|
| + int render_view_id,
|
| + BrowserContext* browser_context,
|
| + const GURL& url,
|
| + const GURL& policy_url,
|
| + webkit::npapi::WebPluginInfo* plugin) const = 0;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_PLUGIN_FILTER_H_
|
|
|