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

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

Issue 2742953003: created web::ReloadType (Closed)
Patch Set: Rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/public/navigation_manager.h ('k') | ios/web/public/test/fakes/test_navigation_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/reload_type.h
diff --git a/ios/web/public/reload_type.h b/ios/web/public/reload_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..6ba465309d247ba8a852a15e98ffa32fc4e0c934
--- /dev/null
+++ b/ios/web/public/reload_type.h
@@ -0,0 +1,23 @@
+// Copyright 2017 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_RELOAD_TYPE_H_
+#define IOS_WEB_PUBLIC_RELOAD_TYPE_H_
+
+namespace web {
+
+// Used to specify detailed behavior on requesting reload.
+enum class ReloadType : short {
+ // Reloads the visible item.
+ NORMAL = 0,
+
+ // Reloads the visible item using the original URL used to create it. This
+ // is used for cases where the user wants to refresh a page using a different
+ // user agent after following a redirect.
+ ORIGINAL_REQUEST_URL,
+};
+
+} // namespace web
+
+#endif // IOS_WEB_PUBLIC_RELOAD_TYPE_H_
« no previous file with comments | « ios/web/public/navigation_manager.h ('k') | ios/web/public/test/fakes/test_navigation_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698