OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 4748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4759 void RenderFrameImpl::suddenTerminationDisablerChanged( | 4759 void RenderFrameImpl::suddenTerminationDisablerChanged( |
4760 bool present, | 4760 bool present, |
4761 blink::WebFrameClient::SuddenTerminationDisablerType type) { | 4761 blink::WebFrameClient::SuddenTerminationDisablerType type) { |
4762 switch (type) { | 4762 switch (type) { |
4763 case blink::WebFrameClient::BeforeUnloadHandler: | 4763 case blink::WebFrameClient::BeforeUnloadHandler: |
4764 Send(new FrameHostMsg_BeforeUnloadHandlersPresent(routing_id_, present)); | 4764 Send(new FrameHostMsg_BeforeUnloadHandlersPresent(routing_id_, present)); |
4765 break; | 4765 break; |
4766 case blink::WebFrameClient::UnloadHandler: | 4766 case blink::WebFrameClient::UnloadHandler: |
4767 Send(new FrameHostMsg_UnloadHandlersPresent(routing_id_, present)); | 4767 Send(new FrameHostMsg_UnloadHandlersPresent(routing_id_, present)); |
4768 break; | 4768 break; |
4769 default: | |
4770 NOTREACHED(); | |
4771 } | 4769 } |
4772 } | 4770 } |
4773 | 4771 |
4774 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme, | 4772 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme, |
4775 const WebURL& url, | 4773 const WebURL& url, |
4776 const WebString& title) { | 4774 const WebString& title) { |
4777 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); | 4775 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); |
4778 Send(new FrameHostMsg_RegisterProtocolHandler(routing_id_, scheme.utf8(), url, | 4776 Send(new FrameHostMsg_RegisterProtocolHandler(routing_id_, scheme.utf8(), url, |
4779 title.utf16(), user_gesture)); | 4777 title.utf16(), user_gesture)); |
4780 } | 4778 } |
(...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6984 policy(info.defaultPolicy), | 6982 policy(info.defaultPolicy), |
6985 replaces_current_history_item(info.replacesCurrentHistoryItem), | 6983 replaces_current_history_item(info.replacesCurrentHistoryItem), |
6986 history_navigation_in_new_child_frame( | 6984 history_navigation_in_new_child_frame( |
6987 info.isHistoryNavigationInNewChildFrame), | 6985 info.isHistoryNavigationInNewChildFrame), |
6988 client_redirect(info.isClientRedirect), | 6986 client_redirect(info.isClientRedirect), |
6989 cache_disabled(info.isCacheDisabled), | 6987 cache_disabled(info.isCacheDisabled), |
6990 form(info.form), | 6988 form(info.form), |
6991 source_location(info.sourceLocation) {} | 6989 source_location(info.sourceLocation) {} |
6992 | 6990 |
6993 } // namespace content | 6991 } // namespace content |
OLD | NEW |