| 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 17 matching lines...) Expand all Loading... |
| 28 #include "base/stl_util.h" | 28 #include "base/stl_util.h" |
| 29 #include "base/strings/string16.h" | 29 #include "base/strings/string16.h" |
| 30 #include "base/strings/utf_string_conversions.h" | 30 #include "base/strings/utf_string_conversions.h" |
| 31 #include "base/threading/thread_task_runner_handle.h" | 31 #include "base/threading/thread_task_runner_handle.h" |
| 32 #include "base/time/time.h" | 32 #include "base/time/time.h" |
| 33 #include "base/trace_event/trace_event_argument.h" | 33 #include "base/trace_event/trace_event_argument.h" |
| 34 #include "build/build_config.h" | 34 #include "build/build_config.h" |
| 35 #include "cc/base/switches.h" | 35 #include "cc/base/switches.h" |
| 36 #include "components/scheduler/renderer/renderer_scheduler.h" | 36 #include "components/scheduler/renderer/renderer_scheduler.h" |
| 37 #include "content/child/appcache/appcache_dispatcher.h" | 37 #include "content/child/appcache/appcache_dispatcher.h" |
| 38 #include "content/child/permissions/permission_dispatcher.h" | |
| 39 #include "content/child/quota_dispatcher.h" | 38 #include "content/child/quota_dispatcher.h" |
| 40 #include "content/child/request_extra_data.h" | 39 #include "content/child/request_extra_data.h" |
| 41 #include "content/child/service_worker/service_worker_handle_reference.h" | 40 #include "content/child/service_worker/service_worker_handle_reference.h" |
| 42 #include "content/child/service_worker/service_worker_network_provider.h" | 41 #include "content/child/service_worker/service_worker_network_provider.h" |
| 43 #include "content/child/service_worker/service_worker_provider_context.h" | 42 #include "content/child/service_worker/service_worker_provider_context.h" |
| 44 #include "content/child/service_worker/web_service_worker_provider_impl.h" | 43 #include "content/child/service_worker/web_service_worker_provider_impl.h" |
| 45 #include "content/child/v8_value_converter_impl.h" | 44 #include "content/child/v8_value_converter_impl.h" |
| 46 #include "content/child/web_url_loader_impl.h" | 45 #include "content/child/web_url_loader_impl.h" |
| 47 #include "content/child/web_url_request_util.h" | 46 #include "content/child/web_url_request_util.h" |
| 48 #include "content/child/webmessageportchannel_impl.h" | 47 #include "content/child/webmessageportchannel_impl.h" |
| (...skipping 4408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4457 } | 4456 } |
| 4458 | 4457 |
| 4459 void RenderFrameImpl::enterFullscreen() { | 4458 void RenderFrameImpl::enterFullscreen() { |
| 4460 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true)); | 4459 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, true)); |
| 4461 } | 4460 } |
| 4462 | 4461 |
| 4463 void RenderFrameImpl::exitFullscreen() { | 4462 void RenderFrameImpl::exitFullscreen() { |
| 4464 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false)); | 4463 Send(new FrameHostMsg_ToggleFullscreen(routing_id_, false)); |
| 4465 } | 4464 } |
| 4466 | 4465 |
| 4467 blink::WebPermissionClient* RenderFrameImpl::permissionClient() { | |
| 4468 if (!permission_client_) { | |
| 4469 permission_client_.reset( | |
| 4470 new PermissionDispatcher(GetRemoteInterfaces())); | |
| 4471 } | |
| 4472 return permission_client_.get(); | |
| 4473 } | |
| 4474 | |
| 4475 blink::WebAppBannerClient* RenderFrameImpl::appBannerClient() { | 4466 blink::WebAppBannerClient* RenderFrameImpl::appBannerClient() { |
| 4476 if (!app_banner_client_) { | 4467 if (!app_banner_client_) { |
| 4477 app_banner_client_ = | 4468 app_banner_client_ = |
| 4478 GetContentClient()->renderer()->CreateAppBannerClient(this); | 4469 GetContentClient()->renderer()->CreateAppBannerClient(this); |
| 4479 } | 4470 } |
| 4480 | 4471 |
| 4481 return app_banner_client_.get(); | 4472 return app_banner_client_.get(); |
| 4482 } | 4473 } |
| 4483 | 4474 |
| 4484 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme, | 4475 void RenderFrameImpl::registerProtocolHandler(const WebString& scheme, |
| (...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6366 // event target. Potentially a Pepper plugin will receive the event. | 6357 // event target. Potentially a Pepper plugin will receive the event. |
| 6367 // In order to tell whether a plugin gets the last mouse event and which it | 6358 // In order to tell whether a plugin gets the last mouse event and which it |
| 6368 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6359 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6369 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6360 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6370 // |pepper_last_mouse_event_target_|. | 6361 // |pepper_last_mouse_event_target_|. |
| 6371 pepper_last_mouse_event_target_ = nullptr; | 6362 pepper_last_mouse_event_target_ = nullptr; |
| 6372 #endif | 6363 #endif |
| 6373 } | 6364 } |
| 6374 | 6365 |
| 6375 } // namespace content | 6366 } // namespace content |
| OLD | NEW |