Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / shell / browser / shell_plugin_service_filter.h
1 // Copyright 2013 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_SHELL_BROWSER_SHELL_PLUGIN_SERVICE_FILTER_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_PLUGIN_SERVICE_FILTER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/plugin_service_filter.h"
11
12 namespace content {
13
14 class ShellPluginServiceFilter : public PluginServiceFilter {
15  public:
16   ShellPluginServiceFilter();
17   ~ShellPluginServiceFilter() override;
18
19   // PluginServiceFilter implementation.
20   bool IsPluginAvailable(int render_process_id,
21                          int render_frame_id,
22                          const void* context,
23                          const GURL& url,
24                          const GURL& policy_url,
25                          WebPluginInfo* plugin) override;
26
27   bool CanLoadPlugin(int render_process_id,
28                      const base::FilePath& path) override;
29
30  private:
31
32   DISALLOW_COPY_AND_ASSIGN(ShellPluginServiceFilter);
33 };
34
35 }  // namespace content
36
37 #endif  // CONTENT_SHELL_BROWSER_SHELL_PLUGIN_SERVICE_FILTER_H_