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

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

Issue 2802843003: Update CPAT protocol to send lite-page transform acceptance with ect
Patch Set: Merge with testLitePageBTF Created 3 years, 8 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/public/common/previews_state.h
diff --git a/content/public/common/previews_state.h b/content/public/common/previews_state.h
index 07ac08bc5f8b8aeff7cc9913a806403bde264a84..ceda39a87c30a99edca418ce806600a7474b5aae 100644
--- a/content/public/common/previews_state.h
+++ b/content/public/common/previews_state.h
@@ -2,8 +2,8 @@
// 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_
+#ifndef CONTENT_PUBLIC_COMMON_PREVIEWS_STATE_H_
+#define CONTENT_PUBLIC_COMMON_PREVIEWS_STATE_H_
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
@@ -27,16 +27,16 @@ typedef int PreviewsState;
// content of web pages to improve data savings and / or performance. This enum
// determines which Previews types to request.
enum PreviewsTypes {
- 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
- // from the server.
- CLIENT_LOFI_ON = 1 << 1, // Request a Lo-Fi version of the resource
- // from the client.
- SERVER_LITE_PAGE_ON = 1 << 2, // Request a Lite Page version of the
- // resource from the server.
- PREVIEWS_NO_TRANSFORM = 1 << 3, // Explicitly forbid Previews
- // transformations.
+ 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
+ // from the server.
+ CLIENT_LOFI_ON = 1 << 1, // Request a Lo-Fi version of the resource
+ // from the client.
+ SERVER_LITE_PAGE_ON = 1 << 2, // Request a Lite Page version of the
+ // resource from the server.
+ // TODO(dougarnett): Replace PreviewsNoTransform with PreviewsOff in blink.
bengr 2017/05/01 16:53:14 Reference a crbug.
+ PREVIEWS_NO_TRANSFORM = 1 << 3, // Deprecated: use PREVIEWS_OFF instead.
PREVIEWS_OFF = 1 << 4, // Request a normal (non-Preview) version of
// the resource. Server transformations may
// still happen if the page is heavy.
@@ -61,4 +61,4 @@ STATIC_ASSERT_PREVIEWS_ENUM(PREVIEWS_STATE_LAST,
} // namespace content
-#endif // CONTENT_PUBLIC_COMMON_PREVIEWS_TYPE_H_
+#endif // CONTENT_PUBLIC_COMMON_PREVIEWS_STATE_H_

Powered by Google App Engine
This is Rietveld 408576698