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

Unified Diff: content/browser/frame_host/navigation_entry_impl.h

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: trybots ran with PS8, but one more safe change is added here Created 4 years, 3 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
Index: content/browser/frame_host/navigation_entry_impl.h
diff --git a/content/browser/frame_host/navigation_entry_impl.h b/content/browser/frame_host/navigation_entry_impl.h
index 04162896b4793be53730fc0817eeb24e33b95314..d88b401cfea67d3b15800ccc91f495b6543a7fc9 100644
--- a/content/browser/frame_host/navigation_entry_impl.h
+++ b/content/browser/frame_host/navigation_entry_impl.h
@@ -20,6 +20,8 @@
#include "content/public/browser/favicon_status.h"
#include "content/public/browser/global_request_id.h"
#include "content/public/browser/navigation_entry.h"
+#include "content/public/browser/navigation_type.h"
Charlie Reis 2016/09/09 05:41:05 I don't think we need this, do we?
Takashi Toyoshima 2016/09/09 07:31:30 Oh, right. We only need restore_type.h here.
+#include "content/public/browser/restore_type.h"
#include "content/public/common/page_state.h"
#include "content/public/common/ssl_status.h"
@@ -301,20 +303,6 @@ class CONTENT_EXPORT NavigationEntryImpl
user_typed_url_ = user_typed_url;
}
- // Enumerations of the possible restore types.
- enum RestoreType {
- // Restore from the previous session.
- RESTORE_LAST_SESSION_EXITED_CLEANLY,
- RESTORE_LAST_SESSION_CRASHED,
-
- // The entry has been restored from the current session. This is used when
- // the user issues 'reopen closed tab'.
- RESTORE_CURRENT_SESSION,
-
- // The entry was not restored.
- RESTORE_NONE
- };
-
// The RestoreType for this entry. This is set if the entry was retored. This
// is set to RESTORE_NONE once the entry is loaded.
void set_restore_type(RestoreType type) {

Powered by Google App Engine
This is Rietveld 408576698