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

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

Issue 338523007: Pepper: Whitelist dev channel APIs for some apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gross pnacl hack Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/plugin_service_impl.h ('k') | content/browser/ppapi_plugin_process_host.cc » ('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 (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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 GetPluginPropertyFromWindow( 845 GetPluginPropertyFromWindow(
846 window, kPluginVersionAtomProperty, plugin_version); 846 window, kPluginVersionAtomProperty, plugin_version);
847 return true; 847 return true;
848 } 848 }
849 849
850 bool PluginServiceImpl::IsPluginWindow(HWND window) { 850 bool PluginServiceImpl::IsPluginWindow(HWND window) {
851 return gfx::GetClassName(window) == base::string16(kNativeWindowClassName); 851 return gfx::GetClassName(window) == base::string16(kNativeWindowClassName);
852 } 852 }
853 #endif 853 #endif
854 854
855 bool PluginServiceImpl::PpapiDevChannelSupported() { 855 bool PluginServiceImpl::PpapiDevChannelSupported(
856 BrowserContext* browser_context,
857 const GURL& document_url) {
856 return content::GetContentClient()->browser()-> 858 return content::GetContentClient()->browser()->
857 IsPluginAllowedToUseDevChannelAPIs(); 859 IsPluginAllowedToUseDevChannelAPIs(browser_context, document_url);
858 } 860 }
859 861
860 } // namespace content 862 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl.h ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698