Chromium Code Reviews| Index: content/common/service_worker/service_worker_types.h |
| diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h |
| index cfef416e1af4b5da726e611e489abeb3e291192e..a6902eea52029e7f2e87f5a331610ae5fb853aa1 100644 |
| --- a/content/common/service_worker/service_worker_types.h |
| +++ b/content/common/service_worker/service_worker_types.h |
| @@ -92,6 +92,13 @@ enum FetchCredentialsMode { |
| FETCH_CREDENTIALS_MODE_LAST = FETCH_CREDENTIALS_MODE_INCLUDE |
| }; |
| +enum FetchRedirectMode { |
|
dcheng
2015/08/14 19:03:04
How about using enum class here?
horo
2015/08/15 00:26:31
Sounds good.
Done.
|
| + FETCH_REDIRECT_MODE_FOLLOW, |
| + FETCH_REDIRECT_MODE_ERROR, |
| + FETCH_REDIRECT_MODE_MANUAL, |
| + FETCH_REDIRECT_MODE_LAST = FETCH_REDIRECT_MODE_MANUAL |
| +}; |
| + |
| // Indicates how the service worker handled a fetch event. |
| enum ServiceWorkerFetchEventResult { |
| // Browser should fallback to native fetch. |
| @@ -130,6 +137,7 @@ struct CONTENT_EXPORT ServiceWorkerFetchRequest { |
| uint64 blob_size; |
| Referrer referrer; |
| FetchCredentialsMode credentials_mode; |
| + FetchRedirectMode redirect_mode; |
| bool is_reload; |
| }; |