Lines Matching +full:unknown +full:- +full:key
2 // Use of this source code is governed by a BSD-style license that can be
14 GlobalDescriptors::Descriptor::Descriptor(Key key, int fd) in Descriptor() argument
15 : key(key), fd(fd), region(base::MemoryMappedFile::Region::kWholeFile) { in Descriptor()
18 GlobalDescriptors::Descriptor::Descriptor(Key key, in Descriptor() argument
21 : key(key), fd(fd), region(region) { in Descriptor()
32 int GlobalDescriptors::Get(Key key) const { in Get()
33 const int ret = MaybeGet(key); in Get()
35 if (ret == -1) in Get()
36 DLOG(FATAL) << "Unknown global descriptor: " << key; in Get()
40 int GlobalDescriptors::MaybeGet(Key key) const { in MaybeGet()
43 if (i->key == key) in MaybeGet()
44 return i->fd; in MaybeGet()
47 return -1; in MaybeGet()
50 void GlobalDescriptors::Set(Key key, int fd) { in Set() argument
51 Set(key, fd, base::MemoryMappedFile::Region::kWholeFile); in Set()
54 void GlobalDescriptors::Set(Key key, in Set() argument
58 if (i.key == key) { in Set()
65 descriptors_.push_back(Descriptor(key, fd, region)); in Set()
68 base::MemoryMappedFile::Region GlobalDescriptors::GetRegion(Key key) const { in GetRegion()
70 if (i.key == key) in GetRegion()
73 DLOG(FATAL) << "Unknown global descriptor: " << key; in GetRegion()