OLD | NEW |
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 Loading... |
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 |
OLD | NEW |