| 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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 | 627 |
| 628 #if defined(OS_POSIX) | 628 #if defined(OS_POSIX) |
| 629 void PluginServiceImpl::GetPluginsOnIOThread( | 629 void PluginServiceImpl::GetPluginsOnIOThread( |
| 630 base::MessageLoopProxy* target_loop, | 630 base::MessageLoopProxy* target_loop, |
| 631 const GetPluginsCallback& callback) { | 631 const GetPluginsCallback& callback) { |
| 632 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 632 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 633 | 633 |
| 634 // If we switch back to loading plugins in process, then we need to make | 634 // If we switch back to loading plugins in process, then we need to make |
| 635 // sure g_thread_init() gets called since plugins may call glib at load. | 635 // sure g_thread_init() gets called since plugins may call glib at load. |
| 636 | 636 |
| 637 if (!plugin_loader_) | 637 if (!plugin_loader_.get()) |
| 638 plugin_loader_ = new PluginLoaderPosix; | 638 plugin_loader_ = new PluginLoaderPosix; |
| 639 | 639 |
| 640 plugin_loader_->GetPlugins( | 640 plugin_loader_->GetPlugins( |
| 641 base::Bind(&ForwardCallback, make_scoped_refptr(target_loop), callback)); | 641 base::Bind(&ForwardCallback, make_scoped_refptr(target_loop), callback)); |
| 642 } | 642 } |
| 643 #endif | 643 #endif |
| 644 | 644 |
| 645 void PluginServiceImpl::OnWaitableEventSignaled( | 645 void PluginServiceImpl::OnWaitableEventSignaled( |
| 646 base::WaitableEvent* waitable_event) { | 646 base::WaitableEvent* waitable_event) { |
| 647 #if defined(OS_WIN) | 647 #if defined(OS_WIN) |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 #endif | 854 #endif |
| 855 | 855 |
| 856 bool PluginServiceImpl::PpapiDevChannelSupported( | 856 bool PluginServiceImpl::PpapiDevChannelSupported( |
| 857 BrowserContext* browser_context, | 857 BrowserContext* browser_context, |
| 858 const GURL& document_url) { | 858 const GURL& document_url) { |
| 859 return content::GetContentClient()->browser()-> | 859 return content::GetContentClient()->browser()-> |
| 860 IsPluginAllowedToUseDevChannelAPIs(browser_context, document_url); | 860 IsPluginAllowedToUseDevChannelAPIs(browser_context, document_url); |
| 861 } | 861 } |
| 862 | 862 |
| 863 } // namespace content | 863 } // namespace content |
| OLD | NEW |