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/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/metrics/user_metrics_action.h" | 10 #include "base/metrics/user_metrics_action.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 if (msg.is_sync()) { | 246 if (msg.is_sync()) { |
247 IPC::Message* reply = IPC::SyncMessage::GenerateReply(&msg); | 247 IPC::Message* reply = IPC::SyncMessage::GenerateReply(&msg); |
248 reply->set_reply_error(); | 248 reply->set_reply_error(); |
249 Send(reply); | 249 Send(reply); |
250 } | 250 } |
251 // Don't continue looking for someone to handle it. | 251 // Don't continue looking for someone to handle it. |
252 return true; | 252 return true; |
253 } | 253 } |
254 } | 254 } |
255 | 255 |
| 256 if (msg.type() == FrameHostMsg_InitializeChildFrame::ID) { |
| 257 LOG(ERROR) << "RFH::OnMessageReceived: [" << this << "]: " |
| 258 << "FrameHostMsg_InitializeChildFrame"; |
| 259 } |
| 260 |
256 if (delegate_->OnMessageReceived(this, msg)) | 261 if (delegate_->OnMessageReceived(this, msg)) |
257 return true; | 262 return true; |
258 | 263 |
259 if (cross_process_frame_connector_ && | 264 if (cross_process_frame_connector_ && |
260 cross_process_frame_connector_->OnMessageReceived(msg)) | 265 cross_process_frame_connector_->OnMessageReceived(msg)) |
261 return true; | 266 return true; |
262 | 267 |
263 bool handled = true; | 268 bool handled = true; |
264 bool msg_is_ok = true; | 269 bool msg_is_ok = true; |
265 IPC_BEGIN_MESSAGE_MAP_EX(RenderFrameHostImpl, msg, msg_is_ok) | 270 IPC_BEGIN_MESSAGE_MAP_EX(RenderFrameHostImpl, msg, msg_is_ok) |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 cancel_notification_callbacks_.erase(notification_id); | 860 cancel_notification_callbacks_.erase(notification_id); |
856 } | 861 } |
857 | 862 |
858 void RenderFrameHostImpl::DesktopNotificationPermissionRequestDone( | 863 void RenderFrameHostImpl::DesktopNotificationPermissionRequestDone( |
859 int callback_context) { | 864 int callback_context) { |
860 Send(new DesktopNotificationMsg_PermissionRequestDone( | 865 Send(new DesktopNotificationMsg_PermissionRequestDone( |
861 routing_id_, callback_context)); | 866 routing_id_, callback_context)); |
862 } | 867 } |
863 | 868 |
864 } // namespace content | 869 } // namespace content |
OLD | NEW |