OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/browser_plugin/browser_plugin_guest.h" | 5 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "content/browser/browser_plugin/browser_plugin_embedder.h" | 12 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
13 #include "content/browser/browser_plugin/browser_plugin_guest_manager.h" | 13 #include "content/browser/browser_plugin/browser_plugin_guest_manager.h" |
14 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" | 14 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" |
15 #include "content/browser/browser_thread_impl.h" | 15 #include "content/browser/browser_thread_impl.h" |
16 #include "content/browser/child_process_security_policy_impl.h" | 16 #include "content/browser/child_process_security_policy_impl.h" |
17 #include "content/browser/frame_host/render_frame_host_impl.h" | 17 #include "content/browser/frame_host/render_frame_host_impl.h" |
18 #include "content/browser/frame_host/render_widget_host_view_guest.h" | 18 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
19 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 19 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 20 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
20 #include "content/browser/renderer_host/render_view_host_impl.h" | 21 #include "content/browser/renderer_host/render_view_host_impl.h" |
21 #include "content/browser/renderer_host/render_widget_host_impl.h" | 22 #include "content/browser/renderer_host/render_widget_host_impl.h" |
22 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 23 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
23 #include "content/browser/web_contents/web_contents_impl.h" | 24 #include "content/browser/web_contents/web_contents_impl.h" |
24 #include "content/browser/web_contents/web_contents_view_guest.h" | 25 #include "content/browser/web_contents/web_contents_view_guest.h" |
25 #include "content/common/browser_plugin/browser_plugin_constants.h" | 26 #include "content/common/browser_plugin/browser_plugin_constants.h" |
26 #include "content/common/browser_plugin/browser_plugin_messages.h" | 27 #include "content/common/browser_plugin/browser_plugin_messages.h" |
27 #include "content/common/content_constants_internal.h" | 28 #include "content/common/content_constants_internal.h" |
28 #include "content/common/drag_messages.h" | 29 #include "content/common/drag_messages.h" |
29 #include "content/common/input_messages.h" | 30 #include "content/common/input_messages.h" |
30 #include "content/common/view_messages.h" | 31 #include "content/common/view_messages.h" |
31 #include "content/port/browser/render_view_host_delegate_view.h" | |
32 #include "content/public/browser/browser_context.h" | 32 #include "content/public/browser/browser_context.h" |
33 #include "content/public/browser/content_browser_client.h" | 33 #include "content/public/browser/content_browser_client.h" |
34 #include "content/public/browser/navigation_controller.h" | 34 #include "content/public/browser/navigation_controller.h" |
35 #include "content/public/browser/render_widget_host_view.h" | 35 #include "content/public/browser/render_widget_host_view.h" |
36 #include "content/public/browser/user_metrics.h" | 36 #include "content/public/browser/user_metrics.h" |
37 #include "content/public/browser/web_contents_observer.h" | 37 #include "content/public/browser/web_contents_observer.h" |
38 #include "content/public/common/context_menu_params.h" | 38 #include "content/public/common/context_menu_params.h" |
39 #include "content/public/common/drop_data.h" | 39 #include "content/public/common/drop_data.h" |
40 #include "content/public/common/media_stream_request.h" | 40 #include "content/public/common/media_stream_request.h" |
41 #include "content/public/common/result_codes.h" | 41 #include "content/public/common/result_codes.h" |
(...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1532 const GURL& url) { | 1532 const GURL& url) { |
1533 if (!url.is_valid()) { | 1533 if (!url.is_valid()) { |
1534 callback.Run(false); | 1534 callback.Run(false); |
1535 return; | 1535 return; |
1536 } | 1536 } |
1537 | 1537 |
1538 delegate_->CanDownload(request_method, url, callback); | 1538 delegate_->CanDownload(request_method, url, callback); |
1539 } | 1539 } |
1540 | 1540 |
1541 } // namespace content | 1541 } // namespace content |
OLD | NEW |