Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_COMMON_PREVIEWS_TYPE_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_PREVIEWS_STATE_H_ |
|
RyanSturm
2017/06/02 20:50:34
nice catch! thanks!
| |
| 6 #define CONTENT_PUBLIC_COMMON_PREVIEWS_TYPE_H_ | 6 #define CONTENT_PUBLIC_COMMON_PREVIEWS_STATE_H_ |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 9 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 10 | 10 |
| 11 #define STATIC_ASSERT_PREVIEWS_ENUM(a, b) \ | 11 #define STATIC_ASSERT_PREVIEWS_ENUM(a, b) \ |
| 12 static_assert(static_cast<int>(a) == static_cast<int>(b), \ | 12 static_assert(static_cast<int>(a) == static_cast<int>(b), \ |
| 13 "mismatching enums: " #a) | 13 "mismatching enums: " #a) |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 STATIC_ASSERT_PREVIEWS_ENUM(SERVER_LITE_PAGE_ON, | 59 STATIC_ASSERT_PREVIEWS_ENUM(SERVER_LITE_PAGE_ON, |
| 60 blink::WebURLRequest::kServerLitePageOn); | 60 blink::WebURLRequest::kServerLitePageOn); |
| 61 STATIC_ASSERT_PREVIEWS_ENUM(PREVIEWS_NO_TRANSFORM, | 61 STATIC_ASSERT_PREVIEWS_ENUM(PREVIEWS_NO_TRANSFORM, |
| 62 blink::WebURLRequest::kPreviewsNoTransform); | 62 blink::WebURLRequest::kPreviewsNoTransform); |
| 63 STATIC_ASSERT_PREVIEWS_ENUM(PREVIEWS_OFF, blink::WebURLRequest::kPreviewsOff); | 63 STATIC_ASSERT_PREVIEWS_ENUM(PREVIEWS_OFF, blink::WebURLRequest::kPreviewsOff); |
| 64 STATIC_ASSERT_PREVIEWS_ENUM(PREVIEWS_STATE_LAST, | 64 STATIC_ASSERT_PREVIEWS_ENUM(PREVIEWS_STATE_LAST, |
| 65 blink::WebURLRequest::kPreviewsStateLast); | 65 blink::WebURLRequest::kPreviewsStateLast); |
| 66 | 66 |
| 67 } // namespace content | 67 } // namespace content |
| 68 | 68 |
| 69 #endif // CONTENT_PUBLIC_COMMON_PREVIEWS_TYPE_H_ | 69 #endif // CONTENT_PUBLIC_COMMON_PREVIEWS_STATE_H_ |
| OLD | NEW |