| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "content/child/v8_value_converter_impl.h" | 45 #include "content/child/v8_value_converter_impl.h" |
| 46 #include "content/child/web_url_loader_impl.h" | 46 #include "content/child/web_url_loader_impl.h" |
| 47 #include "content/child/web_url_request_util.h" | 47 #include "content/child/web_url_request_util.h" |
| 48 #include "content/child/webmessageportchannel_impl.h" | 48 #include "content/child/webmessageportchannel_impl.h" |
| 49 #include "content/child/websocket_bridge.h" | 49 #include "content/child/websocket_bridge.h" |
| 50 #include "content/child/weburlresponse_extradata_impl.h" | 50 #include "content/child/weburlresponse_extradata_impl.h" |
| 51 #include "content/common/accessibility_messages.h" | 51 #include "content/common/accessibility_messages.h" |
| 52 #include "content/common/clipboard_messages.h" | 52 #include "content/common/clipboard_messages.h" |
| 53 #include "content/common/frame_messages.h" | 53 #include "content/common/frame_messages.h" |
| 54 #include "content/common/frame_replication_state.h" | 54 #include "content/common/frame_replication_state.h" |
| 55 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 55 #include "content/common/input_messages.h" | 56 #include "content/common/input_messages.h" |
| 56 #include "content/common/navigation_params.h" | 57 #include "content/common/navigation_params.h" |
| 57 #include "content/common/page_messages.h" | 58 #include "content/common/page_messages.h" |
| 58 #include "content/common/savable_subframe.h" | 59 #include "content/common/savable_subframe.h" |
| 59 #include "content/common/service_worker/service_worker_types.h" | 60 #include "content/common/service_worker/service_worker_types.h" |
| 60 #include "content/common/site_isolation_policy.h" | 61 #include "content/common/site_isolation_policy.h" |
| 61 #include "content/common/ssl_status_serialization.h" | 62 #include "content/common/ssl_status_serialization.h" |
| 62 #include "content/common/swapped_out_messages.h" | 63 #include "content/common/swapped_out_messages.h" |
| 63 #include "content/common/view_messages.h" | 64 #include "content/common/view_messages.h" |
| 64 #include "content/public/common/bindings_policy.h" | 65 #include "content/public/common/bindings_policy.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 #include "content/renderer/pepper/plugin_module.h" | 195 #include "content/renderer/pepper/plugin_module.h" |
| 195 #endif | 196 #endif |
| 196 | 197 |
| 197 #if defined(ENABLE_WEBRTC) | 198 #if defined(ENABLE_WEBRTC) |
| 198 #include "content/renderer/media/rtc_peer_connection_handler.h" | 199 #include "content/renderer/media/rtc_peer_connection_handler.h" |
| 199 #endif | 200 #endif |
| 200 | 201 |
| 201 #if defined(OS_ANDROID) | 202 #if defined(OS_ANDROID) |
| 202 #include <cpu-features.h> | 203 #include <cpu-features.h> |
| 203 | 204 |
| 204 #include "content/common/gpu/client/context_provider_command_buffer.h" | |
| 205 #include "content/renderer/java/gin_java_bridge_dispatcher.h" | 205 #include "content/renderer/java/gin_java_bridge_dispatcher.h" |
| 206 #include "content/renderer/media/android/renderer_media_player_manager.h" | 206 #include "content/renderer/media/android/renderer_media_player_manager.h" |
| 207 #include "content/renderer/media/android/renderer_media_session_manager.h" | 207 #include "content/renderer/media/android/renderer_media_session_manager.h" |
| 208 #include "content/renderer/media/android/renderer_surface_view_manager.h" | 208 #include "content/renderer/media/android/renderer_surface_view_manager.h" |
| 209 #include "content/renderer/media/android/stream_texture_factory.h" | 209 #include "content/renderer/media/android/stream_texture_factory.h" |
| 210 #include "content/renderer/media/android/webmediaplayer_android.h" | 210 #include "content/renderer/media/android/webmediaplayer_android.h" |
| 211 #include "content/renderer/media/android/webmediasession_android.h" | 211 #include "content/renderer/media/android/webmediasession_android.h" |
| 212 #include "media/base/android/media_codec_util.h" | 212 #include "media/base/android/media_codec_util.h" |
| 213 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 213 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
| 214 #else | 214 #else |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 static_cast<RequestExtraData*>(request->getExtraData()); | 596 static_cast<RequestExtraData*>(request->getExtraData()); |
| 597 DCHECK(extra_data); | 597 DCHECK(extra_data); |
| 598 return CommonNavigationParams( | 598 return CommonNavigationParams( |
| 599 request->url(), referrer, extra_data->transition_type(), | 599 request->url(), referrer, extra_data->transition_type(), |
| 600 FrameMsg_Navigate_Type::NORMAL, true, should_replace_current_entry, | 600 FrameMsg_Navigate_Type::NORMAL, true, should_replace_current_entry, |
| 601 ui_timestamp, report_type, GURL(), GURL(), extra_data->lofi_state(), | 601 ui_timestamp, report_type, GURL(), GURL(), extra_data->lofi_state(), |
| 602 base::TimeTicks::Now(), request->httpMethod().latin1()); | 602 base::TimeTicks::Now(), request->httpMethod().latin1()); |
| 603 } | 603 } |
| 604 | 604 |
| 605 media::Context3D GetSharedMainThreadContext3D() { | 605 media::Context3D GetSharedMainThreadContext3D() { |
| 606 cc::ContextProvider* provider = | 606 ContextProviderCommandBuffer* provider = |
| 607 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); | 607 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); |
| 608 if (!provider) | 608 if (!provider) |
| 609 return media::Context3D(); | 609 return media::Context3D(); |
| 610 return media::Context3D(provider->ContextGL(), provider->GrContext()); | 610 return media::Context3D(provider->ContextGL(), provider->GrContext()); |
| 611 } | 611 } |
| 612 | 612 |
| 613 bool IsReload(FrameMsg_Navigate_Type::Value navigation_type) { | 613 bool IsReload(FrameMsg_Navigate_Type::Value navigation_type) { |
| 614 return navigation_type == FrameMsg_Navigate_Type::RELOAD || | 614 return navigation_type == FrameMsg_Navigate_Type::RELOAD || |
| 615 navigation_type == FrameMsg_Navigate_Type::RELOAD_BYPASSING_CACHE || | 615 navigation_type == FrameMsg_Navigate_Type::RELOAD_BYPASSING_CACHE || |
| 616 navigation_type == FrameMsg_Navigate_Type::RELOAD_ORIGINAL_REQUEST_URL; | 616 navigation_type == FrameMsg_Navigate_Type::RELOAD_ORIGINAL_REQUEST_URL; |
| (...skipping 5419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6036 int match_count, | 6036 int match_count, |
| 6037 int ordinal, | 6037 int ordinal, |
| 6038 const WebRect& selection_rect, | 6038 const WebRect& selection_rect, |
| 6039 bool final_status_update) { | 6039 bool final_status_update) { |
| 6040 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, | 6040 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, |
| 6041 selection_rect, ordinal, | 6041 selection_rect, ordinal, |
| 6042 final_status_update)); | 6042 final_status_update)); |
| 6043 } | 6043 } |
| 6044 | 6044 |
| 6045 } // namespace content | 6045 } // namespace content |
| OLD | NEW |