| 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/plugin/webplugin_delegate_stub.h" |    5 #include "chrome/plugin/webplugin_delegate_stub.h" | 
|    6  |    6  | 
|    7 #include "build/build_config.h" |    7 #include "build/build_config.h" | 
|    8  |    8  | 
|    9 #include "base/command_line.h" |    9 #include "base/command_line.h" | 
|   10 #include "chrome/common/chrome_switches.h" |   10 #include "chrome/common/chrome_switches.h" | 
|   11 #include "chrome/common/plugin_messages.h" |   11 #include "chrome/common/plugin_messages.h" | 
|   12 #include "chrome/plugin/npobject_stub.h" |   12 #include "chrome/plugin/npobject_stub.h" | 
|   13 #include "chrome/plugin/plugin_channel.h" |   13 #include "chrome/plugin/plugin_channel.h" | 
|   14 #include "chrome/plugin/plugin_thread.h" |   14 #include "chrome/plugin/plugin_thread.h" | 
|   15 #include "chrome/plugin/webplugin_proxy.h" |   15 #include "chrome/plugin/webplugin_proxy.h" | 
|   16 #include "third_party/npapi/bindings/npapi.h" |   16 #include "third_party/npapi/bindings/npapi.h" | 
|   17 #include "third_party/npapi/bindings/npruntime.h" |   17 #include "third_party/npapi/bindings/npruntime.h" | 
|   18 #include "skia/ext/platform_device.h" |   18 #include "skia/ext/platform_device.h" | 
|   19 #include "webkit/glue/webcursor.h" |   19 #include "webkit/glue/webcursor.h" | 
|   20 #include "webkit/glue/webplugin_delegate.h" |   20 #include "webkit/glue/webplugin_delegate.h" | 
|   21  |   21  | 
|   22 #if defined(OS_WIN) |   22 #if defined(OS_WIN) | 
|   23 #include "chrome/common/gfx/emf.h" |   23 #include "chrome/common/gfx/emf.h" | 
|   24 #include "chrome/common/win_util.h" |  | 
|   25 #endif |   24 #endif | 
|   26  |   25  | 
|   27 class FinishDestructionTask : public Task { |   26 class FinishDestructionTask : public Task { | 
|   28  public: |   27  public: | 
|   29   FinishDestructionTask(WebPluginDelegate* delegate, WebPlugin* webplugin) |   28   FinishDestructionTask(WebPluginDelegate* delegate, WebPlugin* webplugin) | 
|   30     : delegate_(delegate), webplugin_(webplugin) { } |   29     : delegate_(delegate), webplugin_(webplugin) { } | 
|   31  |   30  | 
|   32   void Run() { |   31   void Run() { | 
|   33     // WebPlugin must outlive WebPluginDelegate. |   32     // WebPlugin must outlive WebPluginDelegate. | 
|   34     if (delegate_) |   33     if (delegate_) | 
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  360                                       params.notify_data, |  359                                       params.notify_data, | 
|  361                                       params.stream); |  360                                       params.stream); | 
|  362   webplugin_->OnResourceCreated(params.resource_id, resource_client); |  361   webplugin_->OnResourceCreated(params.resource_id, resource_client); | 
|  363 } |  362 } | 
|  364  |  363  | 
|  365 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, |  364 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, | 
|  366                                                bool notify_needed, |  365                                                bool notify_needed, | 
|  367                                                intptr_t notify_data) { |  366                                                intptr_t notify_data) { | 
|  368   delegate_->URLRequestRouted(url, notify_needed, notify_data); |  367   delegate_->URLRequestRouted(url, notify_needed, notify_data); | 
|  369 } |  368 } | 
| OLD | NEW |