| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef ResourceLoadPriority_h | 26 #ifndef ResourceLoadPriority_h |
| 27 #define ResourceLoadPriority_h | 27 #define ResourceLoadPriority_h |
| 28 | 28 |
| 29 #include "platform/wtf/Allocator.h" | 29 #include "platform/wtf/Allocator.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 enum ResourceLoadPriority : int { | 33 enum ResourceLoadPriority : int8_t { |
| 34 // The unresolved priority is here for the convenience of the clients. It | 34 // The unresolved priority is here for the convenience of the clients. It |
| 35 // should not be passed to the ResourceLoadScheduler. | 35 // should not be passed to the ResourceLoadScheduler. |
| 36 kResourceLoadPriorityUnresolved = -1, | 36 kResourceLoadPriorityUnresolved = -1, |
| 37 kResourceLoadPriorityVeryLow = 0, | 37 kResourceLoadPriorityVeryLow = 0, |
| 38 kResourceLoadPriorityLow, | 38 kResourceLoadPriorityLow, |
| 39 kResourceLoadPriorityMedium, | 39 kResourceLoadPriorityMedium, |
| 40 kResourceLoadPriorityHigh, | 40 kResourceLoadPriorityHigh, |
| 41 kResourceLoadPriorityVeryHigh, | 41 kResourceLoadPriorityVeryHigh, |
| 42 kResourceLoadPriorityLowest = kResourceLoadPriorityVeryLow, | 42 kResourceLoadPriorityLowest = kResourceLoadPriorityVeryLow, |
| 43 kResourceLoadPriorityHighest = kResourceLoadPriorityVeryHigh, | 43 kResourceLoadPriorityHighest = kResourceLoadPriorityVeryHigh, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 56 ResourcePriority(VisibilityStatus status, int intra_value) | 56 ResourcePriority(VisibilityStatus status, int intra_value) |
| 57 : visibility(status), intra_priority_value(intra_value) {} | 57 : visibility(status), intra_priority_value(intra_value) {} |
| 58 | 58 |
| 59 VisibilityStatus visibility; | 59 VisibilityStatus visibility; |
| 60 int intra_priority_value; | 60 int intra_priority_value; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif | 65 #endif |
| OLD | NEW |