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

Side by Side Diff: ios/web/navigation/navigation_manager_impl.mm

Issue 1838323003: [ios] Added NavigationManager::LoadURLWithParams public API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.h ('k') | ios/web/public/navigation_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ios/web/navigation/navigation_manager_impl.h" 5 #include "ios/web/navigation/navigation_manager_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 } 215 }
216 216
217 void NavigationManagerImpl::DiscardNonCommittedItems() { 217 void NavigationManagerImpl::DiscardNonCommittedItems() {
218 [session_controller_ discardNonCommittedEntries]; 218 [session_controller_ discardNonCommittedEntries];
219 } 219 }
220 220
221 void NavigationManagerImpl::LoadIfNecessary() { 221 void NavigationManagerImpl::LoadIfNecessary() {
222 // Nothing to do; iOS loads lazily. 222 // Nothing to do; iOS loads lazily.
223 } 223 }
224 224
225 void NavigationManagerImpl::LoadURLWithParams(
226 const NavigationManager::WebLoadParams& params) {
227 delegate_->LoadURLWithParams(params);
228 }
229
225 void NavigationManagerImpl::AddTransientURLRewriter( 230 void NavigationManagerImpl::AddTransientURLRewriter(
226 BrowserURLRewriter::URLRewriter rewriter) { 231 BrowserURLRewriter::URLRewriter rewriter) {
227 DCHECK(rewriter); 232 DCHECK(rewriter);
228 if (!transient_url_rewriters_) { 233 if (!transient_url_rewriters_) {
229 transient_url_rewriters_.reset( 234 transient_url_rewriters_.reset(
230 new std::vector<BrowserURLRewriter::URLRewriter>()); 235 new std::vector<BrowserURLRewriter::URLRewriter>());
231 } 236 }
232 transient_url_rewriters_->push_back(rewriter); 237 transient_url_rewriters_->push_back(rewriter);
233 } 238 }
234 239
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 transient_url_rewriters_.reset(); 315 transient_url_rewriters_.reset();
311 } 316 }
312 317
313 void NavigationManagerImpl::CopyState( 318 void NavigationManagerImpl::CopyState(
314 NavigationManagerImpl* navigation_manager) { 319 NavigationManagerImpl* navigation_manager) {
315 SetSessionController( 320 SetSessionController(
316 [[navigation_manager->GetSessionController() copy] autorelease]); 321 [[navigation_manager->GetSessionController() copy] autorelease]);
317 } 322 }
318 323
319 } // namespace web 324 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.h ('k') | ios/web/public/navigation_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698