Chromium Code Reviews| Index: content/browser/frame_host/navigator_impl.cc |
| diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc |
| index afee5754d54caee32a8e3ae5ab9fbd7c3d00bffc..21daa5b352cab0aff9bfacd9fc55395379bac3d0 100644 |
| --- a/content/browser/frame_host/navigator_impl.cc |
| +++ b/content/browser/frame_host/navigator_impl.cc |
| @@ -32,16 +32,16 @@ namespace content { |
| namespace { |
| -ViewMsg_Navigate_Type::Value GetNavigationType( |
| +FrameMsg_Navigate_Type::Value GetNavigationType( |
| BrowserContext* browser_context, const NavigationEntryImpl& entry, |
| NavigationController::ReloadType reload_type) { |
| switch (reload_type) { |
| case NavigationControllerImpl::RELOAD: |
| - return ViewMsg_Navigate_Type::RELOAD; |
| + return FrameMsg_Navigate_Type::RELOAD; |
| case NavigationControllerImpl::RELOAD_IGNORING_CACHE: |
| - return ViewMsg_Navigate_Type::RELOAD_IGNORING_CACHE; |
| + return FrameMsg_Navigate_Type::RELOAD_IGNORING_CACHE; |
| case NavigationControllerImpl::RELOAD_ORIGINAL_REQUEST_URL: |
| - return ViewMsg_Navigate_Type::RELOAD_ORIGINAL_REQUEST_URL; |
| + return FrameMsg_Navigate_Type::RELOAD_ORIGINAL_REQUEST_URL; |
| case NavigationControllerImpl::NO_RELOAD: |
| break; // Fall through to rest of function. |
| } |
| @@ -51,17 +51,17 @@ ViewMsg_Navigate_Type::Value GetNavigationType( |
| if (entry.restore_type() == |
| NavigationEntryImpl::RESTORE_LAST_SESSION_EXITED_CLEANLY) { |
| if (entry.GetHasPostData()) |
| - return ViewMsg_Navigate_Type::RESTORE_WITH_POST; |
| - return ViewMsg_Navigate_Type::RESTORE; |
| + return FrameMsg_Navigate_Type::RESTORE_WITH_POST; |
| + return FrameMsg_Navigate_Type::RESTORE; |
| } |
| - return ViewMsg_Navigate_Type::NORMAL; |
| + return FrameMsg_Navigate_Type::NORMAL; |
| } |
| void MakeNavigateParams(const NavigationEntryImpl& entry, |
| const NavigationControllerImpl& controller, |
| NavigationController::ReloadType reload_type, |
| - ViewMsg_Navigate_Params* params) { |
| + FrameMsg_Navigate_Params* params) { |
| params->page_id = entry.GetPageID(); |
| params->should_clear_history_list = entry.should_clear_history_list(); |
| params->should_replace_current_entry = entry.should_replace_entry(); |
| @@ -337,10 +337,10 @@ bool NavigatorImpl::NavigateToEntry( |
| // Navigate in the desired RenderViewHost. |
|
Charlie Reis
2014/02/13 01:23:53
nit: RenderFrameHost.
nasko
2014/02/13 17:05:27
Done.
|
| // TODO(creis): As a temporary hack, we currently do cross-process subframe |
| // navigations in a top-level frame of the new process. Thus, we don't yet |
| - // need to store the correct frame ID in ViewMsg_Navigate_Params. |
| - ViewMsg_Navigate_Params navigate_params; |
| + // need to store the correct frame ID in FrameMsg_Navigate_Params. |
| + FrameMsg_Navigate_Params navigate_params; |
| MakeNavigateParams(entry, *controller_, reload_type, &navigate_params); |
| - dest_render_frame_host->render_view_host()->Navigate(navigate_params); |
| + dest_render_frame_host->Navigate(navigate_params); |
| if (entry.GetPageID() == -1) { |
| // HACK!! This code suppresses javascript: URLs from being added to |