Delete historical data usage from store when user clears data usage.
[chromium-blink-merge.git] / ppapi / shared_impl / id_assignment.cc
blob5c5aed6b82271e5795eff0e55baeafb70419ad56
1 // Copyright (c) 2011 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.
5 #include "ppapi/shared_impl/id_assignment.h"
7 #include "base/basictypes.h"
9 namespace ppapi {
11 const unsigned int kPPIdTypeBits = 2;
13 const int32 kMaxPPId = kint32max >> kPPIdTypeBits;
15 static_assert(PP_ID_TYPE_COUNT <= (1 << kPPIdTypeBits),
16 "kPPIdTypeBits is too small for all id types");
18 } // namespace ppapi