| 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" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
| 30 #include "chrome/common/chrome_counters.h" | 30 #include "chrome/common/chrome_counters.h" |
| 31 #include "chrome/common/chrome_paths.h" | 31 #include "chrome/common/chrome_paths.h" |
| 32 #include "chrome/common/chrome_plugin_lib.h" | 32 #include "chrome/common/chrome_plugin_lib.h" |
| 33 #include "chrome/common/chrome_plugin_util.h" | 33 #include "chrome/common/chrome_plugin_util.h" |
| 34 #include "chrome/common/chrome_switches.h" | 34 #include "chrome/common/chrome_switches.h" |
| 35 #include "chrome/common/gears_api.h" | 35 #include "chrome/common/gears_api.h" |
| 36 #include "chrome/common/notification_service.h" | 36 #include "chrome/common/notification_service.h" |
| 37 #include "chrome/common/net/url_request_intercept_job.h" | 37 #include "chrome/common/net/url_request_intercept_job.h" |
| 38 #include "chrome/common/plugin_messages.h" | 38 #include "chrome/common/plugin_messages.h" |
| 39 #include "chrome/common/render_messages.h" |
| 39 | 40 |
| 40 #include "base/gfx/png_encoder.h" | 41 #include "base/gfx/png_encoder.h" |
| 41 #include "base/logging.h" | 42 #include "base/logging.h" |
| 42 #include "base/string_util.h" | 43 #include "base/string_util.h" |
| 43 #include "googleurl/src/gurl.h" | 44 #include "googleurl/src/gurl.h" |
| 44 #include "net/base/base64.h" | 45 #include "net/base/base64.h" |
| 45 #include "skia/include/SkBitmap.h" | 46 #include "skia/include/SkBitmap.h" |
| 46 | 47 |
| 47 using base::TimeDelta; | 48 using base::TimeDelta; |
| 48 | 49 |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 void CPHandleCommand(int command, CPCommandInterface* data, | 796 void CPHandleCommand(int command, CPCommandInterface* data, |
| 796 CPBrowsingContext context) { | 797 CPBrowsingContext context) { |
| 797 // Sadly if we try and pass context through, we seem to break cl's little | 798 // Sadly if we try and pass context through, we seem to break cl's little |
| 798 // brain trying to compile the Tuple3 ctor. This cast works. | 799 // brain trying to compile the Tuple3 ctor. This cast works. |
| 799 int32 context_as_int32 = static_cast<int32>(context); | 800 int32 context_as_int32 = static_cast<int32>(context); |
| 800 // Plugins can only be accessed on the IO thread. | 801 // Plugins can only be accessed on the IO thread. |
| 801 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, | 802 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, |
| 802 NewRunnableFunction(PluginCommandHandler::HandleCommand, | 803 NewRunnableFunction(PluginCommandHandler::HandleCommand, |
| 803 command, data, context_as_int32)); | 804 command, data, context_as_int32)); |
| 804 } | 805 } |
| OLD | NEW |