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

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

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
« no previous file with comments | « content/shell/browser/shell_plugin_service_filter.h ('k') | content/test/fake_plugin_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/shell/browser/shell_plugin_service_filter.h" 5 #include "content/shell/browser/shell_plugin_service_filter.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "content/public/common/webplugininfo.h" 8 #include "content/public/common/webplugininfo.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 ShellPluginServiceFilter::ShellPluginServiceFilter() {} 12 ShellPluginServiceFilter::ShellPluginServiceFilter() {}
13 13
14 ShellPluginServiceFilter::~ShellPluginServiceFilter() {} 14 ShellPluginServiceFilter::~ShellPluginServiceFilter() {}
15 15
16 bool ShellPluginServiceFilter::IsPluginAvailable( 16 bool ShellPluginServiceFilter::IsPluginAvailable(
17 int render_process_id, 17 int render_process_id,
18 int render_frame_id, 18 int render_frame_id,
19 const void* context, 19 const void* context,
20 const GURL& url, 20 const GURL& url,
21 const GURL& policy_url, 21 const url::Origin& main_frame_origin,
22 WebPluginInfo* plugin) { 22 WebPluginInfo* plugin) {
23 return plugin->name == base::ASCIIToUTF16("Blink Test Plugin") || 23 return plugin->name == base::ASCIIToUTF16("Blink Test Plugin") ||
24 plugin->name == base::ASCIIToUTF16("Blink Deprecated Test Plugin") || 24 plugin->name == base::ASCIIToUTF16("Blink Deprecated Test Plugin") ||
25 plugin->name == base::ASCIIToUTF16("WebKit Test PlugIn"); 25 plugin->name == base::ASCIIToUTF16("WebKit Test PlugIn");
26 } 26 }
27 27
28 bool ShellPluginServiceFilter::CanLoadPlugin(int render_process_id, 28 bool ShellPluginServiceFilter::CanLoadPlugin(int render_process_id,
29 const base::FilePath& path) { 29 const base::FilePath& path) {
30 return true; 30 return true;
31 } 31 }
32 32
33 } // namespace content 33 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_plugin_service_filter.h ('k') | content/test/fake_plugin_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698