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

Unified Diff: ios/web/public/load_committed_details.h

Issue 780873002: Upstream iOS web code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: ios/web/public/load_committed_details.h
diff --git a/ios/web/public/load_committed_details.h b/ios/web/public/load_committed_details.h
new file mode 100644
index 0000000000000000000000000000000000000000..bb9a3c175afdaa6ac5c4c25fb1063c121ff2593c
--- /dev/null
+++ b/ios/web/public/load_committed_details.h
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_PUBLIC_WEB_LOAD_COMMITTED_DETAILS_H_
+#define IOS_WEB_PUBLIC_WEB_LOAD_COMMITTED_DETAILS_H_
+
+#include "url/gurl.h"
+
+namespace web {
+class NavigationItem;
+
+struct LoadCommittedDetails {
+ // By default, the item will be filled according to a new main frame
+ // navigation.
+ LoadCommittedDetails();
+
+ // The committed item. This will be the active item in the controller.
+ web::NavigationItem* item;
+
+ // The index of the previously committed navigation item. This will be -1
+ // if there are no previous items.
+ int previous_item_index;
+
+ // The previous URL that the user was on. This may be empty if none.
+ GURL previous_url;
+
+ // True if the navigation was in-page. This means that the active item's
+ // URL and the |previous_url| are the same except for reference fragments.
+ bool is_in_page;
+};
+
+} // namespace web
+
+#endif // IOS_WEB_PUBLIC_WEB_LOAD_COMMITTED_DETAILS_H_

Powered by Google App Engine
This is Rietveld 408576698