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/renderer_host/render_view_host.h" | 5 #include "content/browser/renderer_host/render_view_host.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "content/browser/cross_site_request_manager.h" | 22 #include "content/browser/cross_site_request_manager.h" |
23 #include "content/browser/gpu/gpu_surface_tracker.h" | 23 #include "content/browser/gpu/gpu_surface_tracker.h" |
24 #include "content/browser/host_zoom_map_impl.h" | 24 #include "content/browser/host_zoom_map_impl.h" |
25 #include "content/browser/in_process_webkit/dom_storage_context_impl.h" | 25 #include "content/browser/in_process_webkit/dom_storage_context_impl.h" |
26 #include "content/browser/power_save_blocker.h" | 26 #include "content/browser/power_save_blocker.h" |
27 #include "content/browser/renderer_host/render_process_host_impl.h" | 27 #include "content/browser/renderer_host/render_process_host_impl.h" |
28 #include "content/browser/renderer_host/render_widget_host.h" | 28 #include "content/browser/renderer_host/render_widget_host.h" |
29 #include "content/common/accessibility_messages.h" | 29 #include "content/common/accessibility_messages.h" |
30 #include "content/common/desktop_notification_messages.h" | 30 #include "content/common/desktop_notification_messages.h" |
31 #include "content/common/drag_messages.h" | 31 #include "content/common/drag_messages.h" |
32 #include "content/common/speech_input_messages.h" | 32 #include "content/common/speech_recognition_messages.h" |
33 #include "content/common/swapped_out_messages.h" | 33 #include "content/common/swapped_out_messages.h" |
34 #include "content/common/view_messages.h" | 34 #include "content/common/view_messages.h" |
35 #include "content/port/browser/render_widget_host_view_port.h" | 35 #include "content/port/browser/render_widget_host_view_port.h" |
36 #include "content/public/browser/browser_context.h" | 36 #include "content/public/browser/browser_context.h" |
37 #include "content/public/browser/browser_message_filter.h" | 37 #include "content/public/browser/browser_message_filter.h" |
38 #include "content/public/browser/content_browser_client.h" | 38 #include "content/public/browser/content_browser_client.h" |
39 #include "content/public/browser/dom_operation_notification_details.h" | 39 #include "content/public/browser/dom_operation_notification_details.h" |
40 #include "content/public/browser/native_web_keyboard_event.h" | 40 #include "content/public/browser/native_web_keyboard_event.h" |
41 #include "content/public/browser/notification_details.h" | 41 #include "content/public/browser/notification_details.h" |
42 #include "content/public/browser/notification_service.h" | 42 #include "content/public/browser/notification_service.h" |
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1332 void RenderViewHost::DidSelectPopupMenuItem(int selected_index) { | 1332 void RenderViewHost::DidSelectPopupMenuItem(int selected_index) { |
1333 Send(new ViewMsg_SelectPopupMenuItem(routing_id(), selected_index)); | 1333 Send(new ViewMsg_SelectPopupMenuItem(routing_id(), selected_index)); |
1334 } | 1334 } |
1335 | 1335 |
1336 void RenderViewHost::DidCancelPopupMenu() { | 1336 void RenderViewHost::DidCancelPopupMenu() { |
1337 Send(new ViewMsg_SelectPopupMenuItem(routing_id(), -1)); | 1337 Send(new ViewMsg_SelectPopupMenuItem(routing_id(), -1)); |
1338 } | 1338 } |
1339 #endif | 1339 #endif |
1340 | 1340 |
1341 void RenderViewHost::ToggleSpeechInput() { | 1341 void RenderViewHost::ToggleSpeechInput() { |
1342 Send(new SpeechInputMsg_ToggleSpeechInput(routing_id())); | 1342 Send(new SpeechRecognitionMsg_ToggleSpeechInput(routing_id())); |
1343 } | 1343 } |
1344 | 1344 |
1345 void RenderViewHost::FilterURL(ChildProcessSecurityPolicyImpl* policy, | 1345 void RenderViewHost::FilterURL(ChildProcessSecurityPolicyImpl* policy, |
1346 int renderer_id, | 1346 int renderer_id, |
1347 GURL* url) { | 1347 GURL* url) { |
1348 if (!url->is_valid()) | 1348 if (!url->is_valid()) |
1349 return; // We don't need to block invalid URLs. | 1349 return; // We don't need to block invalid URLs. |
1350 | 1350 |
1351 if (url->SchemeIs(chrome::kAboutScheme)) { | 1351 if (url->SchemeIs(chrome::kAboutScheme)) { |
1352 // The renderer treats all URLs in the about: scheme as being about:blank. | 1352 // The renderer treats all URLs in the about: scheme as being about:blank. |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 // Whenever we change swap out state, we should not be waiting for | 1601 // Whenever we change swap out state, we should not be waiting for |
1602 // beforeunload or unload acks. We clear them here to be safe, since they | 1602 // beforeunload or unload acks. We clear them here to be safe, since they |
1603 // can cause navigations to be ignored in OnMsgNavigate. | 1603 // can cause navigations to be ignored in OnMsgNavigate. |
1604 is_waiting_for_beforeunload_ack_ = false; | 1604 is_waiting_for_beforeunload_ack_ = false; |
1605 is_waiting_for_unload_ack_ = false; | 1605 is_waiting_for_unload_ack_ = false; |
1606 } | 1606 } |
1607 | 1607 |
1608 void RenderViewHost::ClearPowerSaveBlockers() { | 1608 void RenderViewHost::ClearPowerSaveBlockers() { |
1609 STLDeleteValues(&power_save_blockers_); | 1609 STLDeleteValues(&power_save_blockers_); |
1610 } | 1610 } |
OLD | NEW |