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 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "content/common/frame_messages.h" | 35 #include "content/common/frame_messages.h" |
36 #include "content/common/input_messages.h" | 36 #include "content/common/input_messages.h" |
37 #include "content/common/service_worker/service_worker_types.h" | 37 #include "content/common/service_worker/service_worker_types.h" |
38 #include "content/common/socket_stream_handle_data.h" | 38 #include "content/common/socket_stream_handle_data.h" |
39 #include "content/common/swapped_out_messages.h" | 39 #include "content/common/swapped_out_messages.h" |
40 #include "content/common/view_messages.h" | 40 #include "content/common/view_messages.h" |
41 #include "content/public/common/bindings_policy.h" | 41 #include "content/public/common/bindings_policy.h" |
42 #include "content/public/common/content_constants.h" | 42 #include "content/public/common/content_constants.h" |
43 #include "content/public/common/content_switches.h" | 43 #include "content/public/common/content_switches.h" |
44 #include "content/public/common/context_menu_params.h" | 44 #include "content/public/common/context_menu_params.h" |
| 45 #include "content/public/common/resource_response.h" |
45 #include "content/public/common/url_constants.h" | 46 #include "content/public/common/url_constants.h" |
46 #include "content/public/common/url_utils.h" | 47 #include "content/public/common/url_utils.h" |
47 #include "content/public/renderer/browser_plugin_delegate.h" | 48 #include "content/public/renderer/browser_plugin_delegate.h" |
48 #include "content/public/renderer/content_renderer_client.h" | 49 #include "content/public/renderer/content_renderer_client.h" |
49 #include "content/public/renderer/context_menu_client.h" | 50 #include "content/public/renderer/context_menu_client.h" |
50 #include "content/public/renderer/document_state.h" | 51 #include "content/public/renderer/document_state.h" |
51 #include "content/public/renderer/navigation_state.h" | 52 #include "content/public/renderer/navigation_state.h" |
52 #include "content/public/renderer/render_frame_observer.h" | 53 #include "content/public/renderer/render_frame_observer.h" |
53 #include "content/renderer/accessibility/renderer_accessibility.h" | 54 #include "content/renderer/accessibility/renderer_accessibility.h" |
54 #include "content/renderer/accessibility/renderer_accessibility_complete.h" | 55 #include "content/renderer/accessibility/renderer_accessibility_complete.h" |
(...skipping 3423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3478 renderer_accessibility_->HandleWebAccessibilityEvent(obj, event); | 3479 renderer_accessibility_->HandleWebAccessibilityEvent(obj, event); |
3479 } | 3480 } |
3480 | 3481 |
3481 void RenderFrameImpl::FocusedNodeChanged(const WebNode& node) { | 3482 void RenderFrameImpl::FocusedNodeChanged(const WebNode& node) { |
3482 if (renderer_accessibility_) | 3483 if (renderer_accessibility_) |
3483 renderer_accessibility_->FocusedNodeChanged(node); | 3484 renderer_accessibility_->FocusedNodeChanged(node); |
3484 } | 3485 } |
3485 | 3486 |
3486 // PlzNavigate | 3487 // PlzNavigate |
3487 void RenderFrameImpl::OnCommitNavigation( | 3488 void RenderFrameImpl::OnCommitNavigation( |
| 3489 const ResourceResponseHead& response, |
3488 const GURL& stream_url, | 3490 const GURL& stream_url, |
3489 const CommonNavigationParams& common_params, | 3491 const CommonNavigationParams& common_params, |
3490 const CommitNavigationParams& commit_params) { | 3492 const CommitNavigationParams& commit_params) { |
3491 NOTIMPLEMENTED(); | 3493 NOTIMPLEMENTED(); |
3492 } | 3494 } |
3493 | 3495 |
3494 WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation( | 3496 WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation( |
3495 RenderFrame* render_frame, | 3497 RenderFrame* render_frame, |
3496 const NavigationPolicyInfo& info) { | 3498 const NavigationPolicyInfo& info) { |
3497 #ifdef OS_ANDROID | 3499 #ifdef OS_ANDROID |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3932 | 3934 |
3933 #if defined(ENABLE_BROWSER_CDMS) | 3935 #if defined(ENABLE_BROWSER_CDMS) |
3934 RendererCdmManager* RenderFrameImpl::GetCdmManager() { | 3936 RendererCdmManager* RenderFrameImpl::GetCdmManager() { |
3935 if (!cdm_manager_) | 3937 if (!cdm_manager_) |
3936 cdm_manager_ = new RendererCdmManager(this); | 3938 cdm_manager_ = new RendererCdmManager(this); |
3937 return cdm_manager_; | 3939 return cdm_manager_; |
3938 } | 3940 } |
3939 #endif // defined(ENABLE_BROWSER_CDMS) | 3941 #endif // defined(ENABLE_BROWSER_CDMS) |
3940 | 3942 |
3941 } // namespace content | 3943 } // namespace content |
OLD | NEW |