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

Unified Diff: content/common/navigation_params.cc

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: add back previews_unspecified Created 4 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: content/common/navigation_params.cc
diff --git a/content/common/navigation_params.cc b/content/common/navigation_params.cc
index f1a7fb5f191d786e11e362f89795bac3f3810520..903ae6882373d51234e54e2159922efc622f4842 100644
--- a/content/common/navigation_params.cc
+++ b/content/common/navigation_params.cc
@@ -8,6 +8,7 @@
#include "build/build_config.h"
#include "content/common/service_worker/service_worker_types.h"
#include "content/public/common/browser_side_navigation_policy.h"
+#include "content/public/common/previews_state.h"
#include "content/public/common/url_constants.h"
#include "url/gurl.h"
#include "url/url_constants.h"
@@ -34,7 +35,7 @@ CommonNavigationParams::CommonNavigationParams()
allow_download(true),
should_replace_current_entry(false),
report_type(FrameMsg_UILoadMetricsReportType::NO_REPORT),
- lofi_state(LOFI_UNSPECIFIED),
+ previews_state(PREVIEWS_UNSPECIFIED),
navigation_start(base::TimeTicks::Now()),
method("GET") {}
@@ -50,7 +51,7 @@ CommonNavigationParams::CommonNavigationParams(
FrameMsg_UILoadMetricsReportType::Value report_type,
const GURL& base_url_for_data_url,
const GURL& history_url_for_data_url,
- LoFiState lofi_state,
+ int previews_state,
nasko 2016/12/08 22:19:33 PreviewsState
megjablon 2016/12/09 20:35:54 Done.
const base::TimeTicks& navigation_start,
std::string method,
const scoped_refptr<ResourceRequestBodyImpl>& post_data)
@@ -65,7 +66,7 @@ CommonNavigationParams::CommonNavigationParams(
report_type(report_type),
base_url_for_data_url(base_url_for_data_url),
history_url_for_data_url(history_url_for_data_url),
- lofi_state(lofi_state),
+ previews_state(previews_state),
navigation_start(navigation_start),
method(method),
post_data(post_data) {

Powered by Google App Engine
This is Rietveld 408576698