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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2476363002: [ios] Made -[CRWWebController finishHistoryNavigationFromEntry:] private (Closed)
Patch Set: Created 4 years, 1 month 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/web_state/ui/crw_web_controller.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #import "ios/web/web_state/ui/crw_web_controller.h" 5 #import "ios/web/web_state/ui/crw_web_controller.h"
6 6
7 #import <WebKit/WebKit.h> 7 #import <WebKit/WebKit.h>
8 8
9 #import <objc/runtime.h> 9 #import <objc/runtime.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 // Called following navigation completion to generate final navigation lifecycle 655 // Called following navigation completion to generate final navigation lifecycle
656 // events. Navigation is considered complete when the document has finished 656 // events. Navigation is considered complete when the document has finished
657 // loading, or when other page load mechanics are completed on a 657 // loading, or when other page load mechanics are completed on a
658 // non-document-changing URL change. 658 // non-document-changing URL change.
659 - (void)didFinishNavigation; 659 - (void)didFinishNavigation;
660 // Update the appropriate parts of the model and broadcast to the embedder. This 660 // Update the appropriate parts of the model and broadcast to the embedder. This
661 // may be called multiple times and thus must be idempotent. 661 // may be called multiple times and thus must be idempotent.
662 - (void)loadCompleteWithSuccess:(BOOL)loadSuccess; 662 - (void)loadCompleteWithSuccess:(BOOL)loadSuccess;
663 // Called after URL is finished loading and _loadPhase is set to PAGE_LOADED. 663 // Called after URL is finished loading and _loadPhase is set to PAGE_LOADED.
664 - (void)didFinishWithURL:(const GURL&)currentURL loadSuccess:(BOOL)loadSuccess; 664 - (void)didFinishWithURL:(const GURL&)currentURL loadSuccess:(BOOL)loadSuccess;
665 // Loads a new URL if the current entry is not from a pushState() navigation.
666 // |fromEntry| is the CRWSessionEntry that was the current entry prior to the
667 // navigation.
668 - (void)finishHistoryNavigationFromEntry:(CRWSessionEntry*)fromEntry;
665 // Informs the native controller if web usage is allowed or not. 669 // Informs the native controller if web usage is allowed or not.
666 - (void)setNativeControllerWebUsageEnabled:(BOOL)webUsageEnabled; 670 - (void)setNativeControllerWebUsageEnabled:(BOOL)webUsageEnabled;
667 // Called when web controller receives a new message from the web page. 671 // Called when web controller receives a new message from the web page.
668 - (void)didReceiveScriptMessage:(WKScriptMessage*)message; 672 - (void)didReceiveScriptMessage:(WKScriptMessage*)message;
669 // Returns a new script which wraps |script| with windowID check so |script| is 673 // Returns a new script which wraps |script| with windowID check so |script| is
670 // not evaluated on windowID mismatch. 674 // not evaluated on windowID mismatch.
671 - (NSString*)scriptByAddingWindowIDCheckForScript:(NSString*)script; 675 - (NSString*)scriptByAddingWindowIDCheckForScript:(NSString*)script;
672 // Attempts to handle a script message. Returns YES on success, NO otherwise. 676 // Attempts to handle a script message. Returns YES on success, NO otherwise.
673 - (BOOL)respondToWKScriptMessage:(WKScriptMessage*)scriptMessage; 677 - (BOOL)respondToWKScriptMessage:(WKScriptMessage*)scriptMessage;
674 // Registers load request with empty referrer and link or client redirect 678 // Registers load request with empty referrer and link or client redirect
(...skipping 5077 matching lines...) Expand 10 before | Expand all | Expand 10 after
5752 } 5756 }
5753 5757
5754 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; 5758 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC;
5755 } 5759 }
5756 5760
5757 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { 5761 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action {
5758 return [action.request valueForHTTPHeaderField:@"Referer"]; 5762 return [action.request valueForHTTPHeaderField:@"Referer"];
5759 } 5763 }
5760 5764
5761 @end 5765 @end
OLDNEW
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698