OLD | NEW |
| (Empty) |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_RENDERER_PREVIEWS_STATE_HELPER_H_ | |
6 #define CONTENT_RENDERER_PREVIEWS_STATE_HELPER_H_ | |
7 | |
8 #include "content/public/common/previews_state.h" | |
9 #include "third_party/WebKit/public/platform/WebURLResponse.h" | |
10 | |
11 namespace content { | |
12 | |
13 // Determines and returns an updated PreviewsState value for a main frame | |
14 // based on its |original_state| value and its |web_url_response|. | |
15 CONTENT_EXPORT PreviewsState GetPreviewsStateFromMainFrameResponse( | |
16 PreviewsState original_state, | |
17 const blink::WebURLResponse& web_url_response); | |
18 | |
19 } // namespace content | |
20 | |
21 #endif // CONTENT_RENDERER_PREVIEWS_STATE_HELPER_H_ | |
OLD | NEW |