| 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/renderer/webplugin_delegate_proxy.h" | 5 #include "chrome/renderer/webplugin_delegate_proxy.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <atlbase.h> | 10 #include <atlbase.h> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "googleurl/src/gurl.h" | 28 #include "googleurl/src/gurl.h" |
| 29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
| 30 #include "net/base/mime_util.h" | 30 #include "net/base/mime_util.h" |
| 31 #include "webkit/glue/webframe.h" | 31 #include "webkit/glue/webframe.h" |
| 32 #include "webkit/glue/webkit_glue.h" | 32 #include "webkit/glue/webkit_glue.h" |
| 33 #include "webkit/glue/webplugin.h" | 33 #include "webkit/glue/webplugin.h" |
| 34 #include "webkit/glue/webview.h" | 34 #include "webkit/glue/webview.h" |
| 35 | 35 |
| 36 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
| 37 #include "chrome/common/gfx/emf.h" | 37 #include "chrome/common/gfx/emf.h" |
| 38 #include "chrome/common/win_util.h" | |
| 39 #endif | 38 #endif |
| 40 | 39 |
| 41 // Proxy for WebPluginResourceClient. The object owns itself after creation, | 40 // Proxy for WebPluginResourceClient. The object owns itself after creation, |
| 42 // deleting itself after its callback has been called. | 41 // deleting itself after its callback has been called. |
| 43 class ResourceClientProxy : public WebPluginResourceClient { | 42 class ResourceClientProxy : public WebPluginResourceClient { |
| 44 public: | 43 public: |
| 45 ResourceClientProxy(PluginChannelHost* channel, int instance_id) | 44 ResourceClientProxy(PluginChannelHost* channel, int instance_id) |
| 46 : channel_(channel), instance_id_(instance_id), resource_id_(0), | 45 : channel_(channel), instance_id_(instance_id), resource_id_(0), |
| 47 notify_needed_(false), notify_data_(NULL), | 46 notify_needed_(false), notify_data_(NULL), |
| 48 multibyte_response_expected_(false) { | 47 multibyte_response_expected_(false) { |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 plugin_->CancelDocumentLoad(); | 824 plugin_->CancelDocumentLoad(); |
| 826 } | 825 } |
| 827 | 826 |
| 828 void WebPluginDelegateProxy::OnInitiateHTTPRangeRequest( | 827 void WebPluginDelegateProxy::OnInitiateHTTPRangeRequest( |
| 829 const std::string& url, const std::string& range_info, | 828 const std::string& url, const std::string& range_info, |
| 830 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { | 829 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { |
| 831 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), | 830 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), |
| 832 existing_stream, notify_needed, | 831 existing_stream, notify_needed, |
| 833 notify_data); | 832 notify_data); |
| 834 } | 833 } |
| OLD | NEW |