Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+ Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 3259 matching lines...) Expand 10 before | Expand all | Expand 10 after
3270 observers_, 3270 observers_,
3271 DidFailLoad(render_frame_host, url, error_code, error_description, 3271 DidFailLoad(render_frame_host, url, error_code, error_description,
3272 was_ignored_by_handler)); 3272 was_ignored_by_handler));
3273 } 3273 }
3274 3274
3275 void WebContentsImpl::NotifyChangedNavigationState( 3275 void WebContentsImpl::NotifyChangedNavigationState(
3276 InvalidateTypes changed_flags) { 3276 InvalidateTypes changed_flags) {
3277 NotifyNavigationStateChanged(changed_flags); 3277 NotifyNavigationStateChanged(changed_flags);
3278 } 3278 }
3279 3279
3280 void WebContentsImpl::DidStartNavigationToPendingEntry( 3280 void WebContentsImpl::DidStartNavigationToPendingEntry(const GURL& url,
3281 const GURL& url, 3281 ReloadType reload_type) {
3282 NavigationController::ReloadType reload_type) {
3283 // Notify observers about navigation. 3282 // Notify observers about navigation.
3284 FOR_EACH_OBSERVER( 3283 FOR_EACH_OBSERVER(
3285 WebContentsObserver, 3284 WebContentsObserver,
3286 observers_, 3285 observers_,
3287 DidStartNavigationToPendingEntry(url, reload_type)); 3286 DidStartNavigationToPendingEntry(url, reload_type));
3288 } 3287 }
3289 3288
3290 void WebContentsImpl::RequestOpenURL(RenderFrameHostImpl* render_frame_host, 3289 void WebContentsImpl::RequestOpenURL(RenderFrameHostImpl* render_frame_host,
3291 const OpenURLParams& params) { 3290 const OpenURLParams& params) {
3292 // OpenURL can blow away the source RFH. Use the process/frame routing ID as a 3291 // OpenURL can blow away the source RFH. Use the process/frame routing ID as a
(...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after
5232 for (RenderViewHost* render_view_host : render_view_host_set) 5231 for (RenderViewHost* render_view_host : render_view_host_set)
5233 render_view_host->OnWebkitPreferencesChanged(); 5232 render_view_host->OnWebkitPreferencesChanged();
5234 } 5233 }
5235 5234
5236 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 5235 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
5237 JavaScriptDialogManager* dialog_manager) { 5236 JavaScriptDialogManager* dialog_manager) {
5238 dialog_manager_ = dialog_manager; 5237 dialog_manager_ = dialog_manager;
5239 } 5238 }
5240 5239
5241 } // namespace content 5240 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698