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

Unified Diff: content/public/common/previews_state.h

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/public/common/previews_state.h
diff --git a/content/public/common/previews_state.h b/content/public/common/previews_state.h
new file mode 100644
index 0000000000000000000000000000000000000000..8bff7db6354c7dac86a03347567372a6f45b512c
--- /dev/null
+++ b/content/public/common/previews_state.h
@@ -0,0 +1,27 @@
+// Copyright 2016 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 CONTENT_PUBLIC_COMMON_PREVIEWS_TYPE_H_
+#define CONTENT_PUBLIC_COMMON_PREVIEWS_TYPE_H_
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+// The Previews state which determines whether to request a Preview version of
+// the resource.
nasko 2016/12/08 22:19:33 Please explain a bit more what Previews is. As it
megjablon 2016/12/09 20:35:55 I added the description we use elsewhere. There is
+enum PreviewsState {
nasko 2016/12/08 22:19:33 Honestly, Previews does not convey to me the meani
megjablon 2016/12/09 20:35:55 Lo-Fi is a type of Preview. Lo-Fi used to be the o
+ PREVIEWS_UNSPECIFIED = 0, // Let the browser process decide whether or
+ // not to request Preview types.
+ SERVER_LOFI_ON = 1 << 0, // Request a Lo-Fi version of the resource
nasko 2016/12/08 22:19:33 Shouldn't the members be named using Previews inst
megjablon 2016/12/09 20:35:55 These are the previews types that can be applied i
+ // from the server.
+ CLIENT_LOFI_ON = 1 << 1, // Request a Lo-Fi version of the resource
+ // from the client.
+ PREVIEWS_OFF = 1 << 2 // Request a normal (non-Preview) version of
+ // the resource.
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_PREVIEWS_TYPE_H_

Powered by Google App Engine
This is Rietveld 408576698