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

Side by Side Diff: content/shell/browser/shell_plugin_service_filter.h

Issue 2378573005: [HBD] Blanket BLOCK on all non-HTTP(s) and non-FILE URLs for Flash. (Closed)
Patch Set: fix dat merge Created 4 years, 2 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
OLDNEW
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_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/shell/browser/shell_plugin_service_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698