#include "chrome/browser/extensions/api/declarative_webrequest/request_stage.h"
#include "base/basictypes.h"
namespace extensions {
const unsigned int kActiveStages = ON_BEFORE_REQUEST |
ON_BEFORE_SEND_HEADERS |
ON_HEADERS_RECEIVED |
ON_AUTH_REQUIRED;
template <long unsigned int n>
struct HighestBit {
COMPILE_ASSERT(n > 0, argument_is_not_a_positive_compile_time_constant);
enum { VALUE = HighestBit<(n >> 1)>::VALUE << 1 };
};
template <>
struct HighestBit<1> {
enum { VALUE = 1 };
};
const unsigned int kLastActiveStage = HighestBit<kActiveStages>::VALUE;
}