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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller+protected.h

Issue 1178063007: Updated error translation logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
7 7
8 #import "ios/web/web_state/ui/crw_web_controller.h" 8 #import "ios/web/web_state/ui/crw_web_controller.h"
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 - (void)titleDidChange; 153 - (void)titleDidChange;
154 154
155 // Returns selector to handle JavaScript message with command property 155 // Returns selector to handle JavaScript message with command property
156 // |command|. Subclasses may override to handle class-specific messages. 156 // |command|. Subclasses may override to handle class-specific messages.
157 - (SEL)selectorToHandleJavaScriptCommand:(const std::string&)command; 157 - (SEL)selectorToHandleJavaScriptCommand:(const std::string&)command;
158 158
159 // Sets zoom scale value for webview scroll view from |zoomState|. 159 // Sets zoom scale value for webview scroll view from |zoomState|.
160 - (void)applyWebViewScrollZoomScaleFromZoomState: 160 - (void)applyWebViewScrollZoomScaleFromZoomState:
161 (const web::PageZoomState&)zoomState; 161 (const web::PageZoomState&)zoomState;
162 162
163 // Returns YES if load should be aborted when NSURLCancelledError is 163 // Used to decide whether a load that generates errors with the
164 // encountered for |cancelledURL|. 164 // NSURLErrorCancelled code should be cancelled.
165 - (BOOL)shouldAbortLoadForCancelledURL:(const GURL&)cancelledURL; 165 - (BOOL)shouldAbortLoadForCancelledError:(NSError*)cancelledError;
166 166
167 #pragma mark - Optional methods for subclasses 167 #pragma mark - Optional methods for subclasses
168 // Subclasses may overwrite methods in this section. 168 // Subclasses may overwrite methods in this section.
169 169
170 // Checks if the URL has changed unexpectedly, and handles such changes. 170 // Checks if the URL has changed unexpectedly, and handles such changes.
171 // Returns true if the URL has changed. 171 // Returns true if the URL has changed.
172 // TODO(stuartmorgan): Remove once the hook points are driven from the subclass. 172 // TODO(stuartmorgan): Remove once the hook points are driven from the subclass.
173 - (BOOL)checkForUnexpectedURLChange; 173 - (BOOL)checkForUnexpectedURLChange;
174 174
175 // Handles 'window.history.willChangeState' message. 175 // Handles 'window.history.willChangeState' message.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 364
365 // Returns the current transition type. 365 // Returns the current transition type.
366 - (ui::PageTransition)currentTransition; 366 - (ui::PageTransition)currentTransition;
367 367
368 // Resets pending external request information. 368 // Resets pending external request information.
369 - (void)resetExternalRequest; 369 - (void)resetExternalRequest;
370 370
371 @end 371 @end
372 372
373 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 373 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | ios/web/web_state/ui/crw_wk_web_view_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698