OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/gfx/blit.h" | 9 #include "app/gfx/blit.h" |
10 #include "app/gfx/canvas.h" | 10 #include "app/gfx/canvas.h" |
| 11 #include "app/gfx/native_widget_types.h" |
11 #include "app/l10n_util.h" | 12 #include "app/l10n_util.h" |
12 #include "app/resource_bundle.h" | 13 #include "app/resource_bundle.h" |
13 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
14 #include "base/file_util.h" | 15 #include "base/file_util.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/ref_counted.h" | 17 #include "base/ref_counted.h" |
17 #include "base/string_util.h" | 18 #include "base/string_util.h" |
18 #include "base/gfx/size.h" | 19 #include "base/gfx/size.h" |
19 #include "base/gfx/native_widget_types.h" | |
20 #include "chrome/common/child_process_logging.h" | 20 #include "chrome/common/child_process_logging.h" |
21 #include "chrome/common/plugin_messages.h" | 21 #include "chrome/common/plugin_messages.h" |
22 #include "chrome/common/render_messages.h" | 22 #include "chrome/common/render_messages.h" |
23 #include "chrome/plugin/npobject_proxy.h" | 23 #include "chrome/plugin/npobject_proxy.h" |
24 #include "chrome/plugin/npobject_stub.h" | 24 #include "chrome/plugin/npobject_stub.h" |
25 #include "chrome/plugin/npobject_util.h" | 25 #include "chrome/plugin/npobject_util.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 "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
29 #include "grit/renderer_resources.h" | 29 #include "grit/renderer_resources.h" |
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { | 1054 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { |
1055 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), | 1055 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), |
1056 existing_stream, notify_needed, | 1056 existing_stream, notify_needed, |
1057 notify_data); | 1057 notify_data); |
1058 } | 1058 } |
1059 | 1059 |
1060 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, | 1060 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, |
1061 bool defer) { | 1061 bool defer) { |
1062 plugin_->SetDeferResourceLoading(resource_id, defer); | 1062 plugin_->SetDeferResourceLoading(resource_id, defer); |
1063 } | 1063 } |
OLD | NEW |