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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 if (created) | 771 if (created) |
772 delegate_->RenderFrameCreated(this); | 772 delegate_->RenderFrameCreated(this); |
773 else | 773 else |
774 delegate_->RenderFrameDeleted(this); | 774 delegate_->RenderFrameDeleted(this); |
775 } | 775 } |
776 | 776 |
777 if (created && render_widget_host_) | 777 if (created && render_widget_host_) |
778 render_widget_host_->InitForFrame(); | 778 render_widget_host_->InitForFrame(); |
779 } | 779 } |
780 | 780 |
781 void RenderFrameHostImpl::Init() { | |
782 // TODO(csharrison): Call GetProcess()->ResumeRequestsForFrame(routing_id_) | |
783 // once ResourceDispatcherHostImpl is keyed on render frame routing ids | |
784 // instead of render view routing ids. | |
785 } | |
786 | |
787 void RenderFrameHostImpl::OnAddMessageToConsole( | 781 void RenderFrameHostImpl::OnAddMessageToConsole( |
788 int32_t level, | 782 int32_t level, |
789 const base::string16& message, | 783 const base::string16& message, |
790 int32_t line_no, | 784 int32_t line_no, |
791 const base::string16& source_id) { | 785 const base::string16& source_id) { |
792 if (delegate_->AddMessageToConsole(level, message, line_no, source_id)) | 786 if (delegate_->AddMessageToConsole(level, message, line_no, source_id)) |
793 return; | 787 return; |
794 | 788 |
795 // Pass through log level only on WebUI pages to limit console spew. | 789 // Pass through log level only on WebUI pages to limit console spew. |
796 const bool is_web_ui = | 790 const bool is_web_ui = |
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2552 *dst = src; | 2546 *dst = src; |
2553 | 2547 |
2554 if (src.routing_id != -1) | 2548 if (src.routing_id != -1) |
2555 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2549 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
2556 | 2550 |
2557 if (src.parent_routing_id != -1) | 2551 if (src.parent_routing_id != -1) |
2558 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2552 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
2559 } | 2553 } |
2560 | 2554 |
2561 } // namespace content | 2555 } // namespace content |
OLD | NEW |