| 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 2750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2761 } | 2761 } |
| 2762 | 2762 |
| 2763 void RenderFrameImpl::didChangeThemeColor() { | 2763 void RenderFrameImpl::didChangeThemeColor() { |
| 2764 if (frame_->parent()) | 2764 if (frame_->parent()) |
| 2765 return; | 2765 return; |
| 2766 | 2766 |
| 2767 Send(new FrameHostMsg_DidChangeThemeColor( | 2767 Send(new FrameHostMsg_DidChangeThemeColor( |
| 2768 routing_id_, frame_->document().themeColor())); | 2768 routing_id_, frame_->document().themeColor())); |
| 2769 } | 2769 } |
| 2770 | 2770 |
| 2771 void RenderFrameImpl::dispatchLoad() { |
| 2772 Send(new FrameHostMsg_DispatchLoad(routing_id_)); |
| 2773 } |
| 2774 |
| 2771 void RenderFrameImpl::requestNotificationPermission( | 2775 void RenderFrameImpl::requestNotificationPermission( |
| 2772 const blink::WebSecurityOrigin& origin, | 2776 const blink::WebSecurityOrigin& origin, |
| 2773 blink::WebNotificationPermissionCallback* callback) { | 2777 blink::WebNotificationPermissionCallback* callback) { |
| 2774 if (!notification_permission_dispatcher_) { | 2778 if (!notification_permission_dispatcher_) { |
| 2775 notification_permission_dispatcher_ = | 2779 notification_permission_dispatcher_ = |
| 2776 new NotificationPermissionDispatcher(this); | 2780 new NotificationPermissionDispatcher(this); |
| 2777 } | 2781 } |
| 2778 | 2782 |
| 2779 notification_permission_dispatcher_->RequestPermission(origin, callback); | 2783 notification_permission_dispatcher_->RequestPermission(origin, callback); |
| 2780 } | 2784 } |
| (...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4444 | 4448 |
| 4445 #if defined(ENABLE_BROWSER_CDMS) | 4449 #if defined(ENABLE_BROWSER_CDMS) |
| 4446 RendererCdmManager* RenderFrameImpl::GetCdmManager() { | 4450 RendererCdmManager* RenderFrameImpl::GetCdmManager() { |
| 4447 if (!cdm_manager_) | 4451 if (!cdm_manager_) |
| 4448 cdm_manager_ = new RendererCdmManager(this); | 4452 cdm_manager_ = new RendererCdmManager(this); |
| 4449 return cdm_manager_; | 4453 return cdm_manager_; |
| 4450 } | 4454 } |
| 4451 #endif // defined(ENABLE_BROWSER_CDMS) | 4455 #endif // defined(ENABLE_BROWSER_CDMS) |
| 4452 | 4456 |
| 4453 } // namespace content | 4457 } // namespace content |
| OLD | NEW |