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

Side by Side Diff: content/browser/plugin_service_impl.cc

Issue 2378573005: [HBD] Blanket BLOCK on all non-HTTP(s) and non-FILE URLs for Flash. (Closed)
Patch Set: fix formatting 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/plugin_service_impl.h" 5 #include "content/browser/plugin_service_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 bool use_stale = false; 235 bool use_stale = false;
236 PluginList::Singleton()->GetPluginInfoArray( 236 PluginList::Singleton()->GetPluginInfoArray(
237 url, mime_type, allow_wildcard, &use_stale, plugins, actual_mime_types); 237 url, mime_type, allow_wildcard, &use_stale, plugins, actual_mime_types);
238 return use_stale; 238 return use_stale;
239 } 239 }
240 240
241 bool PluginServiceImpl::GetPluginInfo(int render_process_id, 241 bool PluginServiceImpl::GetPluginInfo(int render_process_id,
242 int render_frame_id, 242 int render_frame_id,
243 ResourceContext* context, 243 ResourceContext* context,
244 const GURL& url, 244 const GURL& url,
245 const GURL& page_url, 245 const url::Origin& page_url,
246 const std::string& mime_type, 246 const std::string& mime_type,
247 bool allow_wildcard, 247 bool allow_wildcard,
248 bool* is_stale, 248 bool* is_stale,
249 WebPluginInfo* info, 249 WebPluginInfo* info,
250 std::string* actual_mime_type) { 250 std::string* actual_mime_type) {
251 std::vector<WebPluginInfo> plugins; 251 std::vector<WebPluginInfo> plugins;
252 std::vector<std::string> mime_types; 252 std::vector<std::string> mime_types;
253 bool stale = GetPluginInfoArray( 253 bool stale = GetPluginInfoArray(
254 url, mime_type, allow_wildcard, &plugins, &mime_types); 254 url, mime_type, allow_wildcard, &plugins, &mime_types);
255 if (is_stale) 255 if (is_stale)
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 417 }
418 418
419 bool PluginServiceImpl::PpapiDevChannelSupported( 419 bool PluginServiceImpl::PpapiDevChannelSupported(
420 BrowserContext* browser_context, 420 BrowserContext* browser_context,
421 const GURL& document_url) { 421 const GURL& document_url) {
422 return GetContentClient()->browser()->IsPluginAllowedToUseDevChannelAPIs( 422 return GetContentClient()->browser()->IsPluginAllowedToUseDevChannelAPIs(
423 browser_context, document_url); 423 browser_context, document_url);
424 } 424 }
425 425
426 } // namespace content 426 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698