| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/render_view_host.h" | 5 #include "chrome/browser/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 OnDebugDisconnect(); | 819 OnDebugDisconnect(); |
| 820 } | 820 } |
| 821 | 821 |
| 822 // Called when the renderer navigates. For every frame loaded, we'll get this | 822 // Called when the renderer navigates. For every frame loaded, we'll get this |
| 823 // notification containing parameters identifying the navigation. | 823 // notification containing parameters identifying the navigation. |
| 824 // | 824 // |
| 825 // Subframes are identified by the page transition type. For subframes loaded | 825 // Subframes are identified by the page transition type. For subframes loaded |
| 826 // as part of a wider page load, the page_id will be the same as for the top | 826 // as part of a wider page load, the page_id will be the same as for the top |
| 827 // level frame. If the user explicitly requests a subframe navigation, we will | 827 // level frame. If the user explicitly requests a subframe navigation, we will |
| 828 // get a new page_id because we need to create a new navigation entry for that | 828 // get a new page_id because we need to create a new navigation entry for that |
| 829 | |
| 830 // action. | 829 // action. |
| 831 void RenderViewHost::OnMsgNavigate(const IPC::Message& msg) { | 830 void RenderViewHost::OnMsgNavigate(const IPC::Message& msg) { |
| 832 // Read the parameters out of the IPC message directly to avoid making another | 831 // Read the parameters out of the IPC message directly to avoid making another |
| 833 // copy when we filter the URLs. | 832 // copy when we filter the URLs. |
| 834 void* iter = NULL; | 833 void* iter = NULL; |
| 835 ViewHostMsg_FrameNavigate_Params validated_params; | 834 ViewHostMsg_FrameNavigate_Params validated_params; |
| 836 if (!IPC::ParamTraits<ViewHostMsg_FrameNavigate_Params>:: | 835 if (!IPC::ParamTraits<ViewHostMsg_FrameNavigate_Params>:: |
| 837 Read(&msg, &iter, &validated_params)) | 836 Read(&msg, &iter, &validated_params)) |
| 838 return; | 837 return; |
| 839 | 838 |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1302 Send(new ViewMsg_PersonalizationEvent(routing_id_, | 1301 Send(new ViewMsg_PersonalizationEvent(routing_id_, |
| 1303 event_name, | 1302 event_name, |
| 1304 event_arg)); | 1303 event_arg)); |
| 1305 } | 1304 } |
| 1306 #endif | 1305 #endif |
| 1307 | 1306 |
| 1308 void RenderViewHost::ForwardMessageFromExternalHost( | 1307 void RenderViewHost::ForwardMessageFromExternalHost( |
| 1309 const std::string& target, const std::string& message) { | 1308 const std::string& target, const std::string& message) { |
| 1310 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message)); | 1309 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message)); |
| 1311 } | 1310 } |
| OLD | NEW |