Chromium Code Reviews| 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/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 #include "content/renderer/mhtml_generator.h" | 95 #include "content/renderer/mhtml_generator.h" |
| 96 #include "content/renderer/push_messaging_dispatcher.h" | 96 #include "content/renderer/push_messaging_dispatcher.h" |
| 97 #include "content/renderer/render_frame_impl.h" | 97 #include "content/renderer/render_frame_impl.h" |
| 98 #include "content/renderer/render_frame_proxy.h" | 98 #include "content/renderer/render_frame_proxy.h" |
| 99 #include "content/renderer/render_process.h" | 99 #include "content/renderer/render_process.h" |
| 100 #include "content/renderer/render_thread_impl.h" | 100 #include "content/renderer/render_thread_impl.h" |
| 101 #include "content/renderer/render_view_impl_params.h" | 101 #include "content/renderer/render_view_impl_params.h" |
| 102 #include "content/renderer/render_view_mouse_lock_dispatcher.h" | 102 #include "content/renderer/render_view_mouse_lock_dispatcher.h" |
| 103 #include "content/renderer/render_widget_fullscreen_pepper.h" | 103 #include "content/renderer/render_widget_fullscreen_pepper.h" |
| 104 #include "content/renderer/renderer_webapplicationcachehost_impl.h" | 104 #include "content/renderer/renderer_webapplicationcachehost_impl.h" |
| 105 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | |
| 105 #include "content/renderer/resizing_mode_selector.h" | 106 #include "content/renderer/resizing_mode_selector.h" |
| 106 #include "content/renderer/savable_resources.h" | 107 #include "content/renderer/savable_resources.h" |
| 107 #include "content/renderer/skia_benchmarking_extension.h" | 108 #include "content/renderer/skia_benchmarking_extension.h" |
| 108 #include "content/renderer/speech_recognition_dispatcher.h" | 109 #include "content/renderer/speech_recognition_dispatcher.h" |
| 109 #include "content/renderer/stats_collection_controller.h" | 110 #include "content/renderer/stats_collection_controller.h" |
| 110 #include "content/renderer/stats_collection_observer.h" | 111 #include "content/renderer/stats_collection_observer.h" |
| 111 #include "content/renderer/text_input_client_observer.h" | 112 #include "content/renderer/text_input_client_observer.h" |
| 112 #include "content/renderer/v8_value_converter_impl.h" | 113 #include "content/renderer/v8_value_converter_impl.h" |
| 113 #include "content/renderer/web_ui_extension.h" | 114 #include "content/renderer/web_ui_extension.h" |
| 114 #include "content/renderer/web_ui_extension_data.h" | 115 #include "content/renderer/web_ui_extension_data.h" |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 824 webview()->mainFrame()->setOpener(opener_view->webview()->mainFrame()); | 825 webview()->mainFrame()->setOpener(opener_view->webview()->mainFrame()); |
| 825 } | 826 } |
| 826 | 827 |
| 827 // If we are initially swapped out, navigate to kSwappedOutURL. | 828 // If we are initially swapped out, navigate to kSwappedOutURL. |
| 828 // This ensures we are in a unique origin that others cannot script. | 829 // This ensures we are in a unique origin that others cannot script. |
| 829 if (is_swapped_out_) | 830 if (is_swapped_out_) |
| 830 NavigateToSwappedOutURL(webview()->mainFrame()); | 831 NavigateToSwappedOutURL(webview()->mainFrame()); |
| 831 } | 832 } |
| 832 | 833 |
| 833 RenderViewImpl::~RenderViewImpl() { | 834 RenderViewImpl::~RenderViewImpl() { |
| 835 if (RenderThreadImpl::current()->layout_test_mode()) { | |
|
Inactive
2014/05/28 12:02:20
nit: Useless curly brackets?
ostap
2014/05/28 19:17:05
Done.
| |
| 836 RendererWebKitPlatformSupportImpl::ResetMockScreenOrientationRenderView(); | |
|
mlamouri (slow - plz ping)
2014/05/28 13:45:20
Can't we make the render_view_ reset happen in Res
ostap
2014/05/28 19:17:05
I think using ResetMockScreenOrientationForTesting
mlamouri (slow - plz ping)
2014/05/29 14:51:55
AFAIK, we use the same RenderView during the Layou
| |
| 837 } | |
| 834 for (BitmapMap::iterator it = disambiguation_bitmaps_.begin(); | 838 for (BitmapMap::iterator it = disambiguation_bitmaps_.begin(); |
| 835 it != disambiguation_bitmaps_.end(); | 839 it != disambiguation_bitmaps_.end(); |
| 836 ++it) | 840 ++it) |
| 837 delete it->second; | 841 delete it->second; |
| 838 history_page_ids_.clear(); | 842 history_page_ids_.clear(); |
| 839 | 843 |
| 840 base::debug::TraceLog::GetInstance()->RemoveProcessLabel(routing_id_); | 844 base::debug::TraceLog::GetInstance()->RemoveProcessLabel(routing_id_); |
| 841 | 845 |
| 842 // If file chooser is still waiting for answer, dispatch empty answer. | 846 // If file chooser is still waiting for answer, dispatch empty answer. |
| 843 while (!file_chooser_completions_.empty()) { | 847 while (!file_chooser_completions_.empty()) { |
| (...skipping 3235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4079 std::vector<gfx::Size> sizes; | 4083 std::vector<gfx::Size> sizes; |
| 4080 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4084 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
| 4081 if (!url.isEmpty()) | 4085 if (!url.isEmpty()) |
| 4082 urls.push_back( | 4086 urls.push_back( |
| 4083 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4087 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
| 4084 } | 4088 } |
| 4085 SendUpdateFaviconURL(urls); | 4089 SendUpdateFaviconURL(urls); |
| 4086 } | 4090 } |
| 4087 | 4091 |
| 4088 } // namespace content | 4092 } // namespace content |
| OLD | NEW |