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..f85b469b3f1c29ef10e5835f8de69da28d3e65e1 |
--- /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 { |
+ |
+// Returns an updated PreviewsState value for a main frame based on its |
+// |original_state| value and its |web_url_response|. |
+CONTENT_EXPORT PreviewsState UpdatePreviewsStateFromMainFrameResponse( |
megjablon
2017/06/05 23:47:59
Where are we calling this that it needs a CONTENT_
dougarnett
2017/06/06 16:49:46
It was not exposed for the unittests. Is there bet
|
+ PreviewsState original_state, |
+ const blink::WebURLResponse& web_url_response); |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_RENDERER_PREVIEWS_STATE_HELPER_H_ |