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

Unified Diff: content/renderer/previews_state_helper.h

Issue 2910783002: Adds Lo-Fi fallback support for new Data Reduction Proxy protocol. (Closed)
Patch Set: Renamed helper method from Update* to Get* Created 3 years, 6 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 | « content/renderer/BUILD.gn ('k') | content/renderer/previews_state_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/previews_state_helper.h
diff --git a/content/renderer/previews_state_helper.h b/content/renderer/previews_state_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..c4050953e74aec4a8ce7f784107f47c0095b3979
--- /dev/null
+++ b/content/renderer/previews_state_helper.h
@@ -0,0 +1,21 @@
+// 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 CONTENT_RENDERER_PREVIEWS_STATE_HELPER_H_
+#define CONTENT_RENDERER_PREVIEWS_STATE_HELPER_H_
+
+#include "content/public/common/previews_state.h"
+#include "third_party/WebKit/public/platform/WebURLResponse.h"
+
+namespace content {
+
+// Determines and returns an updated PreviewsState value for a main frame
+// based on its |original_state| value and its |web_url_response|.
+CONTENT_EXPORT PreviewsState GetPreviewsStateFromMainFrameResponse(
+ PreviewsState original_state,
+ const blink::WebURLResponse& web_url_response);
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_PREVIEWS_STATE_HELPER_H_
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/previews_state_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698