| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/chrome_plugin_host.h" | 5 #include "chrome/browser/chrome_plugin_host.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/gfx/png_encoder.h" | 11 #include "base/gfx/png_encoder.h" |
| 12 #include "base/histogram.h" | 12 #include "base/histogram.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/perftimer.h" | 15 #include "base/perftimer.h" |
| 16 #include "base/singleton.h" | 16 #include "base/singleton.h" |
| 17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 18 #include "chrome/browser/browser_list.h" | 18 #include "chrome/browser/browser_list.h" |
| 19 #include "chrome/browser/chrome_plugin_browsing_context.h" | 19 #include "chrome/browser/chrome_plugin_browsing_context.h" |
| 20 #include "chrome/browser/chrome_thread.h" | 20 #include "chrome/browser/chrome_thread.h" |
| 21 #include "chrome/browser/dom_ui/html_dialog_contents.h" | 21 #include "chrome/browser/dom_ui/html_dialog_contents.h" |
| 22 #include "chrome/browser/gears_integration.h" | 22 #include "chrome/browser/gears_integration.h" |
| 23 #include "chrome/browser/net/dns_master.h" | |
| 24 #include "chrome/browser/plugin_process_host.h" | 23 #include "chrome/browser/plugin_process_host.h" |
| 25 #include "chrome/browser/plugin_service.h" | 24 #include "chrome/browser/plugin_service.h" |
| 26 #include "chrome/browser/profile.h" | 25 #include "chrome/browser/profile.h" |
| 27 #include "chrome/browser/renderer_host/render_process_host.h" | 26 #include "chrome/browser/renderer_host/render_process_host.h" |
| 28 #include "chrome/common/chrome_constants.h" | 27 #include "chrome/common/chrome_constants.h" |
| 29 #include "chrome/common/chrome_counters.h" | 28 #include "chrome/common/chrome_counters.h" |
| 30 #include "chrome/common/chrome_paths.h" | 29 #include "chrome/common/chrome_paths.h" |
| 31 #include "chrome/common/chrome_plugin_lib.h" | 30 #include "chrome/common/chrome_plugin_lib.h" |
| 32 #include "chrome/common/chrome_plugin_util.h" | 31 #include "chrome/common/chrome_plugin_util.h" |
| 33 #include "chrome/common/chrome_switches.h" | 32 #include "chrome/common/chrome_switches.h" |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 void CPHandleCommand(int command, CPCommandInterface* data, | 798 void CPHandleCommand(int command, CPCommandInterface* data, |
| 800 CPBrowsingContext context) { | 799 CPBrowsingContext context) { |
| 801 // Sadly if we try and pass context through, we seem to break cl's little | 800 // Sadly if we try and pass context through, we seem to break cl's little |
| 802 // brain trying to compile the Tuple3 ctor. This cast works. | 801 // brain trying to compile the Tuple3 ctor. This cast works. |
| 803 int32 context_as_int32 = static_cast<int32>(context); | 802 int32 context_as_int32 = static_cast<int32>(context); |
| 804 // Plugins can only be accessed on the IO thread. | 803 // Plugins can only be accessed on the IO thread. |
| 805 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, | 804 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, |
| 806 NewRunnableFunction(PluginCommandHandler::HandleCommand, | 805 NewRunnableFunction(PluginCommandHandler::HandleCommand, |
| 807 command, data, context_as_int32)); | 806 command, data, context_as_int32)); |
| 808 } | 807 } |
| OLD | NEW |