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/browser/frame_host/interstitial_page_impl.h" | 5 #include "content/browser/frame_host/interstitial_page_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "content/public/browser/invalidate_type.h" | 34 #include "content/public/browser/invalidate_type.h" |
35 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
36 #include "content/public/browser/notification_source.h" | 36 #include "content/public/browser/notification_source.h" |
37 #include "content/public/browser/storage_partition.h" | 37 #include "content/public/browser/storage_partition.h" |
38 #include "content/public/browser/web_contents_delegate.h" | 38 #include "content/public/browser/web_contents_delegate.h" |
39 #include "content/public/common/bindings_policy.h" | 39 #include "content/public/common/bindings_policy.h" |
40 #include "content/public/common/page_transition_types.h" | 40 #include "content/public/common/page_transition_types.h" |
41 #include "net/base/escape.h" | 41 #include "net/base/escape.h" |
42 #include "net/url_request/url_request_context_getter.h" | 42 #include "net/url_request/url_request_context_getter.h" |
43 | 43 |
44 using WebKit::WebDragOperation; | 44 using blink::WebDragOperation; |
45 using WebKit::WebDragOperationsMask; | 45 using blink::WebDragOperationsMask; |
46 | 46 |
47 namespace content { | 47 namespace content { |
48 namespace { | 48 namespace { |
49 | 49 |
50 void ResourceRequestHelper(ResourceDispatcherHostImpl* rdh, | 50 void ResourceRequestHelper(ResourceDispatcherHostImpl* rdh, |
51 int process_id, | 51 int process_id, |
52 int render_view_host_id, | 52 int render_view_host_id, |
53 ResourceRequestAction action) { | 53 ResourceRequestAction action) { |
54 switch (action) { | 54 switch (action) { |
55 case BLOCK: | 55 case BLOCK: |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 | 690 |
691 void InterstitialPageImpl::CreateNewWindow( | 691 void InterstitialPageImpl::CreateNewWindow( |
692 int route_id, | 692 int route_id, |
693 int main_frame_route_id, | 693 int main_frame_route_id, |
694 const ViewHostMsg_CreateWindow_Params& params, | 694 const ViewHostMsg_CreateWindow_Params& params, |
695 SessionStorageNamespace* session_storage_namespace) { | 695 SessionStorageNamespace* session_storage_namespace) { |
696 NOTREACHED() << "InterstitialPage does not support showing popups yet."; | 696 NOTREACHED() << "InterstitialPage does not support showing popups yet."; |
697 } | 697 } |
698 | 698 |
699 void InterstitialPageImpl::CreateNewWidget(int route_id, | 699 void InterstitialPageImpl::CreateNewWidget(int route_id, |
700 WebKit::WebPopupType popup_type) { | 700 blink::WebPopupType popup_type) { |
701 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; | 701 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; |
702 } | 702 } |
703 | 703 |
704 void InterstitialPageImpl::CreateNewFullscreenWidget(int route_id) { | 704 void InterstitialPageImpl::CreateNewFullscreenWidget(int route_id) { |
705 NOTREACHED() | 705 NOTREACHED() |
706 << "InterstitialPage does not support showing full screen popups."; | 706 << "InterstitialPage does not support showing full screen popups."; |
707 } | 707 } |
708 | 708 |
709 void InterstitialPageImpl::ShowCreatedWindow(int route_id, | 709 void InterstitialPageImpl::ShowCreatedWindow(int route_id, |
710 WindowOpenDisposition disposition, | 710 WindowOpenDisposition disposition, |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 | 834 |
835 web_contents->GetDelegateView()->TakeFocus(reverse); | 835 web_contents->GetDelegateView()->TakeFocus(reverse); |
836 } | 836 } |
837 | 837 |
838 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( | 838 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( |
839 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 839 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
840 int active_match_ordinal, bool final_update) { | 840 int active_match_ordinal, bool final_update) { |
841 } | 841 } |
842 | 842 |
843 } // namespace content | 843 } // namespace content |
OLD | NEW |