OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_SHELL_BROWSER_SHELL_PLUGIN_SERVICE_FILTER_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_PLUGIN_SERVICE_FILTER_H_ |
6 #define CONTENT_SHELL_BROWSER_SHELL_PLUGIN_SERVICE_FILTER_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_PLUGIN_SERVICE_FILTER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "content/public/browser/plugin_service_filter.h" | 10 #include "content/public/browser/plugin_service_filter.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class ShellPluginServiceFilter : public PluginServiceFilter { | 14 class ShellPluginServiceFilter : public PluginServiceFilter { |
15 public: | 15 public: |
16 ShellPluginServiceFilter(); | 16 ShellPluginServiceFilter(); |
17 ~ShellPluginServiceFilter() override; | 17 ~ShellPluginServiceFilter() override; |
18 | 18 |
19 // PluginServiceFilter implementation. | 19 // PluginServiceFilter implementation. |
20 bool IsPluginAvailable(int render_process_id, | 20 bool IsPluginAvailable(int render_process_id, |
21 int render_frame_id, | 21 int render_frame_id, |
22 const void* context, | 22 const void* context, |
23 const GURL& url, | 23 const GURL& url, |
24 const GURL& policy_url, | 24 const url::Origin& main_frame_origin, |
25 WebPluginInfo* plugin) override; | 25 WebPluginInfo* plugin) override; |
26 | 26 |
27 bool CanLoadPlugin(int render_process_id, | 27 bool CanLoadPlugin(int render_process_id, |
28 const base::FilePath& path) override; | 28 const base::FilePath& path) override; |
29 | 29 |
30 private: | 30 private: |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(ShellPluginServiceFilter); | 32 DISALLOW_COPY_AND_ASSIGN(ShellPluginServiceFilter); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace content | 35 } // namespace content |
36 | 36 |
37 #endif // CONTENT_SHELL_BROWSER_SHELL_PLUGIN_SERVICE_FILTER_H_ | 37 #endif // CONTENT_SHELL_BROWSER_SHELL_PLUGIN_SERVICE_FILTER_H_ |
OLD | NEW |