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> |
11 #endif | 11 #endif |
12 | 12 |
| 13 #include "app/l10n_util.h" |
13 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
14 #include "base/logging.h" | 15 #include "base/logging.h" |
15 #include "base/ref_counted.h" | 16 #include "base/ref_counted.h" |
16 #include "base/string_util.h" | 17 #include "base/string_util.h" |
17 #include "base/gfx/size.h" | 18 #include "base/gfx/size.h" |
18 #include "base/gfx/native_widget_types.h" | 19 #include "base/gfx/native_widget_types.h" |
19 #include "chrome/app/chrome_dll_resource.h" | 20 #include "chrome/app/chrome_dll_resource.h" |
20 #include "chrome/common/gfx/chrome_canvas.h" | 21 #include "chrome/common/gfx/chrome_canvas.h" |
21 #include "chrome/common/l10n_util.h" | |
22 #include "chrome/common/plugin_messages.h" | 22 #include "chrome/common/plugin_messages.h" |
23 #include "chrome/common/render_messages.h" | 23 #include "chrome/common/render_messages.h" |
24 #include "chrome/plugin/npobject_proxy.h" | 24 #include "chrome/plugin/npobject_proxy.h" |
25 #include "chrome/plugin/npobject_stub.h" | 25 #include "chrome/plugin/npobject_stub.h" |
26 #include "chrome/renderer/render_thread.h" | 26 #include "chrome/renderer/render_thread.h" |
27 #include "chrome/renderer/render_view.h" | 27 #include "chrome/renderer/render_view.h" |
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" |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 plugin_->CancelDocumentLoad(); | 825 plugin_->CancelDocumentLoad(); |
826 } | 826 } |
827 | 827 |
828 void WebPluginDelegateProxy::OnInitiateHTTPRangeRequest( | 828 void WebPluginDelegateProxy::OnInitiateHTTPRangeRequest( |
829 const std::string& url, const std::string& range_info, | 829 const std::string& url, const std::string& range_info, |
830 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { | 830 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { |
831 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), | 831 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), |
832 existing_stream, notify_needed, | 832 existing_stream, notify_needed, |
833 notify_data); | 833 notify_data); |
834 } | 834 } |
OLD | NEW |