summaryrefslogtreecommitdiffstats
path: root/ios
diff options
context:
space:
mode:
authorkkhorimoto <kkhorimoto@chromium.org>2015-01-06 16:28:40 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-07 00:30:06 +0000
commit64c523540529f62a66f6a52e888317bf7fc262c1 (patch)
treea54c507a3dda57cbe4ff3749678c3d259ffc2114 /ios
parent8e236456ec39379944823698e3b9d083fbf3979e (diff)
downloadchromium_src-64c523540529f62a66f6a52e888317bf7fc262c1.zip
chromium_src-64c523540529f62a66f6a52e888317bf7fc262c1.tar.gz
chromium_src-64c523540529f62a66f6a52e888317bf7fc262c1.tar.bz2
Added |load_completion_status| to WebStateObserver's |PageLoaded|.
This CL also introduces the web::PageLoadCompletionStatus enum. This was done to support future WebStateObserver subclasses that require notifications of failed page loads. BUG=none Review URL: https://codereview.chromium.org/835203002 Cr-Commit-Position: refs/heads/master@{#310188}
Diffstat (limited to 'ios')
-rw-r--r--ios/web/public/web_state/web_state_observer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ios/web/public/web_state/web_state_observer.h b/ios/web/public/web_state/web_state_observer.h
index bc43b48..ac6f9d2 100644
--- a/ios/web/public/web_state/web_state_observer.h
+++ b/ios/web/public/web_state/web_state_observer.h
@@ -13,6 +13,8 @@ struct LoadCommittedDetails;
class WebState;
class WebStateImpl;
+enum class PageLoadCompletionStatus : bool { SUCCESS = 0, FAILURE = 1 };
+
// An observer API implemented by classes which are interested in various page
// load events from WebState.
class WebStateObserver {
@@ -28,7 +30,7 @@ class WebStateObserver {
const LoadCommittedDetails& load_details) {}
// Called when the current page is loaded.
- virtual void PageLoaded() {}
+ virtual void PageLoaded(PageLoadCompletionStatus load_completion_status) {}
// Called on URL hash change events.
virtual void URLHashChanged() {}