cache 131 apps/app_shim/extension_app_shim_handler_mac.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 132 apps/app_shim/extension_app_shim_handler_mac.cc return cache.GetIndexOfProfileWithPath(full_path) != std::string::npos; cache 966 apps/app_window.cc AppWindowGeometryCache* cache = cache 973 apps/app_window.cc cache->SaveGeometry( cache 1024 apps/app_window.cc AppWindowGeometryCache* cache = cache 1030 apps/app_window.cc if (cache->GetGeometry(extension()->id(), cache 37 base/containers/mru_cache_unittest.cc Cache cache(Cache::NO_AUTO_EVICT); cache 42 base/containers/mru_cache_unittest.cc EXPECT_TRUE(cache.Get(0) == cache.end()); cache 43 base/containers/mru_cache_unittest.cc EXPECT_TRUE(cache.Peek(0) == cache.end()); cache 48 base/containers/mru_cache_unittest.cc Cache::iterator inserted_item = cache.Put(kItem1Key, item1); cache 49 base/containers/mru_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 53 base/containers/mru_cache_unittest.cc Cache::iterator found = cache.Get(kItem1Key); cache 54 base/containers/mru_cache_unittest.cc EXPECT_TRUE(inserted_item == cache.begin()); cache 55 base/containers/mru_cache_unittest.cc EXPECT_TRUE(found != cache.end()); cache 57 base/containers/mru_cache_unittest.cc found = cache.Peek(kItem1Key); cache 58 base/containers/mru_cache_unittest.cc EXPECT_TRUE(found != cache.end()); cache 66 base/containers/mru_cache_unittest.cc cache.Put(kItem2Key, item2); cache 67 base/containers/mru_cache_unittest.cc EXPECT_EQ(2U, cache.size()); cache 71 base/containers/mru_cache_unittest.cc Cache::reverse_iterator oldest = cache.rbegin(); cache 72 base/containers/mru_cache_unittest.cc ASSERT_TRUE(oldest != cache.rend()); cache 79 base/containers/mru_cache_unittest.cc Cache::iterator test_item = cache.Get(kItem1Key); cache 80 base/containers/mru_cache_unittest.cc ASSERT_TRUE(test_item != cache.end()); cache 87 base/containers/mru_cache_unittest.cc Cache::reverse_iterator oldest = cache.rbegin(); cache 88 base/containers/mru_cache_unittest.cc ASSERT_TRUE(oldest != cache.rend()); cache 95 base/containers/mru_cache_unittest.cc Cache::reverse_iterator next = cache.Erase(cache.rbegin()); cache 97 base/containers/mru_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 99 base/containers/mru_cache_unittest.cc EXPECT_TRUE(next == cache.rbegin()); cache 103 base/containers/mru_cache_unittest.cc cache.Erase(cache.begin()); cache 104 base/containers/mru_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 108 base/containers/mru_cache_unittest.cc cache.Put(kItem1Key, item1); cache 109 base/containers/mru_cache_unittest.cc cache.Put(kItem2Key, item2); cache 110 base/containers/mru_cache_unittest.cc EXPECT_EQ(2U, cache.size()); cache 111 base/containers/mru_cache_unittest.cc cache.Clear(); cache 112 base/containers/mru_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 117 base/containers/mru_cache_unittest.cc Cache cache(Cache::NO_AUTO_EVICT); cache 121 base/containers/mru_cache_unittest.cc cache.Put(kItem1Key, item1); cache 125 base/containers/mru_cache_unittest.cc cache.Put(kItem2Key, item2); cache 128 base/containers/mru_cache_unittest.cc cache.ShrinkToSize(100); cache 132 base/containers/mru_cache_unittest.cc Cache::reverse_iterator iter = cache.rbegin(); cache 133 base/containers/mru_cache_unittest.cc ASSERT_TRUE(iter != cache.rend()); cache 140 base/containers/mru_cache_unittest.cc Cache::iterator peekiter = cache.Peek(kItem1Key); cache 141 base/containers/mru_cache_unittest.cc ASSERT_TRUE(peekiter != cache.end()); cache 143 base/containers/mru_cache_unittest.cc Cache::reverse_iterator iter = cache.rbegin(); cache 144 base/containers/mru_cache_unittest.cc ASSERT_TRUE(iter != cache.rend()); cache 152 base/containers/mru_cache_unittest.cc Cache cache(Cache::NO_AUTO_EVICT); cache 156 base/containers/mru_cache_unittest.cc cache.Put(kItem1Key, item1); cache 160 base/containers/mru_cache_unittest.cc cache.Put(kItem2Key, item2); cache 164 base/containers/mru_cache_unittest.cc cache.Put(kItem3Key, item3); cache 168 base/containers/mru_cache_unittest.cc cache.Put(kItem4Key, item4); cache 171 base/containers/mru_cache_unittest.cc cache.Put(kItem3Key, item5); cache 173 base/containers/mru_cache_unittest.cc EXPECT_EQ(4U, cache.size()); cache 175 base/containers/mru_cache_unittest.cc Cache::reverse_iterator iter = cache.rbegin(); cache 176 base/containers/mru_cache_unittest.cc ASSERT_TRUE(iter != cache.rend()); cache 180 base/containers/mru_cache_unittest.cc cache.ShrinkToSize(1); cache 182 base/containers/mru_cache_unittest.cc Cache::iterator iter = cache.begin(); cache 190 base/containers/mru_cache_unittest.cc Cache cache(Cache::NO_AUTO_EVICT); cache 196 base/containers/mru_cache_unittest.cc cache.Put(kItem1Key, new CachedItem(20)); cache 197 base/containers/mru_cache_unittest.cc cache.Put(kItem1Key, new CachedItem(22)); cache 200 base/containers/mru_cache_unittest.cc Cache::iterator iter = cache.Get(kItem1Key); cache 201 base/containers/mru_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 202 base/containers/mru_cache_unittest.cc EXPECT_TRUE(iter != cache.end()); cache 206 base/containers/mru_cache_unittest.cc cache.Erase(cache.begin()); cache 238 base/containers/mru_cache_unittest.cc Cache cache(kMaxSize); cache 241 base/containers/mru_cache_unittest.cc cache.Put(kItem1Key, new CachedItem(20)); cache 242 base/containers/mru_cache_unittest.cc cache.Put(kItem2Key, new CachedItem(21)); cache 243 base/containers/mru_cache_unittest.cc cache.Put(kItem3Key, new CachedItem(22)); cache 244 base/containers/mru_cache_unittest.cc cache.Put(kItem4Key, new CachedItem(23)); cache 248 base/containers/mru_cache_unittest.cc EXPECT_EQ(kMaxSize, cache.size()); cache 258 base/containers/mru_cache_unittest.cc Cache cache(Cache::NO_AUTO_EVICT); cache 261 base/containers/mru_cache_unittest.cc cache.Put("First", one); cache 264 base/containers/mru_cache_unittest.cc cache.Put("Second", two); cache 266 base/containers/mru_cache_unittest.cc EXPECT_EQ(one.value, cache.Get("First")->second.value); cache 267 base/containers/mru_cache_unittest.cc EXPECT_EQ(two.value, cache.Get("Second")->second.value); cache 268 base/containers/mru_cache_unittest.cc cache.ShrinkToSize(1); cache 269 base/containers/mru_cache_unittest.cc EXPECT_EQ(two.value, cache.Get("Second")->second.value); cache 270 base/containers/mru_cache_unittest.cc EXPECT_TRUE(cache.Get("First") == cache.end()); cache 115 base/path_service.cc PathMap cache; // Cache mappings from path key to path value. cache 154 base/path_service.cc PathMap::const_iterator it = path_data->cache.find(key); cache 155 base/path_service.cc if (it != path_data->cache.end()) { cache 169 base/path_service.cc path_data->cache[key] = it->second; cache 229 base/path_service.cc path_data->cache[key] = path; cache 270 base/path_service.cc path_data->cache.clear(); cache 289 base/path_service.cc path_data->cache.clear(); cache 334 base/path_service.cc path_data->cache.clear(); cache 150 base/third_party/xdg_mime/xdgmime.c XdgMimeCache *cache = _xdg_mime_cache_new_from_file (file_name); cache 152 base/third_party/xdg_mime/xdgmime.c if (cache != NULL) cache 157 base/third_party/xdg_mime/xdgmime.c _caches[n_caches] = cache; cache 89 base/third_party/xdg_mime/xdgmimecache.c #define GET_UINT16(cache,offset) (ntohs(*(xdg_uint16_t*)((cache) + (offset)))) cache 90 base/third_party/xdg_mime/xdgmimecache.c #define GET_UINT32(cache,offset) (ntohl(*(xdg_uint32_t*)((cache) + (offset)))) cache 93 base/third_party/xdg_mime/xdgmimecache.c _xdg_mime_cache_ref (XdgMimeCache *cache) cache 95 base/third_party/xdg_mime/xdgmimecache.c cache->ref_count++; cache 96 base/third_party/xdg_mime/xdgmimecache.c return cache; cache 100 base/third_party/xdg_mime/xdgmimecache.c _xdg_mime_cache_unref (XdgMimeCache *cache) cache 102 base/third_party/xdg_mime/xdgmimecache.c cache->ref_count--; cache 104 base/third_party/xdg_mime/xdgmimecache.c if (cache->ref_count == 0) cache 107 base/third_party/xdg_mime/xdgmimecache.c munmap (cache->buffer, cache->size); cache 109 base/third_party/xdg_mime/xdgmimecache.c free (cache); cache 116 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = NULL; cache 149 base/third_party/xdg_mime/xdgmimecache.c cache = (XdgMimeCache *) malloc (sizeof (XdgMimeCache)); cache 150 base/third_party/xdg_mime/xdgmimecache.c cache->minor = minor; cache 151 base/third_party/xdg_mime/xdgmimecache.c cache->ref_count = 1; cache 152 base/third_party/xdg_mime/xdgmimecache.c cache->buffer = buffer; cache 153 base/third_party/xdg_mime/xdgmimecache.c cache->size = st.st_size; cache 161 base/third_party/xdg_mime/xdgmimecache.c return cache; cache 165 base/third_party/xdg_mime/xdgmimecache.c cache_magic_matchlet_compare_to_data (XdgMimeCache *cache, cache 170 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t range_start = GET_UINT32 (cache->buffer, offset); cache 171 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t range_length = GET_UINT32 (cache->buffer, offset + 4); cache 172 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t data_length = GET_UINT32 (cache->buffer, offset + 12); cache 173 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t data_offset = GET_UINT32 (cache->buffer, offset + 16); cache 174 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t mask_offset = GET_UINT32 (cache->buffer, offset + 20); cache 189 base/third_party/xdg_mime/xdgmimecache.c if ((((unsigned char *)cache->buffer)[data_offset + j] & ((unsigned char *)cache->buffer)[mask_offset + j]) != cache 190 base/third_party/xdg_mime/xdgmimecache.c ((((unsigned char *) data)[j + i]) & ((unsigned char *)cache->buffer)[mask_offset + j])) cache 199 base/third_party/xdg_mime/xdgmimecache.c valid_matchlet = memcmp(cache->buffer + data_offset, data + i, data_length) == 0; cache 210 base/third_party/xdg_mime/xdgmimecache.c cache_magic_matchlet_compare (XdgMimeCache *cache, cache 215 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t n_children = GET_UINT32 (cache->buffer, offset + 24); cache 216 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t child_offset = GET_UINT32 (cache->buffer, offset + 28); cache 220 base/third_party/xdg_mime/xdgmimecache.c if (cache_magic_matchlet_compare_to_data (cache, offset, data, len)) cache 227 base/third_party/xdg_mime/xdgmimecache.c if (cache_magic_matchlet_compare (cache, child_offset + 32 * i, cache 237 base/third_party/xdg_mime/xdgmimecache.c cache_magic_compare_to_data (XdgMimeCache *cache, cache 243 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t priority = GET_UINT32 (cache->buffer, offset); cache 244 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t mimetype_offset = GET_UINT32 (cache->buffer, offset + 4); cache 245 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t n_matchlets = GET_UINT32 (cache->buffer, offset + 8); cache 246 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t matchlet_offset = GET_UINT32 (cache->buffer, offset + 12); cache 252 base/third_party/xdg_mime/xdgmimecache.c if (cache_magic_matchlet_compare (cache, matchlet_offset + i * 32, cache 257 base/third_party/xdg_mime/xdgmimecache.c return cache->buffer + mimetype_offset; cache 265 base/third_party/xdg_mime/xdgmimecache.c cache_magic_lookup_data (XdgMimeCache *cache, cache 280 base/third_party/xdg_mime/xdgmimecache.c list_offset = GET_UINT32 (cache->buffer, 24); cache 281 base/third_party/xdg_mime/xdgmimecache.c n_entries = GET_UINT32 (cache->buffer, list_offset); cache 282 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, list_offset + 8); cache 288 base/third_party/xdg_mime/xdgmimecache.c match = cache_magic_compare_to_data (cache, offset + 16 * j, cache 297 base/third_party/xdg_mime/xdgmimecache.c mimetype_offset = GET_UINT32 (cache->buffer, offset + 16 * j + 4); cache 298 base/third_party/xdg_mime/xdgmimecache.c non_match = cache->buffer + mimetype_offset; cache 320 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = _caches[i]; cache 321 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t list_offset = GET_UINT32 (cache->buffer, 4); cache 322 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t n_entries = GET_UINT32 (cache->buffer, list_offset); cache 331 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, list_offset + 4 + 8 * mid); cache 332 base/third_party/xdg_mime/xdgmimecache.c ptr = cache->buffer + offset; cache 341 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, list_offset + 4 + 8 * mid + 4); cache 342 base/third_party/xdg_mime/xdgmimecache.c return cache->buffer + offset; cache 366 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = _caches[i]; cache 367 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t list_offset = GET_UINT32 (cache->buffer, 12); cache 368 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t n_entries = GET_UINT32 (cache->buffer, list_offset); cache 377 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, list_offset + 4 + 12 * mid); cache 378 base/third_party/xdg_mime/xdgmimecache.c ptr = cache->buffer + offset; cache 387 base/third_party/xdg_mime/xdgmimecache.c int weight = GET_UINT32 (cache->buffer, list_offset + 4 + 12 * mid + 8); cache 393 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, list_offset + 4 + 12 * mid + 4); cache 394 base/third_party/xdg_mime/xdgmimecache.c mime_types[0] = (const char *)(cache->buffer + offset); cache 420 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = _caches[i]; cache 422 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t list_offset = GET_UINT32 (cache->buffer, 20); cache 423 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t n_entries = GET_UINT32 (cache->buffer, list_offset); cache 427 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t offset = GET_UINT32 (cache->buffer, list_offset + 4 + 12 * j); cache 428 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t mimetype_offset = GET_UINT32 (cache->buffer, list_offset + 4 + 12 * j + 4); cache 429 base/third_party/xdg_mime/xdgmimecache.c int weight = GET_UINT32 (cache->buffer, list_offset + 4 + 12 * j + 8); cache 432 base/third_party/xdg_mime/xdgmimecache.c ptr = cache->buffer + offset; cache 433 base/third_party/xdg_mime/xdgmimecache.c mime_type = cache->buffer + mimetype_offset; cache 454 base/third_party/xdg_mime/xdgmimecache.c cache_glob_node_lookup_suffix (XdgMimeCache *cache, cache 482 base/third_party/xdg_mime/xdgmimecache.c match_char = GET_UINT32 (cache->buffer, offset + 12 * mid); cache 491 base/third_party/xdg_mime/xdgmimecache.c n_children = GET_UINT32 (cache->buffer, offset + 12 * mid + 4); cache 492 base/third_party/xdg_mime/xdgmimecache.c child_offset = GET_UINT32 (cache->buffer, offset + 12 * mid + 8); cache 496 base/third_party/xdg_mime/xdgmimecache.c n = cache_glob_node_lookup_suffix (cache, cache 508 base/third_party/xdg_mime/xdgmimecache.c match_char = GET_UINT32 (cache->buffer, child_offset + 12 * i); cache 512 base/third_party/xdg_mime/xdgmimecache.c mimetype_offset = GET_UINT32 (cache->buffer, child_offset + 12 * i + 4); cache 513 base/third_party/xdg_mime/xdgmimecache.c weight = GET_UINT32 (cache->buffer, child_offset + 12 * i + 8); cache 519 base/third_party/xdg_mime/xdgmimecache.c mime_types[n].mime = cache->buffer + mimetype_offset; cache 543 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = _caches[i]; cache 545 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t list_offset = GET_UINT32 (cache->buffer, 16); cache 546 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t n_entries = GET_UINT32 (cache->buffer, list_offset); cache 547 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t offset = GET_UINT32 (cache->buffer, list_offset + 4); cache 549 base/third_party/xdg_mime/xdgmimecache.c n = cache_glob_node_lookup_suffix (cache, cache 652 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = _caches[i]; cache 654 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, 24); cache 655 base/third_party/xdg_mime/xdgmimecache.c max_extent = MAX (max_extent, GET_UINT32 (cache->buffer, offset + 4)); cache 675 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = _caches[i]; cache 680 base/third_party/xdg_mime/xdgmimecache.c match = cache_magic_lookup_data (cache, data, len, &prio, cache 868 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = _caches[i]; cache 870 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t list_offset = GET_UINT32 (cache->buffer, 8); cache 871 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t n_entries = GET_UINT32 (cache->buffer, list_offset); cache 880 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, list_offset + 4 + 8 * med); cache 881 base/third_party/xdg_mime/xdgmimecache.c cmp = strcmp (cache->buffer + offset, umime); cache 888 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, list_offset + 4 + 8 * med + 4); cache 889 base/third_party/xdg_mime/xdgmimecache.c n_parents = GET_UINT32 (cache->buffer, offset); cache 893 base/third_party/xdg_mime/xdgmimecache.c parent_offset = GET_UINT32 (cache->buffer, offset + 4 + 4 * j); cache 894 base/third_party/xdg_mime/xdgmimecache.c if (_xdg_mime_cache_mime_type_subclass (cache->buffer + parent_offset, ubase)) cache 931 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = _caches[i]; cache 933 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t list_offset = GET_UINT32 (cache->buffer, 8); cache 934 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t n_entries = GET_UINT32 (cache->buffer, list_offset); cache 938 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t mimetype_offset = GET_UINT32 (cache->buffer, list_offset + 4 + 8 * j); cache 939 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t parents_offset = GET_UINT32 (cache->buffer, list_offset + 4 + 8 * j + 4); cache 941 base/third_party/xdg_mime/xdgmimecache.c if (strcmp (cache->buffer + mimetype_offset, mime) == 0) cache 944 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t n_parents = GET_UINT32 (cache->buffer, parents_offset); cache 948 base/third_party/xdg_mime/xdgmimecache.c parent_mime_offset = GET_UINT32 (cache->buffer, parents_offset + 4 + 4 * k); cache 955 base/third_party/xdg_mime/xdgmimecache.c if (strcmp (all_parents[l], cache->buffer + parent_mime_offset) == 0) cache 960 base/third_party/xdg_mime/xdgmimecache.c all_parents[p++] = cache->buffer + parent_mime_offset; cache 983 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = _caches[i]; cache 984 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t list_offset = GET_UINT32 (cache->buffer, header); cache 985 base/third_party/xdg_mime/xdgmimecache.c xdg_uint32_t n_entries = GET_UINT32 (cache->buffer, list_offset); cache 994 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, list_offset + 4 + 8 * mid); cache 995 base/third_party/xdg_mime/xdgmimecache.c ptr = cache->buffer + offset; cache 1004 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, list_offset + 4 + 8 * mid + 4); cache 1005 base/third_party/xdg_mime/xdgmimecache.c return cache->buffer + offset; cache 1026 base/third_party/xdg_mime/xdgmimecache.c dump_glob_node (XdgMimeCache *cache, cache 1036 base/third_party/xdg_mime/xdgmimecache.c character = GET_UINT32 (cache->buffer, offset); cache 1037 base/third_party/xdg_mime/xdgmimecache.c mime_offset = GET_UINT32 (cache->buffer, offset + 4); cache 1038 base/third_party/xdg_mime/xdgmimecache.c n_children = GET_UINT32 (cache->buffer, offset + 8); cache 1039 base/third_party/xdg_mime/xdgmimecache.c child_offset = GET_UINT32 (cache->buffer, offset + 12); cache 1044 base/third_party/xdg_mime/xdgmimecache.c printf (" - %s", cache->buffer + mime_offset); cache 1049 base/third_party/xdg_mime/xdgmimecache.c dump_glob_node (cache, child_offset + 20 * i, depth + 1); cache 1059 base/third_party/xdg_mime/xdgmimecache.c XdgMimeCache *cache = _caches[i]; cache 1063 base/third_party/xdg_mime/xdgmimecache.c list_offset = GET_UINT32 (cache->buffer, 16); cache 1064 base/third_party/xdg_mime/xdgmimecache.c n_entries = GET_UINT32 (cache->buffer, list_offset); cache 1065 base/third_party/xdg_mime/xdgmimecache.c offset = GET_UINT32 (cache->buffer, list_offset + 4); cache 1067 base/third_party/xdg_mime/xdgmimecache.c dump_glob_node (cache, offset + 20 * j, 0); cache 54 base/third_party/xdg_mime/xdgmimecache.h XdgMimeCache *_xdg_mime_cache_ref (XdgMimeCache *cache); cache 55 base/third_party/xdg_mime/xdgmimecache.h void _xdg_mime_cache_unref (XdgMimeCache *cache); cache 642 cc/resources/picture_layer_tiling.cc RectExpansionCache* cache) { cache 646 cc/resources/picture_layer_tiling.cc if (cache && cache 647 cc/resources/picture_layer_tiling.cc cache->previous_start == starting_rect && cache 648 cc/resources/picture_layer_tiling.cc cache->previous_bounds == bounding_rect && cache 649 cc/resources/picture_layer_tiling.cc cache->previous_target == target_area) cache 650 cc/resources/picture_layer_tiling.cc return cache->previous_result; cache 652 cc/resources/picture_layer_tiling.cc if (cache) { cache 653 cc/resources/picture_layer_tiling.cc cache->previous_start = starting_rect; cache 654 cc/resources/picture_layer_tiling.cc cache->previous_bounds = bounding_rect; cache 655 cc/resources/picture_layer_tiling.cc cache->previous_target = target_area; cache 671 cc/resources/picture_layer_tiling.cc if (cache) cache 672 cc/resources/picture_layer_tiling.cc cache->previous_result = rect; cache 678 cc/resources/picture_layer_tiling.cc if (cache) cache 679 cc/resources/picture_layer_tiling.cc cache->previous_result = rect; cache 750 cc/resources/picture_layer_tiling.cc if (cache) cache 751 cc/resources/picture_layer_tiling.cc cache->previous_result = result; cache 250 cc/resources/picture_layer_tiling.h RectExpansionCache* cache); cache 22 chrome/browser/apps/app_window_browsertest.cc GeometryCacheChangeHelper(AppWindowGeometryCache* cache, cache 26 chrome/browser/apps/app_window_browsertest.cc : cache_(cache), cache 33 chrome/browser/autofill/validation_rules_storage_factory.cc base::FilePath cache = cache 38 chrome/browser/autofill/validation_rules_storage_factory.cc cache, content::BrowserThread::GetBlockingPool()); cache 41 chrome/browser/autofill/validation_rules_storage_factory.cc new JsonPrefStore(cache, task_runner.get(), scoped_ptr<PrefFilter>()); cache 432 chrome/browser/background/background_mode_manager.cc ProfileInfoCache& cache = cache 434 chrome/browser/background/background_mode_manager.cc base::string16 profile_name = cache.GetNameOfProfileAtIndex( cache 435 chrome/browser/background/background_mode_manager.cc cache.GetIndexOfProfileWithPath(profile_path)); cache 453 chrome/browser/background/background_mode_manager.cc ProfileInfoCache& cache = cache 455 chrome/browser/background/background_mode_manager.cc base::string16 profile_name = cache.GetNameOfProfileAtIndex( cache 456 chrome/browser/background/background_mode_manager.cc cache.GetIndexOfProfileWithPath(profile_path)); cache 477 chrome/browser/background/background_mode_manager.cc ProfileInfoCache& cache = cache 479 chrome/browser/background/background_mode_manager.cc base::string16 new_profile_name = cache.GetNameOfProfileAtIndex( cache 480 chrome/browser/background/background_mode_manager.cc cache.GetIndexOfProfileWithPath(profile_path)); cache 78 chrome/browser/background/background_mode_manager_unittest.cc CommandLine* command_line, ProfileInfoCache* cache, bool enabled) cache 79 chrome/browser/background/background_mode_manager_unittest.cc : BackgroundModeManager(command_line, cache), cache 308 chrome/browser/background/background_mode_manager_unittest.cc ProfileInfoCache* cache = profile_manager->profile_info_cache(); cache 309 chrome/browser/background/background_mode_manager_unittest.cc EXPECT_EQ(2u, cache->GetNumberOfProfiles()); cache 311 chrome/browser/background/background_mode_manager_unittest.cc EXPECT_FALSE(cache->GetBackgroundStatusOfProfileAtIndex(0)); cache 312 chrome/browser/background/background_mode_manager_unittest.cc EXPECT_FALSE(cache->GetBackgroundStatusOfProfileAtIndex(1)); cache 326 chrome/browser/background/background_mode_manager_unittest.cc EXPECT_TRUE(cache->GetBackgroundStatusOfProfileAtIndex(0)); cache 327 chrome/browser/background/background_mode_manager_unittest.cc EXPECT_TRUE(cache->GetBackgroundStatusOfProfileAtIndex(1)); cache 332 chrome/browser/background/background_mode_manager_unittest.cc size_t p1_index = cache->GetIndexOfProfileWithPath(profile1->GetPath()); cache 333 chrome/browser/background/background_mode_manager_unittest.cc EXPECT_FALSE(cache->GetBackgroundStatusOfProfileAtIndex(p1_index)); cache 338 chrome/browser/background/background_mode_manager_unittest.cc size_t p2_index = cache->GetIndexOfProfileWithPath(profile1->GetPath()); cache 339 chrome/browser/background/background_mode_manager_unittest.cc EXPECT_FALSE(cache->GetBackgroundStatusOfProfileAtIndex(p2_index)); cache 343 chrome/browser/background/background_mode_manager_unittest.cc EXPECT_EQ(2u, cache->GetNumberOfProfiles()); cache 348 chrome/browser/chrome_browser_main.cc ProfileInfoCache& cache = cache 350 chrome/browser/chrome_browser_main.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile_path); cache 352 chrome/browser/chrome_browser_main.cc if (cache.ProfileIsSigninRequiredAtIndex(profile_index)) cache 97 chrome/browser/chrome_net_benchmarking_message_filter.cc net::HostCache* cache = cache 99 chrome/browser/chrome_net_benchmarking_message_filter.cc if (cache) { cache 100 chrome/browser/chrome_net_benchmarking_message_filter.cc cache->clear(); cache 101 chrome/browser/chromeos/drive/drive_integration_service.cc internal::FileCache* cache, cache 135 chrome/browser/chromeos/drive/drive_integration_service.cc if (!cache->Initialize()) { cache 160 chrome/browser/chromeos/drive/drive_integration_service.cc if (!cache->RecoverFilesFromCacheDirectory(dest_directory, cache 59 chrome/browser/chromeos/drive/file_cache_unittest.cc static bool RenameCacheFilesToNewFormat(FileCache* cache) { cache 60 chrome/browser/chromeos/drive/file_cache_unittest.cc return cache->RenameCacheFilesToNewFormat(); cache 47 chrome/browser/chromeos/drive/file_system.cc internal::FileCache* cache, cache 67 chrome/browser/chromeos/drive/file_system.cc if (!cache->GetCacheEntry(local_id, &cache_entry)) cache 77 chrome/browser/chromeos/drive/file_system.cc error = cache->GetFile(local_id, &local_cache_path); cache 104 chrome/browser/chromeos/drive/file_system.cc internal::FileCache* cache, cache 120 chrome/browser/chromeos/drive/file_system.cc return cache->Pin(*local_id); cache 125 chrome/browser/chromeos/drive/file_system.cc internal::FileCache* cache, cache 132 chrome/browser/chromeos/drive/file_system.cc return cache->Unpin(*local_id); cache 138 chrome/browser/chromeos/drive/file_system.cc internal::FileCache* cache, cache 146 chrome/browser/chromeos/drive/file_system.cc return cache->MarkAsMounted(local_id, cache_file_path); cache 159 chrome/browser/chromeos/drive/file_system.cc internal::FileCache* cache, cache 166 chrome/browser/chromeos/drive/file_system.cc return cache->GetCacheEntry(id, cache_entry); cache 201 chrome/browser/chromeos/drive/file_system.cc internal::FileCache* cache) { cache 205 chrome/browser/chromeos/drive/file_system.cc return cache->ClearAll() ? FILE_ERROR_OK : FILE_ERROR_FAILED; cache 274 chrome/browser/chromeos/drive/file_system.cc internal::FileCache* cache, cache 282 chrome/browser/chromeos/drive/file_system.cc cache_(cache), cache 70 chrome/browser/chromeos/drive/file_system.h internal::FileCache* cache, cache 72 chrome/browser/chromeos/drive/file_system/copy_operation.cc internal::FileCache* cache, cache 121 chrome/browser/chromeos/drive/file_system/copy_operation.cc cache->GetCacheEntry(params->src_entry.local_id(), &cache_entry); cache 154 chrome/browser/chromeos/drive/file_system/copy_operation.cc error = cache->GetFile(params->src_entry.local_id(), &cache_file_path); cache 158 chrome/browser/chromeos/drive/file_system/copy_operation.cc return cache->Store(local_id, std::string(), cache_file_path, cache 199 chrome/browser/chromeos/drive/file_system/copy_operation.cc internal::FileCache* cache, cache 212 chrome/browser/chromeos/drive/file_system/copy_operation.cc return cache->Store(*local_id, std::string(), local_src_path, cache 279 chrome/browser/chromeos/drive/file_system/copy_operation.cc internal::FileCache* cache, cache 285 chrome/browser/chromeos/drive/file_system/copy_operation.cc cache_(cache), cache 51 chrome/browser/chromeos/drive/file_system/copy_operation.h internal::FileCache* cache, cache 30 chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc cache(), cache 70 chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc base::Unretained(cache()), cache 115 chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc base::Unretained(cache()), entry.local_id(), &cache_entry), cache 327 chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc base::Unretained(cache()), cache 360 chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc base::Unretained(cache()), cache 374 chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc base::Unretained(cache()), cache 49 chrome/browser/chromeos/drive/file_system/download_operation.cc FileError PrepareForDownloadFile(internal::FileCache* cache, cache 53 chrome/browser/chromeos/drive/file_system/download_operation.cc DCHECK(cache); cache 57 chrome/browser/chromeos/drive/file_system/download_operation.cc if (!cache->FreeDiskSpaceIfNeededFor(expected_file_size)) cache 76 chrome/browser/chromeos/drive/file_system/download_operation.cc internal::FileCache* cache, cache 83 chrome/browser/chromeos/drive/file_system/download_operation.cc DCHECK(cache); cache 122 chrome/browser/chromeos/drive/file_system/download_operation.cc if (!cache->GetCacheEntry(local_id, &cache_entry) || cache 127 chrome/browser/chromeos/drive/file_system/download_operation.cc return PrepareForDownloadFile(cache, entry->file_info().size(), cache 137 chrome/browser/chromeos/drive/file_system/download_operation.cc error = cache->Store(local_id, std::string(), empty_file, cache 142 chrome/browser/chromeos/drive/file_system/download_operation.cc if (!cache->GetCacheEntry(local_id, &cache_entry)) cache 150 chrome/browser/chromeos/drive/file_system/download_operation.cc return PrepareForDownloadFile(cache, entry->file_info().size(), cache 156 chrome/browser/chromeos/drive/file_system/download_operation.cc error = cache->GetFile(local_id, cache_file_path); cache 173 chrome/browser/chromeos/drive/file_system/download_operation.cc internal::FileCache* cache; cache 188 chrome/browser/chromeos/drive/file_system/download_operation.cc params.metadata, params.cache, params.temporary_file_directory, local_id, cache 205 chrome/browser/chromeos/drive/file_system/download_operation.cc params.metadata, params.cache, params.temporary_file_directory, local_id, cache 214 chrome/browser/chromeos/drive/file_system/download_operation.cc internal::FileCache* cache, cache 220 chrome/browser/chromeos/drive/file_system/download_operation.cc DCHECK(cache); cache 233 chrome/browser/chromeos/drive/file_system/download_operation.cc if (cache->GetCacheEntry(local_id, &cache_entry) && cache_entry.is_dirty()) cache 237 chrome/browser/chromeos/drive/file_system/download_operation.cc error = cache->Store(local_id, md5, downloaded_file_path, cache 243 chrome/browser/chromeos/drive/file_system/download_operation.cc return cache->GetFile(local_id, cache_file_path); cache 330 chrome/browser/chromeos/drive/file_system/download_operation.cc internal::FileCache* cache, cache 336 chrome/browser/chromeos/drive/file_system/download_operation.cc cache_(cache), cache 355 chrome/browser/chromeos/drive/file_system/download_operation.cc params.cache = cache_; cache 396 chrome/browser/chromeos/drive/file_system/download_operation.cc params.cache = cache_; cache 45 chrome/browser/chromeos/drive/file_system/download_operation.h internal::FileCache* cache, cache 28 chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc blocking_task_runner(), observer(), scheduler(), metadata(), cache(), cache 119 chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc base::Unretained(cache()), cache 153 chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc base::Unretained(cache()), cache 206 chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc base::Unretained(cache()), cache 368 chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc base::Unretained(cache()), cache 415 chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc base::Unretained(cache()), cache 30 chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc internal::FileCache* cache, cache 40 chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc cache, cache 46 chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc cache_(cache), cache 50 chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.h internal::FileCache* cache, cache 66 chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc cache(), temp_dir())); cache 101 chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc base::Unretained(cache()), cache 33 chrome/browser/chromeos/drive/file_system/open_file_operation.cc internal::FileCache* cache, cache 37 chrome/browser/chromeos/drive/file_system/open_file_operation.cc cache_(cache), cache 42 chrome/browser/chromeos/drive/file_system/open_file_operation.cc metadata, cache, temporary_file_directory)), cache 45 chrome/browser/chromeos/drive/file_system/open_file_operation.h internal::FileCache* cache, cache 29 chrome/browser/chromeos/drive/file_system/open_file_operation_unittest.cc blocking_task_runner(), observer(), scheduler(), metadata(), cache(), cache 172 chrome/browser/chromeos/drive/file_system/open_file_operation_unittest.cc base::Unretained(cache()), cache 123 chrome/browser/chromeos/drive/file_system/operation_test_base.h internal::FileCache* cache() { return cache_.get(); } cache 24 chrome/browser/chromeos/drive/file_system/remove_operation.cc internal::FileCache* cache, cache 48 chrome/browser/chromeos/drive/file_system/remove_operation.cc error = cache->Remove(*local_id); cache 65 chrome/browser/chromeos/drive/file_system/remove_operation.cc internal::FileCache* cache) cache 69 chrome/browser/chromeos/drive/file_system/remove_operation.cc cache_(cache), cache 40 chrome/browser/chromeos/drive/file_system/remove_operation.h internal::FileCache* cache); cache 19 chrome/browser/chromeos/drive/file_system/remove_operation_unittest.cc cache()); cache 82 chrome/browser/chromeos/drive/file_system/remove_operation_unittest.cc cache()); cache 32 chrome/browser/chromeos/drive/file_system/truncate_operation.cc internal::FileCache* cache, cache 37 chrome/browser/chromeos/drive/file_system/truncate_operation.cc DCHECK(cache); cache 40 chrome/browser/chromeos/drive/file_system/truncate_operation.cc FileError error = cache->OpenForWrite(local_id, &file_closer); cache 62 chrome/browser/chromeos/drive/file_system/truncate_operation.cc internal::FileCache* cache, cache 67 chrome/browser/chromeos/drive/file_system/truncate_operation.cc cache_(cache), cache 72 chrome/browser/chromeos/drive/file_system/truncate_operation.cc cache, cache 44 chrome/browser/chromeos/drive/file_system/truncate_operation.h internal::FileCache* cache, cache 26 chrome/browser/chromeos/drive/file_system/truncate_operation_unittest.cc metadata(), cache(), temp_dir())); cache 55 chrome/browser/chromeos/drive/file_system/truncate_operation_unittest.cc base::Unretained(cache()), cache 118 chrome/browser/chromeos/drive/file_system/truncate_operation_unittest.cc base::Unretained(cache()), cache 19 chrome/browser/chromeos/drive/remove_stale_cache_files.cc void RemoveStaleCacheFiles(FileCache* cache, cache 23 chrome/browser/chromeos/drive/remove_stale_cache_files.cc scoped_ptr<FileCache::Iterator> it = cache->GetIterator(); cache 32 chrome/browser/chromeos/drive/remove_stale_cache_files.cc FileError error = cache->Remove(it->GetID()); cache 16 chrome/browser/chromeos/drive/remove_stale_cache_files.h void RemoveStaleCacheFiles(FileCache* cache, cache 40 chrome/browser/chromeos/drive/sync/entry_update_performer.cc FileCache* cache, cache 58 chrome/browser/chromeos/drive/sync/entry_update_performer.cc cache->GetCacheEntry(local_id, &cache_entry); cache 65 chrome/browser/chromeos/drive/sync/entry_update_performer.cc error = cache->Store(local_id, std::string(), empty_file, cache 69 chrome/browser/chromeos/drive/sync/entry_update_performer.cc if (!cache->GetCacheEntry(local_id, &cache_entry)) cache 74 chrome/browser/chromeos/drive/sync/entry_update_performer.cc if (cache_entry.is_dirty() && !cache->IsOpenedForWrite(local_id)) { cache 77 chrome/browser/chromeos/drive/sync/entry_update_performer.cc error = cache->UpdateMd5(local_id); cache 80 chrome/browser/chromeos/drive/sync/entry_update_performer.cc if (!cache->GetCacheEntry(local_id, &cache_entry)) cache 85 chrome/browser/chromeos/drive/sync/entry_update_performer.cc error = cache->ClearDirty(local_id); cache 89 chrome/browser/chromeos/drive/sync/entry_update_performer.cc error = cache->GetFile(local_id, &local_state->cache_file_path); cache 114 chrome/browser/chromeos/drive/sync/entry_update_performer.cc FileCache* cache, cache 164 chrome/browser/chromeos/drive/sync/entry_update_performer.cc if (cache->GetCacheEntry(local_id, &cache_entry) && cache 166 chrome/browser/chromeos/drive/sync/entry_update_performer.cc error = cache->ClearDirty(local_id); cache 180 chrome/browser/chromeos/drive/sync/entry_update_performer.cc FileCache* cache, cache 186 chrome/browser/chromeos/drive/sync/entry_update_performer.cc cache_(cache), cache 49 chrome/browser/chromeos/drive/sync/entry_update_performer.h FileCache* cache, cache 33 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc cache(), cache 51 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc base::Unretained(cache()), cache 183 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc base::Unretained(cache()), cache 237 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc base::Unretained(cache()), cache 252 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc base::Unretained(cache()), cache 281 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc base::Unretained(cache()), cache 307 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc base::Unretained(cache()), cache 330 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc base::Unretained(cache()), cache 355 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc base::Unretained(cache()), cache 411 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc base::Unretained(cache()), cache 468 chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc base::Unretained(cache()), cache 90 chrome/browser/chromeos/drive/sync_client.cc FileCache* cache, cache 92 chrome/browser/chromeos/drive/sync_client.cc scoped_ptr<FileCache::Iterator> it = cache->GetIterator(); cache 113 chrome/browser/chromeos/drive/sync_client.cc error = cache->Remove(local_id); cache 119 chrome/browser/chromeos/drive/sync_client.cc error = cache->Pin(local_id); cache 145 chrome/browser/chromeos/drive/sync_client.cc FileCache* cache, cache 151 chrome/browser/chromeos/drive/sync_client.cc cache_(cache), cache 157 chrome/browser/chromeos/drive/sync_client.cc cache, cache 163 chrome/browser/chromeos/drive/sync_client.cc cache, cache 55 chrome/browser/chromeos/drive/sync_client.h FileCache* cache, cache 396 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc CloudExternalDataStore cache(kCacheKey, cache 400 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_TRUE(cache.Load(k10BytePolicy, cache 405 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_TRUE(cache.Load(k20BytePolicy, cache 553 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc cache(new CloudExternalDataStore(kCacheKey, cache 557 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_TRUE(cache->Store(k10BytePolicy, cache 562 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_TRUE(cache->Store(k20BytePolicy, cache 567 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_TRUE(cache->Store(kUnknownPolicy, cache 570 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc cache.reset(); cache 577 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc cache.reset(new CloudExternalDataStore(kCacheKey, cache 583 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_TRUE(cache->Load(k10BytePolicy, cache 590 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_FALSE(cache->Load(k20BytePolicy, cache 594 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_FALSE(cache->Load(kUnknownPolicy, cache 607 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc cache(new CloudExternalDataStore(kCacheKey, cache 610 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_TRUE(cache->Store(k20BytePolicy, cache 613 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc cache.reset(); cache 630 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc cache.reset(new CloudExternalDataStore(kCacheKey, cache 634 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_FALSE(cache->Load(k20BytePolicy, cache 645 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc cache(new CloudExternalDataStore(kCacheKey, cache 650 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_TRUE(cache->Store(k10BytePolicy, cache 655 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_TRUE(cache->Store(k20BytePolicy, cache 658 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc cache.reset(); cache 698 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc cache.reset(new CloudExternalDataStore(kCacheKey, cache 711 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_FALSE(cache->Load(k10BytePolicy, cache 717 chrome/browser/chromeos/policy/cloud_external_data_manager_base_unittest.cc EXPECT_TRUE(cache->Load(k20BytePolicy, cache 33 chrome/browser/chromeos/policy/cloud_external_data_store.cc ResourceCache* cache) cache 36 chrome/browser/chromeos/policy/cloud_external_data_store.cc cache_(cache) { cache 36 chrome/browser/chromeos/policy/cloud_external_data_store.h ResourceCache* cache); cache 179 chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc ProfileInfoCache* cache = manager()->profile_info_cache(); cache 181 chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc cache->GetUserDataDir().AppendASCII("p2"), managed_name, cache 380 chrome/browser/errorpage_browsertest.cc net::HttpCache* cache( cache 382 chrome/browser/errorpage_browsertest.cc DCHECK(cache); cache 384 chrome/browser/errorpage_browsertest.cc new net::FailingHttpTransactionFactory(cache->GetSession(), error)); cache 387 chrome/browser/errorpage_browsertest.cc cache->SetHttpNetworkTransactionFactoryForTesting(factory.Pass()); cache 52 chrome/browser/extensions/api/processes/processes_api.cc base::DictionaryValue* cache = new base::DictionaryValue(); cache 53 chrome/browser/extensions/api/processes/processes_api.cc cache->SetDouble(keys::kCacheSize, static_cast<double>(stat.size)); cache 54 chrome/browser/extensions/api/processes/processes_api.cc cache->SetDouble(keys::kCacheLiveSize, static_cast<double>(stat.liveSize)); cache 55 chrome/browser/extensions/api/processes/processes_api.cc return cache; cache 78 chrome/browser/extensions/updater/extension_cache.cc ExtensionCache* ExtensionCache::SetForTesting(ExtensionCache* cache) { cache 80 chrome/browser/extensions/updater/extension_cache.cc g_extension_cache_override = cache; cache 62 chrome/browser/extensions/updater/extension_cache.h static ExtensionCache* SetForTesting(ExtensionCache* cache); cache 178 chrome/browser/extensions/updater/extension_downloader.cc void ExtensionDownloader::StartAllPending(ExtensionCache* cache) { cache 179 chrome/browser/extensions/updater/extension_downloader.cc if (cache) { cache 180 chrome/browser/extensions/updater/extension_downloader.cc extension_cache_ = cache; cache 80 chrome/browser/extensions/updater/extension_downloader.h void StartAllPending(ExtensionCache* cache); cache 139 chrome/browser/extensions/updater/extension_updater.cc ExtensionCache* cache) cache 147 chrome/browser/extensions/updater/extension_updater.cc extension_cache_(cache) { cache 82 chrome/browser/extensions/updater/extension_updater.h ExtensionCache* cache); cache 122 chrome/browser/extensions/updater/local_extension_cache_unittest.cc LocalExtensionCache cache(cache_dir, cache 126 chrome/browser/extensions/updater/local_extension_cache_unittest.cc cache.SetCacheStatusPollingDelayForTests(base::TimeDelta()); cache 129 chrome/browser/extensions/updater/local_extension_cache_unittest.cc cache.Init(true, base::Bind(&SimpleCallback, &initialized)); cache 155 chrome/browser/extensions/updater/local_extension_cache_unittest.cc EXPECT_TRUE(cache.GetExtension(kTestExtensionId1, NULL, NULL)); cache 156 chrome/browser/extensions/updater/local_extension_cache_unittest.cc EXPECT_TRUE(cache.GetExtension(kTestExtensionId2, NULL, NULL)); cache 157 chrome/browser/extensions/updater/local_extension_cache_unittest.cc EXPECT_TRUE(cache.GetExtension(kTestExtensionId3, NULL, NULL)); cache 160 chrome/browser/extensions/updater/local_extension_cache_unittest.cc cache.Shutdown(base::Bind(&SimpleCallback, &did_shutdown)); cache 93 chrome/browser/history/in_memory_url_index_unittest.cc void CheckTerm(const URLIndexPrivateData::SearchTermCacheMap& cache, cache 286 chrome/browser/history/in_memory_url_index_unittest.cc const URLIndexPrivateData::SearchTermCacheMap& cache, cache 289 chrome/browser/history/in_memory_url_index_unittest.cc cache.find(term)); cache 290 chrome/browser/history/in_memory_url_index_unittest.cc ASSERT_TRUE(cache.end() != cache_iter) cache 776 chrome/browser/history/in_memory_url_index_unittest.cc URLIndexPrivateData::SearchTermCacheMap& cache( cache 780 chrome/browser/history/in_memory_url_index_unittest.cc EXPECT_EQ(0U, cache.size()); cache 788 chrome/browser/history/in_memory_url_index_unittest.cc EXPECT_EQ(0U, cache.size()); cache 794 chrome/browser/history/in_memory_url_index_unittest.cc ASSERT_EQ(1U, cache.size()); cache 795 chrome/browser/history/in_memory_url_index_unittest.cc CheckTerm(cache, ASCIIToUTF16("re")); cache 802 chrome/browser/history/in_memory_url_index_unittest.cc ASSERT_EQ(2U, cache.size()); cache 803 chrome/browser/history/in_memory_url_index_unittest.cc CheckTerm(cache, ASCIIToUTF16("re")); cache 804 chrome/browser/history/in_memory_url_index_unittest.cc CheckTerm(cache, ASCIIToUTF16("reco")); cache 810 chrome/browser/history/in_memory_url_index_unittest.cc ASSERT_EQ(1U, cache.size()); cache 811 chrome/browser/history/in_memory_url_index_unittest.cc CheckTerm(cache, ASCIIToUTF16("mort")); cache 816 chrome/browser/history/in_memory_url_index_unittest.cc ASSERT_EQ(2U, cache.size()); cache 817 chrome/browser/history/in_memory_url_index_unittest.cc CheckTerm(cache, ASCIIToUTF16("mort")); cache 818 chrome/browser/history/in_memory_url_index_unittest.cc CheckTerm(cache, ASCIIToUTF16("reco")); cache 823 chrome/browser/history/in_memory_url_index_unittest.cc ASSERT_EQ(2U, cache.size()); cache 824 chrome/browser/history/in_memory_url_index_unittest.cc CheckTerm(cache, ASCIIToUTF16("mort")); cache 825 chrome/browser/history/in_memory_url_index_unittest.cc CheckTerm(cache, ASCIIToUTF16("rec")); cache 912 chrome/browser/history/url_index_private_data.cc InMemoryURLIndexCacheItem* cache) const { cache 913 chrome/browser/history/url_index_private_data.cc DCHECK(cache); cache 914 chrome/browser/history/url_index_private_data.cc cache->set_last_rebuild_timestamp( cache 916 chrome/browser/history/url_index_private_data.cc cache->set_version(saved_cache_version_); cache 919 chrome/browser/history/url_index_private_data.cc cache->set_history_item_count(0); cache 920 chrome/browser/history/url_index_private_data.cc SaveWordList(cache); cache 921 chrome/browser/history/url_index_private_data.cc SaveWordMap(cache); cache 922 chrome/browser/history/url_index_private_data.cc SaveCharWordMap(cache); cache 923 chrome/browser/history/url_index_private_data.cc SaveWordIDHistoryMap(cache); cache 924 chrome/browser/history/url_index_private_data.cc SaveHistoryInfoMap(cache); cache 925 chrome/browser/history/url_index_private_data.cc SaveWordStartsMap(cache); cache 928 chrome/browser/history/url_index_private_data.cc void URLIndexPrivateData::SaveWordList(InMemoryURLIndexCacheItem* cache) const { cache 931 chrome/browser/history/url_index_private_data.cc WordListItem* list_item = cache->mutable_word_list(); cache 938 chrome/browser/history/url_index_private_data.cc void URLIndexPrivateData::SaveWordMap(InMemoryURLIndexCacheItem* cache) const { cache 941 chrome/browser/history/url_index_private_data.cc WordMapItem* map_item = cache->mutable_word_map(); cache 952 chrome/browser/history/url_index_private_data.cc InMemoryURLIndexCacheItem* cache) const { cache 955 chrome/browser/history/url_index_private_data.cc CharWordMapItem* map_item = cache->mutable_char_word_map(); cache 970 chrome/browser/history/url_index_private_data.cc InMemoryURLIndexCacheItem* cache) const { cache 973 chrome/browser/history/url_index_private_data.cc WordIDHistoryMapItem* map_item = cache->mutable_word_id_history_map(); cache 989 chrome/browser/history/url_index_private_data.cc InMemoryURLIndexCacheItem* cache) const { cache 992 chrome/browser/history/url_index_private_data.cc HistoryInfoMapItem* map_item = cache->mutable_history_info_map(); cache 1017 chrome/browser/history/url_index_private_data.cc InMemoryURLIndexCacheItem* cache) const { cache 1028 chrome/browser/history/url_index_private_data.cc WordStartsMapItem* map_item = cache->mutable_word_starts_map(); cache 1045 chrome/browser/history/url_index_private_data.cc const InMemoryURLIndexCacheItem& cache, cache 1048 chrome/browser/history/url_index_private_data.cc base::Time::FromInternalValue(cache.last_rebuild_timestamp()); cache 1060 chrome/browser/history/url_index_private_data.cc if (cache.has_version()) { cache 1061 chrome/browser/history/url_index_private_data.cc if (cache.version() < kCurrentCacheFileVersion) { cache 1067 chrome/browser/history/url_index_private_data.cc restored_cache_version_ = cache.version(); cache 1069 chrome/browser/history/url_index_private_data.cc return RestoreWordList(cache) && RestoreWordMap(cache) && cache 1070 chrome/browser/history/url_index_private_data.cc RestoreCharWordMap(cache) && RestoreWordIDHistoryMap(cache) && cache 1071 chrome/browser/history/url_index_private_data.cc RestoreHistoryInfoMap(cache) && RestoreWordStartsMap(cache, languages); cache 1075 chrome/browser/history/url_index_private_data.cc const InMemoryURLIndexCacheItem& cache) { cache 1076 chrome/browser/history/url_index_private_data.cc if (!cache.has_word_list()) cache 1078 chrome/browser/history/url_index_private_data.cc const WordListItem& list_item(cache.word_list()); cache 1091 chrome/browser/history/url_index_private_data.cc const InMemoryURLIndexCacheItem& cache) { cache 1092 chrome/browser/history/url_index_private_data.cc if (!cache.has_word_map()) cache 1094 chrome/browser/history/url_index_private_data.cc const WordMapItem& list_item(cache.word_map()); cache 1107 chrome/browser/history/url_index_private_data.cc const InMemoryURLIndexCacheItem& cache) { cache 1108 chrome/browser/history/url_index_private_data.cc if (!cache.has_char_word_map()) cache 1110 chrome/browser/history/url_index_private_data.cc const CharWordMapItem& list_item(cache.char_word_map()); cache 1135 chrome/browser/history/url_index_private_data.cc const InMemoryURLIndexCacheItem& cache) { cache 1136 chrome/browser/history/url_index_private_data.cc if (!cache.has_word_id_history_map()) cache 1138 chrome/browser/history/url_index_private_data.cc const WordIDHistoryMapItem& list_item(cache.word_id_history_map()); cache 1165 chrome/browser/history/url_index_private_data.cc const InMemoryURLIndexCacheItem& cache) { cache 1166 chrome/browser/history/url_index_private_data.cc if (!cache.has_history_info_map()) cache 1168 chrome/browser/history/url_index_private_data.cc const HistoryInfoMapItem& list_item(cache.history_info_map()); cache 1204 chrome/browser/history/url_index_private_data.cc const InMemoryURLIndexCacheItem& cache, cache 1209 chrome/browser/history/url_index_private_data.cc if (cache.has_word_starts_map()) { cache 1210 chrome/browser/history/url_index_private_data.cc const WordStartsMapItem& list_item(cache.word_starts_map()); cache 302 chrome/browser/history/url_index_private_data.h void SavePrivateData(imui::InMemoryURLIndexCacheItem* cache) const; cache 303 chrome/browser/history/url_index_private_data.h void SaveWordList(imui::InMemoryURLIndexCacheItem* cache) const; cache 304 chrome/browser/history/url_index_private_data.h void SaveWordMap(imui::InMemoryURLIndexCacheItem* cache) const; cache 305 chrome/browser/history/url_index_private_data.h void SaveCharWordMap(imui::InMemoryURLIndexCacheItem* cache) const; cache 306 chrome/browser/history/url_index_private_data.h void SaveWordIDHistoryMap(imui::InMemoryURLIndexCacheItem* cache) const; cache 307 chrome/browser/history/url_index_private_data.h void SaveHistoryInfoMap(imui::InMemoryURLIndexCacheItem* cache) const; cache 308 chrome/browser/history/url_index_private_data.h void SaveWordStartsMap(imui::InMemoryURLIndexCacheItem* cache) const; cache 313 chrome/browser/history/url_index_private_data.h bool RestorePrivateData(const imui::InMemoryURLIndexCacheItem& cache, cache 315 chrome/browser/history/url_index_private_data.h bool RestoreWordList(const imui::InMemoryURLIndexCacheItem& cache); cache 316 chrome/browser/history/url_index_private_data.h bool RestoreWordMap(const imui::InMemoryURLIndexCacheItem& cache); cache 317 chrome/browser/history/url_index_private_data.h bool RestoreCharWordMap(const imui::InMemoryURLIndexCacheItem& cache); cache 318 chrome/browser/history/url_index_private_data.h bool RestoreWordIDHistoryMap(const imui::InMemoryURLIndexCacheItem& cache); cache 319 chrome/browser/history/url_index_private_data.h bool RestoreHistoryInfoMap(const imui::InMemoryURLIndexCacheItem& cache); cache 320 chrome/browser/history/url_index_private_data.h bool RestoreWordStartsMap(const imui::InMemoryURLIndexCacheItem& cache, cache 658 chrome/browser/managed_mode/managed_user_service.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 659 chrome/browser/managed_mode/managed_user_service.cc size_t index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); cache 660 chrome/browser/managed_mode/managed_user_service.cc cache.SetIsOmittedProfileAtIndex(index, false); cache 53 chrome/browser/managed_mode/managed_user_service_browsertest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 55 chrome/browser/managed_mode/managed_user_service_browsertest.cc size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 56 chrome/browser/managed_mode/managed_user_service_browsertest.cc cache.SetIsOmittedProfileAtIndex(index, true); cache 57 chrome/browser/managed_mode/managed_user_service_browsertest.cc ASSERT_TRUE(cache.IsOmittedProfileAtIndex(index)); cache 69 chrome/browser/managed_mode/managed_user_service_browsertest.cc ASSERT_TRUE(cache.IsOmittedProfileAtIndex(index)); cache 77 chrome/browser/managed_mode/managed_user_service_browsertest.cc EXPECT_FALSE(cache.IsOmittedProfileAtIndex(index)); cache 94 chrome/browser/managed_mode/managed_user_service_browsertest.cc const ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 95 chrome/browser/managed_mode/managed_user_service_browsertest.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 97 chrome/browser/managed_mode/managed_user_service_browsertest.cc base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); cache 112 chrome/browser/managed_mode/managed_user_service_browsertest.cc const ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 123 chrome/browser/managed_mode/managed_user_service_browsertest.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 125 chrome/browser/managed_mode/managed_user_service_browsertest.cc base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); cache 133 chrome/browser/managed_mode/managed_user_service_browsertest.cc profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 135 chrome/browser/managed_mode/managed_user_service_browsertest.cc base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); cache 141 chrome/browser/managed_mode/managed_user_service_browsertest.cc profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 143 chrome/browser/managed_mode/managed_user_service_browsertest.cc base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); cache 15 chrome/browser/net/connect_interceptor_unittest.cc ConnectInterceptor::TimedCache cache(base::TimeDelta::FromHours(1)); cache 19 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(url)); cache 20 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(ssl_url)); cache 22 chrome/browser/net/connect_interceptor_unittest.cc cache.SetRecentlySeen(url); cache 24 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_TRUE(cache.WasRecentlySeen(url)); cache 25 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(ssl_url)); cache 27 chrome/browser/net/connect_interceptor_unittest.cc cache.SetRecentlySeen(ssl_url); cache 29 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_TRUE(cache.WasRecentlySeen(url)); cache 30 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_TRUE(cache.WasRecentlySeen(ssl_url)); cache 35 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_TRUE(cache.WasRecentlySeen(url_with_port)); cache 36 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_TRUE(cache.WasRecentlySeen(ssl_url_with_port)); cache 47 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(ssl_url_wrong_host)); cache 48 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(ssl_url_wrong_path)); cache 49 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(ssl_url_wrong_port)); cache 51 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(url_wrong_scheme)); cache 53 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(url_wrong_host)); cache 54 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(url_wrong_path)); cache 55 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(url_wrong_port)); cache 60 chrome/browser/net/connect_interceptor_unittest.cc ConnectInterceptor::TimedCache cache(base::TimeDelta::FromMilliseconds(1)); cache 63 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(url)); cache 65 chrome/browser/net/connect_interceptor_unittest.cc cache.SetRecentlySeen(url); cache 70 chrome/browser/net/connect_interceptor_unittest.cc EXPECT_FALSE(cache.WasRecentlySeen(url)); cache 285 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc net::HttpAuthCache cache; cache 286 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc DataReductionProxySettings::InitDataReductionAuthentication(&cache); cache 291 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc net::HttpAuthCache::Entry* entry = cache.LookupByPath(*it, cache 299 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc cache.LookupByPath(bad_server, std::string()); cache 59 chrome/browser/prefs/pref_hash_browsertest.cc const ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 63 chrome/browser/prefs/pref_hash_browsertest.cc for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) cache 64 chrome/browser/prefs/pref_hash_browsertest.cc profile_paths.insert(cache.GetPathOfProfileAtIndex(i)); cache 16 chrome/browser/profiles/avatar_menu_desktop.cc ProfileInfoCache& cache = cache 18 chrome/browser/profiles/avatar_menu_desktop.cc size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 24 chrome/browser/profiles/avatar_menu_desktop.cc *image = cache.GetAvatarIconOfProfileAtIndex(index); cache 26 chrome/browser/profiles/avatar_menu_desktop.cc cache.IsUsingGAIAPictureOfProfileAtIndex(index) && cache 27 chrome/browser/profiles/avatar_menu_desktop.cc cache.GetGAIAPictureOfProfileAtIndex(index); cache 114 chrome/browser/profiles/gaia_info_update_service.cc ProfileInfoCache& cache = cache 116 chrome/browser/profiles/gaia_info_update_service.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); cache 120 chrome/browser/profiles/gaia_info_update_service.cc cache.SetGAIANameOfProfileAtIndex(profile_index, full_name); cache 121 chrome/browser/profiles/gaia_info_update_service.cc cache.SetGAIAGivenNameOfProfileAtIndex(profile_index, given_name); cache 124 chrome/browser/profiles/gaia_info_update_service.cc profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); cache 131 chrome/browser/profiles/gaia_info_update_service.cc cache.SetGAIAPictureOfProfileAtIndex(profile_index, &gfx_image); cache 133 chrome/browser/profiles/gaia_info_update_service.cc cache.SetGAIAPictureOfProfileAtIndex(profile_index, NULL); cache 140 chrome/browser/profiles/gaia_info_update_service.cc profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); cache 141 chrome/browser/profiles/gaia_info_update_service.cc cache.SetIsUsingGAIAPictureOfProfileAtIndex(profile_index, true); cache 157 chrome/browser/profiles/gaia_info_update_service.cc ProfileInfoCache& cache = cache 159 chrome/browser/profiles/gaia_info_update_service.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); cache 165 chrome/browser/profiles/gaia_info_update_service.cc cache.SetGAIANameOfProfileAtIndex(profile_index, base::string16()); cache 167 chrome/browser/profiles/gaia_info_update_service.cc profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); cache 170 chrome/browser/profiles/gaia_info_update_service.cc cache.SetGAIAPictureOfProfileAtIndex(profile_index, NULL); cache 224 chrome/browser/profiles/off_the_record_profile_io_data.cc net::HttpCache* cache = new net::HttpCache( cache 227 chrome/browser/profiles/off_the_record_profile_io_data.cc main_http_factory_.reset(cache); cache 228 chrome/browser/profiles/off_the_record_profile_io_data.cc main_context->set_http_transaction_factory(cache); cache 1244 chrome/browser/profiles/profile_impl.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 1245 chrome/browser/profiles/profile_impl.cc size_t index = cache.GetIndexOfProfileWithPath(GetPath()); cache 1249 chrome/browser/profiles/profile_impl.cc cache.SetUserNameOfProfileAtIndex(index, base::UTF8ToUTF16(user_name)); cache 1256 chrome/browser/profiles/profile_impl.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 1257 chrome/browser/profiles/profile_impl.cc size_t index = cache.GetIndexOfProfileWithPath(GetPath()); cache 1261 chrome/browser/profiles/profile_impl.cc cache.SetNameOfProfileAtIndex(index, base::UTF8ToUTF16(profile_name)); cache 1267 chrome/browser/profiles/profile_impl.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 1268 chrome/browser/profiles/profile_impl.cc size_t index = cache.GetIndexOfProfileWithPath(GetPath()); cache 1272 chrome/browser/profiles/profile_impl.cc cache.SetAvatarIconOfProfileAtIndex(index, avatar_index); cache 1278 chrome/browser/profiles/profile_impl.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 1279 chrome/browser/profiles/profile_impl.cc size_t index = cache.GetIndexOfProfileWithPath(GetPath()); cache 1282 chrome/browser/profiles/profile_impl.cc cache.SetProfileIsEphemeralAtIndex(index, is_ephemeral); cache 243 chrome/browser/profiles/profile_info_cache.cc base::DictionaryValue* cache = update.Get(); cache 244 chrome/browser/profiles/profile_info_cache.cc for (base::DictionaryValue::Iterator it(*cache); cache 247 chrome/browser/profiles/profile_info_cache.cc cache->GetDictionaryWithoutPathExpansion(it.key(), &info); cache 274 chrome/browser/profiles/profile_info_cache.cc base::DictionaryValue* cache = update.Get(); cache 286 chrome/browser/profiles/profile_info_cache.cc cache->SetWithoutPathExpansion(key, info.release()); cache 322 chrome/browser/profiles/profile_info_cache.cc base::DictionaryValue* cache = update.Get(); cache 324 chrome/browser/profiles/profile_info_cache.cc cache->Remove(key, NULL); cache 975 chrome/browser/profiles/profile_info_cache.cc const base::DictionaryValue* cache = cache 978 chrome/browser/profiles/profile_info_cache.cc cache->GetDictionaryWithoutPathExpansion(sorted_keys_[index], &info); cache 985 chrome/browser/profiles/profile_info_cache.cc base::DictionaryValue* cache = update.Get(); cache 986 chrome/browser/profiles/profile_info_cache.cc cache->SetWithoutPathExpansion(sorted_keys_[index], info); cache 1046 chrome/browser/profiles/profile_info_cache.cc const base::DictionaryValue* cache = local_state->GetDictionary( cache 1049 chrome/browser/profiles/profile_info_cache.cc for (base::DictionaryValue::Iterator it(*cache); !it.IsAtEnd(); cache 37 chrome/browser/profiles/profile_list_desktop_browsertest.cc AvatarMenu* GetAvatarMenu(ProfileInfoCache* cache) { cache 40 chrome/browser/profiles/profile_list_desktop_browsertest.cc cache, cache 64 chrome/browser/profiles/profile_list_desktop_browsertest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 65 chrome/browser/profiles/profile_list_desktop_browsertest.cc size_t index = cache.GetIndexOfProfileWithPath(current_profile->GetPath()); cache 67 chrome/browser/profiles/profile_list_desktop_browsertest.cc AvatarMenu* menu = GetAvatarMenu(&cache); cache 77 chrome/browser/profiles/profile_list_desktop_browsertest.cc EXPECT_FALSE(cache.ProfileIsSigninRequiredAtIndex(index)); cache 81 chrome/browser/profiles/profile_list_desktop_browsertest.cc EXPECT_TRUE(cache.ProfileIsSigninRequiredAtIndex(index)); cache 100 chrome/browser/profiles/profile_list_desktop_browsertest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 102 chrome/browser/profiles/profile_list_desktop_browsertest.cc base::FilePath user_dir = cache.GetUserDataDir(); cache 115 chrome/browser/profiles/profile_list_desktop_browsertest.cc ASSERT_EQ(cache.GetNumberOfProfiles(), 2U); cache 117 chrome/browser/profiles/profile_list_desktop_browsertest.cc AvatarMenu* menu = GetAvatarMenu(&cache); cache 125 chrome/browser/profiles/profile_list_desktop_browsertest.cc menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile1), cache 131 chrome/browser/profiles/profile_list_desktop_browsertest.cc menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile2), cache 136 chrome/browser/profiles/profile_list_desktop_browsertest.cc menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile1), cache 77 chrome/browser/profiles/profile_list_desktop_unittest.cc ProfileInfoCache* cache = manager()->profile_info_cache(); cache 78 chrome/browser/profiles/profile_list_desktop_unittest.cc cache->AddProfileToCache( cache 79 chrome/browser/profiles/profile_list_desktop_unittest.cc cache->GetUserDataDir().AppendASCII(name), ASCIIToUTF16(name), cache 324 chrome/browser/profiles/profile_list_desktop_unittest.cc ProfileInfoCache* cache = manager()->profile_info_cache(); cache 325 chrome/browser/profiles/profile_list_desktop_unittest.cc base::FilePath path = cache->GetUserDataDir().AppendASCII("p2"); cache 326 chrome/browser/profiles/profile_list_desktop_unittest.cc cache->AddProfileToCache(path, ASCIIToUTF16("Test 2"), base::string16(), 0, cache 328 chrome/browser/profiles/profile_list_desktop_unittest.cc cache->SetIsOmittedProfileAtIndex(cache->GetIndexOfProfileWithPath(path), cache 389 chrome/browser/profiles/profile_manager.cc ProfileInfoCache& cache = GetProfileInfoCache(); cache 393 chrome/browser/profiles/profile_manager.cc if (cache.IsDefaultAvatarIconUrl(icon_url_std, &icon_index)) { cache 395 chrome/browser/profiles/profile_manager.cc cache.AddProfileToCache(profile_path, name, base::string16(), icon_index, cache 636 chrome/browser/profiles/profile_manager.cc ProfileInfoCache& cache = GetProfileInfoCache(); cache 643 chrome/browser/profiles/profile_manager.cc for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { cache 644 chrome/browser/profiles/profile_manager.cc base::FilePath cur_path = cache.GetPathOfProfileAtIndex(i); cache 646 chrome/browser/profiles/profile_manager.cc if (cur_path != profile_dir && !cache.ProfileIsManagedAtIndex(i) && cache 713 chrome/browser/profiles/profile_manager.cc ProfileInfoCache& cache = GetProfileInfoCache(); cache 714 chrome/browser/profiles/profile_manager.cc size_t number_of_profiles = cache.GetNumberOfProfiles(); cache 716 chrome/browser/profiles/profile_manager.cc if (cache.GetBackgroundStatusOfProfileAtIndex(p)) { cache 720 chrome/browser/profiles/profile_manager.cc GetProfile(cache.GetPathOfProfileAtIndex(p)); cache 726 chrome/browser/profiles/profile_manager.cc ProfileInfoCache& cache = GetProfileInfoCache(); cache 728 chrome/browser/profiles/profile_manager.cc if (profile->GetPath().DirName() != cache.GetUserDataDir()) cache 739 chrome/browser/profiles/profile_manager.cc cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 743 chrome/browser/profiles/profile_manager.cc cache.GetAvatarIconIndexOfProfileAtIndex(profile_cache_index); cache 745 chrome/browser/profiles/profile_manager.cc base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_cache_index)); cache 747 chrome/browser/profiles/profile_manager.cc cache.GetManagedUserIdOfProfileAtIndex(profile_cache_index); cache 749 chrome/browser/profiles/profile_manager.cc profiles::GetDefaultProfileDir(cache.GetUserDataDir())) { cache 753 chrome/browser/profiles/profile_manager.cc base::UTF16ToUTF8(cache.ChooseNameForNewProfile(avatar_index)) : cache 756 chrome/browser/profiles/profile_manager.cc avatar_index = cache.ChooseAvatarIconIndexForNewProfile(); cache 758 chrome/browser/profiles/profile_manager.cc base::UTF16ToUTF8(cache.ChooseNameForNewProfile(avatar_index)); cache 1068 chrome/browser/profiles/profile_manager.cc ProfileInfoCache& cache = GetProfileInfoCache(); cache 1085 chrome/browser/profiles/profile_manager.cc cache.DeleteProfileFromCache(profile_dir); cache 1107 chrome/browser/profiles/profile_manager.cc ProfileInfoCache& cache = GetProfileInfoCache(); cache 1108 chrome/browser/profiles/profile_manager.cc if (profile->GetPath().DirName() != cache.GetUserDataDir()) cache 1111 chrome/browser/profiles/profile_manager.cc if (cache.GetIndexOfProfileWithPath(profile->GetPath()) != std::string::npos) cache 1128 chrome/browser/profiles/profile_manager.cc cache.AddProfileToCache(profile->GetPath(), cache 1135 chrome/browser/profiles/profile_manager.cc cache.SetProfileIsEphemeralAtIndex( cache 1136 chrome/browser/profiles/profile_manager.cc cache.GetIndexOfProfileWithPath(profile->GetPath()), true); cache 1238 chrome/browser/profiles/profile_manager.cc ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); cache 1240 chrome/browser/profiles/profile_manager.cc cache.GetIndexOfProfileWithPath(last_active->GetPath()); cache 1242 chrome/browser/profiles/profile_manager.cc cache.SetProfileActiveTimeAtIndex(profile_index); cache 104 chrome/browser/profiles/profile_manager_browsertest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 108 chrome/browser/profiles/profile_manager_browsertest.cc ASSERT_EQ(cache.GetNumberOfProfiles(), 1U); cache 111 chrome/browser/profiles/profile_manager_browsertest.cc base::FilePath singleton_profile_path = cache.GetPathOfProfileAtIndex(0); cache 120 chrome/browser/profiles/profile_manager_browsertest.cc EXPECT_EQ(cache.GetNumberOfProfiles(), 1U); cache 121 chrome/browser/profiles/profile_manager_browsertest.cc base::FilePath new_profile_path = cache.GetPathOfProfileAtIndex(0); cache 140 chrome/browser/profiles/profile_manager_browsertest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 153 chrome/browser/profiles/profile_manager_browsertest.cc ASSERT_EQ(cache.GetNumberOfProfiles(), 2U); cache 156 chrome/browser/profiles/profile_manager_browsertest.cc base::FilePath profile_path1 = cache.GetPathOfProfileAtIndex(0); cache 157 chrome/browser/profiles/profile_manager_browsertest.cc base::FilePath profile_path2 = cache.GetPathOfProfileAtIndex(1); cache 169 chrome/browser/profiles/profile_manager_browsertest.cc EXPECT_EQ(cache.GetNumberOfProfiles(), 1U); cache 170 chrome/browser/profiles/profile_manager_browsertest.cc base::FilePath new_profile_path = cache.GetPathOfProfileAtIndex(0); cache 261 chrome/browser/profiles/profile_manager_browsertest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 262 chrome/browser/profiles/profile_manager_browsertest.cc base::FilePath path_profile1 = cache.GetPathOfProfileAtIndex(0); cache 281 chrome/browser/profiles/profile_manager_browsertest.cc ASSERT_EQ(cache.GetNumberOfProfiles(), 2U); cache 325 chrome/browser/profiles/profile_manager_browsertest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 326 chrome/browser/profiles/profile_manager_browsertest.cc base::FilePath path_profile1 = cache.GetPathOfProfileAtIndex(0); cache 344 chrome/browser/profiles/profile_manager_browsertest.cc ASSERT_EQ(2U, cache.GetNumberOfProfiles()); cache 370 chrome/browser/profiles/profile_manager_browsertest.cc ASSERT_EQ(2U, cache.GetNumberOfProfiles()); cache 376 chrome/browser/profiles/profile_manager_browsertest.cc ASSERT_EQ(1U, cache.GetNumberOfProfiles()); cache 137 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 138 chrome/browser/profiles/profile_manager_unittest.cc size_t num_profiles = cache.GetNumberOfProfiles(); cache 140 chrome/browser/profiles/profile_manager_unittest.cc cache.AddProfileToCache(path, profile_name, cache 142 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(num_profiles + 1, cache.GetNumberOfProfiles()); cache 310 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 311 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(0u, cache.GetNumberOfProfiles()); cache 316 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(1u, cache.GetNumberOfProfiles()); cache 318 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_TRUE(cache.IsOmittedProfileAtIndex(0)); cache 324 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(2u, cache.GetNumberOfProfiles()); cache 326 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_FALSE(cache.IsOmittedProfileAtIndex(1)); cache 331 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 332 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(0u, cache.GetNumberOfProfiles()); cache 340 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(1u, cache.GetNumberOfProfiles()); cache 341 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_TRUE(cache.IsOmittedProfileAtIndex(0)); cache 349 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(2u, cache.GetNumberOfProfiles()); cache 350 chrome/browser/profiles/profile_manager_unittest.cc size_t managed_index = cache.GetIndexOfProfileWithPath(managed_path); cache 351 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_TRUE(cache.IsOmittedProfileAtIndex(managed_index)); cache 352 chrome/browser/profiles/profile_manager_unittest.cc size_t nonmanaged_index = cache.GetIndexOfProfileWithPath(nonmanaged_path); cache 353 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_FALSE(cache.IsOmittedProfileAtIndex(nonmanaged_index)); cache 444 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 455 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(0u, cache.GetNumberOfProfiles()); cache 456 chrome/browser/profiles/profile_manager_unittest.cc cache.AddProfileToCache(cache.GetUserDataDir().AppendASCII("path_1"), cache 459 chrome/browser/profiles/profile_manager_unittest.cc cache.AddProfileToCache(cache.GetUserDataDir().AppendASCII("path_2"), cache 462 chrome/browser/profiles/profile_manager_unittest.cc cache.AddProfileToCache(cache.GetUserDataDir().AppendASCII("path_3"), cache 465 chrome/browser/profiles/profile_manager_unittest.cc cache.SetBackgroundStatusOfProfileAtIndex(0, true); cache 466 chrome/browser/profiles/profile_manager_unittest.cc cache.SetBackgroundStatusOfProfileAtIndex(2, true); cache 467 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(3u, cache.GetNumberOfProfiles()); cache 476 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 480 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(0u, cache.GetNumberOfProfiles()); cache 481 chrome/browser/profiles/profile_manager_unittest.cc cache.AddProfileToCache(cache.GetUserDataDir().AppendASCII("path_1"), cache 484 chrome/browser/profiles/profile_manager_unittest.cc cache.AddProfileToCache(cache.GetUserDataDir().AppendASCII("path_2"), cache 487 chrome/browser/profiles/profile_manager_unittest.cc cache.SetBackgroundStatusOfProfileAtIndex(0, false); cache 488 chrome/browser/profiles/profile_manager_unittest.cc cache.SetBackgroundStatusOfProfileAtIndex(1, true); cache 489 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(2u, cache.GetNumberOfProfiles()); cache 527 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 538 chrome/browser/profiles/profile_manager_unittest.cc size_t profile_index = cache.GetIndexOfProfileWithPath(dest_path); cache 542 chrome/browser/profiles/profile_manager_unittest.cc base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); cache 544 chrome/browser/profiles/profile_manager_unittest.cc cache.GetAvatarIconIndexOfProfileAtIndex(profile_index)); cache 901 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 902 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(0u, cache.GetNumberOfProfiles()); cache 907 chrome/browser/profiles/profile_manager_unittest.cc const base::string16 profile_name1 = cache.ChooseNameForNewProfile(0); cache 913 chrome/browser/profiles/profile_manager_unittest.cc const base::string16 profile_name2 = cache.ChooseNameForNewProfile(1); cache 936 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 937 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(0u, cache.GetNumberOfProfiles()); cache 942 chrome/browser/profiles/profile_manager_unittest.cc const base::string16 profile_name1 = cache.ChooseNameForNewProfile(0); cache 949 chrome/browser/profiles/profile_manager_unittest.cc cache.SetNameOfProfileAtIndex(0, custom_profile_name); cache 950 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(custom_profile_name, cache.GetNameOfProfileAtIndex(0)); cache 954 chrome/browser/profiles/profile_manager_unittest.cc const base::string16 profile_name2 = cache.ChooseNameForNewProfile(1); cache 977 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 978 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(0u, cache.GetNumberOfProfiles()); cache 983 chrome/browser/profiles/profile_manager_unittest.cc const base::string16 profile_name1 = cache.ChooseNameForNewProfile(0); cache 989 chrome/browser/profiles/profile_manager_unittest.cc cache.SetUserNameOfProfileAtIndex(0, ASCIIToUTF16("user@gmail.com")); cache 990 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(profile_name1, cache.GetNameOfProfileAtIndex(0)); cache 994 chrome/browser/profiles/profile_manager_unittest.cc const base::string16 profile_name2 = cache.ChooseNameForNewProfile(1); cache 1029 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 1030 chrome/browser/profiles/profile_manager_unittest.cc cache.AddProfileToCache(dest_path2, ASCIIToUTF16(profile_name2), cache 1035 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(2u, cache.GetNumberOfProfiles()); cache 1079 chrome/browser/profiles/profile_manager_unittest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 1080 chrome/browser/profiles/profile_manager_unittest.cc cache.AddProfileToCache(dest_path2, ASCIIToUTF16(profile_name2), cache 1082 chrome/browser/profiles/profile_manager_unittest.cc cache.AddProfileToCache(dest_path3, ASCIIToUTF16(profile_name3), cache 1088 chrome/browser/profiles/profile_manager_unittest.cc EXPECT_EQ(3u, cache.GetNumberOfProfiles()); cache 720 chrome/browser/profiles/profile_shortcut_manager_win.cc const ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); cache 721 chrome/browser/profiles/profile_shortcut_manager_win.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile_path); cache 722 chrome/browser/profiles/profile_shortcut_manager_win.cc DCHECK_LT(profile_index, cache.GetNumberOfProfiles()); cache 726 chrome/browser/profiles/profile_shortcut_manager_win.cc if (cache.GetNumberOfProfiles() > 1) cache 727 chrome/browser/profiles/profile_shortcut_manager_win.cc shortcut_profile_name = cache.GetNameOfProfileAtIndex(profile_index); cache 754 chrome/browser/profiles/profile_shortcut_manager_win.cc const ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); cache 757 chrome/browser/profiles/profile_shortcut_manager_win.cc const bool deleting_down_to_last_profile = (cache.GetNumberOfProfiles() == 1); cache 760 chrome/browser/profiles/profile_shortcut_manager_win.cc CreateOrUpdateShortcutsForProfileAtPath(cache.GetPathOfProfileAtIndex(0), cache 785 chrome/browser/profiles/profile_shortcut_manager_win.cc const ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); cache 786 chrome/browser/profiles/profile_shortcut_manager_win.cc DCHECK_EQ(2U, cache.GetNumberOfProfiles()); cache 789 chrome/browser/profiles/profile_shortcut_manager_win.cc size_t current_profile_index = cache.GetIndexOfProfileWithPath(profile_path); cache 791 chrome/browser/profiles/profile_shortcut_manager_win.cc return cache.GetPathOfProfileAtIndex(other_profile_index); cache 802 chrome/browser/profiles/profile_shortcut_manager_win.cc ProfileInfoCache* cache = &profile_manager_->GetProfileInfoCache(); cache 803 chrome/browser/profiles/profile_shortcut_manager_win.cc size_t profile_index = cache->GetIndexOfProfileWithPath(profile_path); cache 806 chrome/browser/profiles/profile_shortcut_manager_win.cc bool remove_badging = cache->GetNumberOfProfiles() == 1; cache 809 chrome/browser/profiles/profile_shortcut_manager_win.cc cache->GetShortcutNameOfProfileAtIndex(profile_index); cache 821 chrome/browser/profiles/profile_shortcut_manager_win.cc params.profile_name = cache->GetNameOfProfileAtIndex(profile_index); cache 824 chrome/browser/profiles/profile_shortcut_manager_win.cc cache->GetAvatarIconIndexOfProfileAtIndex(profile_index); cache 826 chrome/browser/profiles/profile_shortcut_manager_win.cc cache->GetDefaultAvatarIconResourceIDAtIndex(icon_index); cache 837 chrome/browser/profiles/profile_shortcut_manager_win.cc cache->SetShortcutNameOfProfileAtIndex(profile_index, cache 143 chrome/browser/profiles/profile_window.cc const ProfileInfoCache& cache = cache 145 chrome/browser/profiles/profile_window.cc size_t index = cache.GetIndexOfProfileWithPath(profile_path_to_focus); cache 247 chrome/browser/profiles/profile_window.cc ProfileInfoCache& cache = cache 250 chrome/browser/profiles/profile_window.cc size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 251 chrome/browser/profiles/profile_window.cc cache.SetProfileSigninRequiredAtIndex(index, true); cache 59 chrome/browser/profiles/profiles_state.cc ProfileInfoCache& cache = cache 61 chrome/browser/profiles/profiles_state.cc size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 72 chrome/browser/profiles/profiles_state.cc base::string16 profile_name = cache.GetNameOfProfileAtIndex(index); cache 73 chrome/browser/profiles/profiles_state.cc bool has_default_name = cache.ProfileIsUsingDefaultNameAtIndex(index); cache 75 chrome/browser/profiles/profiles_state.cc if (cache.GetNumberOfProfiles() == 1 && has_default_name && cache 76 chrome/browser/profiles/profiles_state.cc cache.GetUserNameOfProfileAtIndex(index).empty()) { cache 153 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc ClientSideDetectionService::PhishingCache& cache = csd_service_->cache_; cache 159 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc cache[GURL("http://first.url.com/")] = cache 167 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc cache[GURL("http://second.url.com/")] = cache 175 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc cache[GURL("http://third.url.com/")] = cache 182 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc cache[GURL("http://fourth.url.com/")] = cache 188 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc EXPECT_EQ(3U, cache.size()); cache 189 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc EXPECT_TRUE(cache.find(GURL("http://first.url.com/")) != cache.end()); cache 190 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc EXPECT_TRUE(cache.find(GURL("http://third.url.com/")) != cache.end()); cache 191 chrome/browser/safe_browsing/client_side_detection_service_unittest.cc EXPECT_TRUE(cache.find(GURL("http://fourth.url.com/")) != cache.end()); cache 96 chrome/browser/safe_browsing/malware_details_unittest.cc void WriteToEntry(disk_cache::Backend* cache, const std::string& key, cache 100 chrome/browser/safe_browsing/malware_details_unittest.cc int rv = cache->CreateEntry(key, &entry, cb.callback()); cache 103 chrome/browser/safe_browsing/malware_details_unittest.cc rv = cache->OpenEntry(key, &entry, cb.callback()); cache 114 chrome/browser/safe_browsing/malware_details_unittest.cc disk_cache::Backend* cache; cache 117 chrome/browser/safe_browsing/malware_details_unittest.cc GetCache()->GetBackend(&cache, cb.callback()); cache 120 chrome/browser/safe_browsing/malware_details_unittest.cc WriteToEntry(cache, kMalwareURL, kMalwareHeaders, kMalwareData); cache 121 chrome/browser/safe_browsing/malware_details_unittest.cc WriteToEntry(cache, kLandingURL, kLandingHeaders, kLandingData); cache 26 chrome/browser/signin/local_auth_unittest.cc ProfileInfoCache& cache = cache 28 chrome/browser/signin/local_auth_unittest.cc EXPECT_EQ(1U, cache.GetNumberOfProfiles()); cache 29 chrome/browser/signin/local_auth_unittest.cc EXPECT_EQ("", cache.GetLocalAuthCredentialsOfProfileAtIndex(0)); cache 39 chrome/browser/signin/local_auth_unittest.cc std::string passhash = cache.GetLocalAuthCredentialsOfProfileAtIndex(0); cache 58 chrome/browser/signin/local_auth_unittest.cc EXPECT_NE(passhash, cache.GetLocalAuthCredentialsOfProfileAtIndex(0)); cache 26 chrome/browser/signin/signin_names_io_thread.cc const ProfileInfoCache& cache = manager->GetProfileInfoCache(); cache 27 chrome/browser/signin/signin_names_io_thread.cc for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { cache 28 chrome/browser/signin/signin_names_io_thread.cc base::string16 email = cache.GetUserNameOfProfileAtIndex(i); cache 67 chrome/browser/signin/signin_names_io_thread_unittest.cc ProfileInfoCache* cache = testing_profile_manager_.profile_info_cache(); cache 68 chrome/browser/signin/signin_names_io_thread_unittest.cc const base::FilePath& user_data_dir = cache->GetUserDataDir(); cache 75 chrome/browser/signin/signin_names_io_thread_unittest.cc cache->AddProfileToCache(profile_dir, name, email, 0, std::string()); cache 311 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_IMAGES, cache 316 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_TRACKING, cache 360 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_IMAGES); cache 362 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_TRACKING); cache 443 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconDataAvailable(test_data.page_url, bitmap_results); cache 451 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnReceivedSyncFavicon(page_url, cache 527 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_IMAGES, cache 532 chrome/browser/sync/glue/favicon_cache_unittest.cc EXPECT_EQ(0U, cache()->GetAllSyncData(syncer::FAVICON_IMAGES).size()); cache 541 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_TRACKING, cache 546 chrome/browser/sync/glue/favicon_cache_unittest.cc EXPECT_EQ(0U, cache()->GetAllSyncData(syncer::FAVICON_TRACKING).size()); cache 571 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_IMAGES, cache 576 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_IMAGES).size()); cache 589 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_TRACKING, cache 594 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_TRACKING).size()); cache 630 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_IMAGES, cache 635 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_IMAGES).size()); cache 644 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_TRACKING, cache 649 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_TRACKING).size()); cache 705 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_IMAGES, cache 710 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_IMAGES).size()); cache 720 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_TRACKING, cache 725 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_TRACKING).size()); cache 786 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_IMAGES, cache 791 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_IMAGES).size()); cache 800 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_TRACKING, cache 805 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_TRACKING).size()); cache 858 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, stale_changes); cache 904 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, new_changes); cache 942 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, same_changes); cache 983 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, stale_changes); cache 1028 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, new_changes); cache 1066 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, same_changes); cache 1110 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, tracking_deletions); cache 1115 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, image_deletions); cache 1155 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_IMAGES, cache 1162 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_IMAGES).size()); cache 1172 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_TRACKING, cache 1177 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->GetAllSyncData(syncer::FAVICON_TRACKING).size()); cache 1235 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, image_changes); cache 1237 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, tracking_changes); cache 1252 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, test_data.icon_url); cache 1294 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, test_data.icon_url); cache 1303 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, test_data.icon_url); cache 1330 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, test_data.icon_url); cache 1340 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, test_data.icon_url); cache 1486 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, GURL()); cache 1514 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, test_data.icon_url); cache 1529 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, test_data.icon_url); cache 1577 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, initial_image_changes); cache 1578 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->ProcessSyncChanges(FROM_HERE, initial_tracking_changes); cache 1584 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, GURL()); cache 1671 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_IMAGES, cache 1676 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->MergeDataAndStartSyncing(syncer::FAVICON_TRACKING, cache 1688 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, test_data.icon_url); cache 1741 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, test_data.icon_url); cache 1808 chrome/browser/sync/glue/favicon_cache_unittest.cc cache()->OnFaviconVisited(test_data.page_url, test_data.icon_url); cache 67 chrome/browser/sync/glue/session_model_associator_unittest.cc FaviconCache* cache = model_associator_.GetFaviconCache(); cache 70 chrome/browser/sync/glue/session_model_associator_unittest.cc if (!cache->GetSyncedFaviconForPageURL(gurl, &favicon)) cache 50 chrome/browser/task_manager/task_manager_util.cc ProfileInfoCache& cache = cache 52 chrome/browser/task_manager/task_manager_util.cc size_t index = cache.GetIndexOfProfileWithPath( cache 57 chrome/browser/task_manager/task_manager_util.cc return cache.GetNameOfProfileAtIndex(index); cache 856 chrome/browser/ui/gtk/browser_titlebar.cc ProfileInfoCache& cache = cache 858 chrome/browser/ui/gtk/browser_titlebar.cc size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 863 chrome/browser/ui/gtk/browser_titlebar.cc cache.IsUsingGAIAPictureOfProfileAtIndex(index) && cache 864 chrome/browser/ui/gtk/browser_titlebar.cc cache.GetGAIAPictureOfProfileAtIndex(index); cache 865 chrome/browser/ui/gtk/browser_titlebar.cc avatar = cache.GetAvatarIconOfProfileAtIndex(index); cache 153 chrome/browser/ui/gtk/gtk_util.cc const ProfileInfoCache& cache = cache 157 chrome/browser/ui/gtk/gtk_util.cc cache.GetNumberOfProfiles() < 2) cache 160 chrome/browser/ui/gtk/gtk_util.cc const size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 163 chrome/browser/ui/gtk/gtk_util.cc cache.GetAvatarIconOfProfileAtIndex(index).ToGdkPixbuf() : cache 851 chrome/browser/ui/sync/one_click_signin_helper.cc ProfileInfoCache& cache = manager->GetProfileInfoCache(); cache 852 chrome/browser/ui/sync/one_click_signin_helper.cc for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { cache 854 chrome/browser/ui/sync/one_click_signin_helper.cc base::UTF16ToUTF8(cache.GetUserNameOfProfileAtIndex(i)); cache 842 chrome/browser/ui/sync/one_click_signin_helper_unittest.cc ProfileInfoCache* cache = testing_profile_manager_.profile_info_cache(); cache 843 chrome/browser/ui/sync/one_click_signin_helper_unittest.cc const base::FilePath& user_data_dir = cache->GetUserDataDir(); cache 844 chrome/browser/ui/sync/one_click_signin_helper_unittest.cc cache->AddProfileToCache(user_data_dir.Append(FILE_PATH_LITERAL("user")), cache 107 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc ProfileInfoCache& cache = cache 110 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 113 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc text = cache.GetNameOfProfileAtIndex(index); cache 611 chrome/browser/ui/views/frame/browser_view.cc ProfileInfoCache& cache = cache 613 chrome/browser/ui/views/frame/browser_view.cc if (cache.GetIndexOfProfileWithPath(browser_->profile()->GetPath()) == cache 127 chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 147 chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc size_t profile2_index = cache.GetIndexOfProfileWithPath(path_profile2); cache 149 chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc profile2_browser, cache.GetNameOfProfileAtIndex(profile2_index)); cache 63 chrome/browser/ui/views/new_avatar_menu_button_browsertest.cc ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); cache 64 chrome/browser/ui/views/new_avatar_menu_button_browsertest.cc cache.SetUserNameOfProfileAtIndex(0, base::UTF8ToUTF16("user_name")); cache 1098 chrome/browser/ui/webui/net_internals/net_internals_ui.cc net::HostCache* cache = GetHostResolverCache(context); cache 1100 chrome/browser/ui/webui/net_internals/net_internals_ui.cc if (!cache) { cache 1119 chrome/browser/ui/webui/net_internals/net_internals_ui.cc static_cast<int>(cache->max_entries())); cache 1123 chrome/browser/ui/webui/net_internals/net_internals_ui.cc net::HostCache::EntryMap::Iterator it(cache->entries()); cache 1159 chrome/browser/ui/webui/net_internals/net_internals_ui.cc net::HostCache* cache = GetHostResolverCache(GetMainContext()); cache 1161 chrome/browser/ui/webui/net_internals/net_internals_ui.cc if (cache) cache 1162 chrome/browser/ui/webui/net_internals/net_internals_ui.cc cache->clear(); cache 58 chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc net::HostCache* cache = context->host_resolver()->GetHostCache(); cache 59 chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc ASSERT_TRUE(cache); cache 75 chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc cache->Set(net::HostCache::Key(hostname, net::ADDRESS_FAMILY_UNSPECIFIED, 0), cache 207 chrome/browser/ui/webui/ntp/ntp_login_handler.cc ProfileInfoCache& cache = cache 209 chrome/browser/ui/webui/ntp/ntp_login_handler.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 214 chrome/browser/ui/webui/ntp/ntp_login_handler.cc if (cache.GetNumberOfProfiles() == 1) { cache 215 chrome/browser/ui/webui/ntp/ntp_login_handler.cc base::string16 name = cache.GetGAIANameOfProfileAtIndex(profile_index); cache 219 chrome/browser/ui/webui/ntp/ntp_login_handler.cc cache.GetGAIAPictureOfProfileAtIndex(profile_index); cache 1139 chrome/browser/ui/webui/options/browser_options_handler.cc ProfileInfoCache& cache = cache 1145 chrome/browser/ui/webui/options/browser_options_handler.cc for (size_t i = 0, e = cache.GetNumberOfProfiles(); i < e; ++i) { cache 1147 chrome/browser/ui/webui/options/browser_options_handler.cc profile_value->SetString("name", cache.GetNameOfProfileAtIndex(i)); cache 1148 chrome/browser/ui/webui/options/browser_options_handler.cc base::FilePath profile_path = cache.GetPathOfProfileAtIndex(i); cache 1152 chrome/browser/ui/webui/options/browser_options_handler.cc profile_value->SetBoolean("isManaged", cache.ProfileIsManagedAtIndex(i)); cache 1155 chrome/browser/ui/webui/options/browser_options_handler.cc cache.IsUsingGAIAPictureOfProfileAtIndex(i) && cache 1156 chrome/browser/ui/webui/options/browser_options_handler.cc cache.GetGAIAPictureOfProfileAtIndex(i); cache 1159 chrome/browser/ui/webui/options/browser_options_handler.cc cache.GetAvatarIconOfProfileAtIndex(i), true); cache 1163 chrome/browser/ui/webui/options/browser_options_handler.cc size_t icon_index = cache.GetAvatarIconIndexOfProfileAtIndex(i); cache 1165 chrome/browser/ui/webui/options/browser_options_handler.cc cache.GetDefaultAvatarIconUrl(icon_index)); cache 427 chrome/browser/ui/webui/options/create_profile_handler.cc const ProfileInfoCache& cache = cache 429 chrome/browser/ui/webui/options/create_profile_handler.cc for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { cache 430 chrome/browser/ui/webui/options/create_profile_handler.cc if (existing_managed_user_id == cache.GetManagedUserIdOfProfileAtIndex(i)) cache 230 chrome/browser/ui/webui/options/manage_profile_handler.cc const ProfileInfoCache& cache = cache 232 chrome/browser/ui/webui/options/manage_profile_handler.cc const size_t icon_index = cache.ChooseAvatarIconIndexForNewProfile(); cache 235 chrome/browser/ui/webui/options/manage_profile_handler.cc profile_info.SetString("name", cache.ChooseNameForNewProfile(icon_index)); cache 236 chrome/browser/ui/webui/options/manage_profile_handler.cc profile_info.SetString("iconURL", cache.GetDefaultAvatarIconUrl(icon_index)); cache 248 chrome/browser/ui/webui/options/manage_profile_handler.cc const ProfileInfoCache& cache = cache 251 chrome/browser/ui/webui/options/manage_profile_handler.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); cache 254 chrome/browser/ui/webui/options/manage_profile_handler.cc cache.GetGAIAPictureOfProfileAtIndex(profile_index); cache 267 chrome/browser/ui/webui/options/manage_profile_handler.cc default_name_list.AppendString(cache.ChooseNameForNewProfile(i)); cache 276 chrome/browser/ui/webui/options/manage_profile_handler.cc const ProfileInfoCache& cache = cache 279 chrome/browser/ui/webui/options/manage_profile_handler.cc for (size_t i = 0, e = cache.GetNumberOfProfiles(); i < e; ++i) { cache 281 chrome/browser/ui/webui/options/manage_profile_handler.cc base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(i)), true); cache 295 chrome/browser/ui/webui/options/manage_profile_handler.cc ProfileInfoCache& cache = cache 297 chrome/browser/ui/webui/options/manage_profile_handler.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile_file_path); cache 312 chrome/browser/ui/webui/options/manage_profile_handler.cc cache.IsUsingGAIAPictureOfProfileAtIndex(profile_index); cache 316 chrome/browser/ui/webui/options/manage_profile_handler.cc cache.SetIsUsingGAIAPictureOfProfileAtIndex(profile_index, true); cache 323 chrome/browser/ui/webui/options/manage_profile_handler.cc } else if (cache.IsDefaultAvatarIconUrl(icon_url, &new_icon_index)) { cache 329 chrome/browser/ui/webui/options/manage_profile_handler.cc cache.SetIsUsingGAIAPictureOfProfileAtIndex(profile_index, false); cache 386 chrome/browser/ui/webui/options/manage_profile_handler.cc ProfileInfoCache& cache = cache 388 chrome/browser/ui/webui/options/manage_profile_handler.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile_file_path); cache 391 chrome/browser/ui/webui/options/manage_profile_handler.cc base::string16 gaia_name = cache.GetNameOfProfileAtIndex(profile_index); cache 410 chrome/browser/ui/webui/options/manage_profile_handler.cc const ProfileInfoCache& cache = cache 412 chrome/browser/ui/webui/options/manage_profile_handler.cc size_t profile_index = cache.GetIndexOfProfileWithPath(profile_file_path); cache 417 chrome/browser/ui/webui/options/manage_profile_handler.cc cache.GetPathOfProfileAtIndex(profile_index); cache 146 chrome/browser/ui/webui/options/managed_user_import_handler.cc const ProfileInfoCache& cache = cache 151 chrome/browser/ui/webui/options/managed_user_import_handler.cc for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { cache 152 chrome/browser/ui/webui/options/managed_user_import_handler.cc if (cache.ProfileIsManagedAtIndex(i)) cache 153 chrome/browser/ui/webui/options/managed_user_import_handler.cc managed_user_ids.insert(cache.GetManagedUserIdOfProfileAtIndex(i)); cache 35 chrome/common/instant_restricted_id_cache_unittest.cc InstantRestrictedIDCache<TestData> cache(7); cache 36 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0u, cache.cache_.size()); cache 37 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0, cache.last_restricted_id_); cache 44 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItems(input1); cache 45 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3u, cache.cache_.size()); cache 46 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3, cache.last_restricted_id_); cache 49 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 57 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(4, &t)); cache 58 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(3, &t)); cache 65 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItems(input2); cache 66 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(5u, cache.cache_.size()); cache 67 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(5, cache.last_restricted_id_); cache 70 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 77 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(6, &t)); cache 78 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(3, &t)); cache 80 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(5, &t)); cache 89 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItems(input3); cache 90 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(7u, cache.cache_.size()); cache 91 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(9, cache.last_restricted_id_); cache 94 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 101 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(1, &t)); cache 102 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(2, &t)); cache 103 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(3, &t)); cache 105 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(5, &t)); cache 107 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(7, &t)); cache 112 chrome/common/instant_restricted_id_cache_unittest.cc InstantRestrictedIDCache<TestData> cache(5); cache 113 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0u, cache.cache_.size()); cache 114 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0, cache.last_restricted_id_); cache 121 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(input1); cache 122 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3u, cache.cache_.size()); cache 123 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(4, cache.last_restricted_id_); cache 126 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 134 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(3, &t)); cache 135 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(4, &t)); cache 143 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(input2); cache 144 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(4u, cache.cache_.size()); cache 145 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(7, cache.last_restricted_id_); cache 148 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 155 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(6, &t)); cache 156 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(2, &t)); cache 158 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(4, &t)); cache 160 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(7, &t)); cache 168 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(input3); cache 169 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(5u, cache.cache_.size()); cache 170 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(9, cache.last_restricted_id_); cache 173 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 180 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(1, &t)); cache 182 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(2, &t)); cache 183 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(3, &t)); cache 184 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(4, &t)); cache 186 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(7, &t)); cache 188 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(8, &t)); cache 189 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(9, &t)); cache 194 chrome/common/instant_restricted_id_cache_unittest.cc InstantRestrictedIDCache<TestData> cache(4); cache 195 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0u, cache.cache_.size()); cache 196 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0, cache.last_restricted_id_); cache 203 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(input1); cache 204 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3u, cache.cache_.size()); cache 205 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(kint32max, cache.last_restricted_id_); cache 208 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 216 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(1, &t)); cache 217 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(kint32max, &t)); cache 219 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(-100, &t)); cache 226 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(input2); cache 227 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(4u, cache.cache_.size()); cache 228 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(kint32max, cache.last_restricted_id_); cache 231 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 238 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(0, &t)); cache 239 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(kint32max, &t)); cache 241 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(kint32min, &t)); cache 243 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(7, &t)); cache 250 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItems(input3); cache 251 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(4u, cache.cache_.size()); cache 252 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(kint32min + 1, cache.last_restricted_id_); cache 255 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 262 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(kint32min, &t)); cache 267 chrome/common/instant_restricted_id_cache_unittest.cc InstantRestrictedIDCache<TestData> cache(5); cache 268 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0u, cache.cache_.size()); cache 269 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0, cache.last_restricted_id_); cache 276 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(input1); cache 277 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3u, cache.cache_.size()); cache 278 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(4, cache.last_restricted_id_); cache 281 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 289 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(3, &t)); cache 290 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(4, &t)); cache 297 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItems(input2); cache 298 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(5u, cache.cache_.size()); cache 299 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(6, cache.last_restricted_id_); cache 302 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 309 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(3, &t)); cache 310 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(2, &t)); cache 312 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(4, &t)); cache 314 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(5, &t)); cache 316 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(6, &t)); cache 318 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(7, &t)); cache 325 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(input3); cache 326 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(5u, cache.cache_.size()); cache 327 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(7, cache.last_restricted_id_); cache 330 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 337 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(1, &t)); cache 339 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_FALSE(cache.GetItemWithRestrictedID(2, &t)); cache 340 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(4, &t)); cache 342 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(5, &t)); cache 344 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(6, &t)); cache 346 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_TRUE(cache.GetItemWithRestrictedID(7, &t)); cache 351 chrome/common/instant_restricted_id_cache_unittest.cc InstantRestrictedIDCache<TestData> cache(9); cache 352 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0u, cache.cache_.size()); cache 353 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0, cache.last_restricted_id_); cache 360 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItems(input1); cache 361 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3u, cache.cache_.size()); cache 362 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3, cache.last_restricted_id_); cache 365 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 369 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItems(std::vector<TestData>()); cache 370 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3u, cache.cache_.size()); cache 371 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3, cache.last_restricted_id_); cache 373 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 381 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(input2); cache 382 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(6u, cache.cache_.size()); cache 383 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(12, cache.last_restricted_id_); cache 385 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 388 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(std::vector<ItemIDPair>()); cache 389 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(6u, cache.cache_.size()); cache 390 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(12, cache.last_restricted_id_); cache 392 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 397 chrome/common/instant_restricted_id_cache_unittest.cc InstantRestrictedIDCache<TestData> cache(29); cache 398 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0u, cache.cache_.size()); cache 399 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(0, cache.last_restricted_id_); cache 405 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(input1); cache 406 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3u, cache.cache_.size()); cache 407 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(12, cache.last_restricted_id_); cache 408 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(10, cache.last_add_start_->first); cache 411 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 415 chrome/common/instant_restricted_id_cache_unittest.cc cache.AddItemsWithRestrictedID(input1); cache 418 chrome/common/instant_restricted_id_cache_unittest.cc cache.GetCurrentItems(&output); cache 420 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(3u, cache.cache_.size()); cache 421 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(12, cache.last_restricted_id_); cache 422 chrome/common/instant_restricted_id_cache_unittest.cc EXPECT_EQ(10, cache.last_add_start_->first); cache 80 chrome/test/base/testing_profile_manager.cc ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); cache 81 chrome/test/base/testing_profile_manager.cc size_t index = cache.GetIndexOfProfileWithPath(profile_path); cache 82 chrome/test/base/testing_profile_manager.cc cache.SetAvatarIconOfProfileAtIndex(index, avatar_id); cache 83 chrome/test/base/testing_profile_manager.cc cache.SetManagedUserIdOfProfileAtIndex(index, managed_user_id); cache 86 chrome/test/base/testing_profile_manager.cc cache.SetNameOfProfileAtIndex(index, user_name); cache 136 chrome/test/base/testing_profile_manager.cc ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); cache 137 chrome/test/base/testing_profile_manager.cc cache.DeleteProfileFromCache(profile->GetPath()); cache 340 chrome/utility/importer/ie_importer_win.cc INTERNET_CACHE_ENTRY_INFO* cache = cache 342 chrome/utility/importer/ie_importer_win.cc if (!GetUrlCacheEntryInfoEx(url_wstring.c_str(), cache, &info_size, NULL, cache 346 chrome/utility/importer/ie_importer_win.cc return base::ReadFileToString(base::FilePath(cache->lpszLocalFileName), data); cache 101 chrome/utility/local_discovery/service_discovery_client_impl.cc bool network, bool cache, bool force_refresh, cache 107 chrome/utility/local_discovery/service_discovery_client_impl.cc if (cache) cache 46 components/nacl/browser/pnacl_host.cc pnacl::PnaclTranslationCache* cache = disk_cache_.release(); cache 47 components/nacl/browser/pnacl_host.cc (void)cache; cache 45 components/nacl/browser/pnacl_translation_cache.cc base::WeakPtr<PnaclTranslationCache> cache, cache 49 components/nacl/browser/pnacl_translation_cache.cc base::WeakPtr<PnaclTranslationCache> cache, cache 77 components/nacl/browser/pnacl_translation_cache.cc PnaclTranslationCacheEntry(base::WeakPtr<PnaclTranslationCache> cache, cache 113 components/nacl/browser/pnacl_translation_cache.cc base::WeakPtr<PnaclTranslationCache> cache, cache 117 components/nacl/browser/pnacl_translation_cache.cc new PnaclTranslationCacheEntry(cache, key, true)); cache 124 components/nacl/browser/pnacl_translation_cache.cc base::WeakPtr<PnaclTranslationCache> cache, cache 129 components/nacl/browser/pnacl_translation_cache.cc new PnaclTranslationCacheEntry(cache, key, false)); cache 136 components/nacl/browser/pnacl_translation_cache.cc base::WeakPtr<PnaclTranslationCache> cache, cache 139 components/nacl/browser/pnacl_translation_cache.cc : cache_(cache), cache 160 components/nacl/loader/nacl_validation_query.cc NaClValidationCache* cache = cache 163 components/nacl/loader/nacl_validation_query.cc memset(cache, 0, sizeof(*cache)); cache 164 components/nacl/loader/nacl_validation_query.cc cache->handle = new NaClValidationQueryContext(db, profile_key, nacl_version); cache 165 components/nacl/loader/nacl_validation_query.cc cache->CreateQuery = CreateQuery; cache 166 components/nacl/loader/nacl_validation_query.cc cache->AddData = AddData; cache 167 components/nacl/loader/nacl_validation_query.cc cache->QueryKnownToValidate = QueryKnownToValidate; cache 168 components/nacl/loader/nacl_validation_query.cc cache->SetKnownToValidate = SetKnownToValidate; cache 169 components/nacl/loader/nacl_validation_query.cc cache->DestroyQuery = DestroyQuery; cache 170 components/nacl/loader/nacl_validation_query.cc cache->ResolveFileToken = ResolveFileToken; cache 171 components/nacl/loader/nacl_validation_query.cc return cache; cache 69 components/policy/core/common/cloud/component_cloud_policy_service.cc scoped_ptr<ResourceCache> cache, cache 119 components/policy/core/common/cloud/component_cloud_policy_service.cc scoped_ptr<ResourceCache> cache, cache 124 components/policy/core/common/cloud/component_cloud_policy_service.cc cache_(cache.Pass()), cache 216 components/policy/core/common/cloud/component_cloud_policy_service.cc scoped_ptr<ResourceCache> cache, cache 238 components/policy/core/common/cloud/component_cloud_policy_service.cc cache.Pass(), cache 80 components/policy/core/common/cloud/component_cloud_policy_service.h scoped_ptr<ResourceCache> cache, cache 67 components/policy/core/common/cloud/component_cloud_policy_store.cc ResourceCache* cache) cache 69 components/policy/core/common/cloud/component_cloud_policy_store.cc cache_(cache) { cache 42 components/policy/core/common/cloud/component_cloud_policy_store.h ResourceCache* cache); cache 39 components/policy/core/common/cloud/resource_cache_unittest.cc ResourceCache cache(temp_dir.path(), cache 44 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_FALSE(cache.Load(kKey1, kSubA, &data)); cache 47 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey1, kSubA, kData0)); cache 48 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Load(kKey1, kSubA, &data)); cache 52 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey1, kSubB, kData1)); cache 55 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey2, kSubA, kData0)); cache 56 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey2, kSubB, kData1)); cache 57 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey3, kSubA, kData0)); cache 58 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey3, kSubB, kData1)); cache 62 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey1, &contents); cache 68 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey1, kSubC, kData1)); cache 69 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey1, kSubD, kData1)); cache 70 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey1, kSubE, kData1)); cache 76 components/policy/core/common/cloud/resource_cache_unittest.cc cache.PurgeOtherSubkeys(kKey1, keep); cache 79 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey1, &contents); cache 85 components/policy/core/common/cloud/resource_cache_unittest.cc cache.Delete(kKey1, kSubB); cache 86 components/policy/core/common/cloud/resource_cache_unittest.cc cache.Delete(kKey1, kSubD); cache 87 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey1, &contents); cache 91 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey2, &contents); cache 95 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey3, &contents); cache 103 components/policy/core/common/cloud/resource_cache_unittest.cc cache.PurgeOtherKeys(keep); cache 106 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey1, &contents); cache 108 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey1, &contents); cache 112 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey3, &contents); cache 121 components/policy/core/common/cloud/resource_cache_unittest.cc ResourceCache cache(temp_dir.path(), cache 125 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey1, kSubA, kData0)); cache 126 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey1, kSubB, kData1)); cache 127 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey1, kSubC, kData0)); cache 128 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey2, kSubA, kData0)); cache 129 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey2, kSubB, kData1)); cache 130 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey3, kSubA, kData0)); cache 131 components/policy/core/common/cloud/resource_cache_unittest.cc EXPECT_TRUE(cache.Store(kKey3, kSubB, kData1)); cache 135 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey1, &contents); cache 142 components/policy/core/common/cloud/resource_cache_unittest.cc cache.FilterSubkeys(kKey1, base::Bind(&Matches, kSubA)); cache 145 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey1, &contents); cache 151 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey2, &contents); cache 153 components/policy/core/common/cloud/resource_cache_unittest.cc cache.LoadAllSubkeys(kKey3, &contents); cache 208 content/browser/appcache/appcache_storage_impl_unittest.cc virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) OVERRIDE { cache 209 content/browser/appcache/appcache_storage_impl_unittest.cc loaded_cache_ = cache; cache 514 content/browser/appcache/appcache_storage_impl_unittest.cc scoped_refptr<AppCache> cache(new AppCache(storage(), cache_id)); cache 519 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_EQ(cache.get(), delegate()->loaded_cache_.get()); cache 542 content/browser/geolocation/network_location_provider_unittest.cc NetworkLocationProvider::PositionCache cache; cache 547 content/browser/geolocation/network_location_provider_unittest.cc bool ret = cache.CachePosition(CreateReferenceWifiScanData(i), pos); cache 550 content/browser/geolocation/network_location_provider_unittest.cc cache.FindPosition(CreateReferenceWifiScanData(i)); cache 556 content/browser/geolocation/network_location_provider_unittest.cc EXPECT_TRUE(cache.FindPosition(CreateReferenceWifiScanData(1))); cache 559 content/browser/geolocation/network_location_provider_unittest.cc EXPECT_FALSE(cache.FindPosition(CreateReferenceWifiScanData(evicted))); cache 560 content/browser/geolocation/network_location_provider_unittest.cc EXPECT_TRUE(cache.FindPosition(CreateReferenceWifiScanData(evicted + 1))); cache 1218 content/browser/gpu/gpu_process_host.cc scoped_refptr<ShaderDiskCache> cache = cache 1220 content/browser/gpu/gpu_process_host.cc if (!cache.get()) cache 1223 content/browser/gpu/gpu_process_host.cc cache->set_host_id(host_id_); cache 1225 content/browser/gpu/gpu_process_host.cc client_id_to_shader_cache_[client_id] = cache; cache 34 content/browser/gpu/shader_disk_cache.cc ShaderDiskCacheEntry(base::WeakPtr<ShaderDiskCache> cache, cache 72 content/browser/gpu/shader_disk_cache.cc ShaderDiskReadHelper(base::WeakPtr<ShaderDiskCache> cache, int host_id); cache 110 content/browser/gpu/shader_disk_cache.cc ShaderClearHelper(scoped_refptr<ShaderDiskCache> cache, cache 140 content/browser/gpu/shader_disk_cache.cc ShaderDiskCacheEntry::ShaderDiskCacheEntry(base::WeakPtr<ShaderDiskCache> cache, cache 143 content/browser/gpu/shader_disk_cache.cc : cache_(cache), cache 242 content/browser/gpu/shader_disk_cache.cc base::WeakPtr<ShaderDiskCache> cache, cache 244 content/browser/gpu/shader_disk_cache.cc : cache_(cache), cache 354 content/browser/gpu/shader_disk_cache.cc ShaderClearHelper::ShaderClearHelper(scoped_refptr<ShaderDiskCache> cache, cache 359 content/browser/gpu/shader_disk_cache.cc : cache_(cache), cache 444 content/browser/gpu/shader_disk_cache.cc ShaderDiskCache* cache = new ShaderDiskCache(path); cache 445 content/browser/gpu/shader_disk_cache.cc cache->Init(); cache 446 content/browser/gpu/shader_disk_cache.cc return cache; cache 450 content/browser/gpu/shader_disk_cache.cc ShaderDiskCache* cache) { cache 451 content/browser/gpu/shader_disk_cache.cc shader_cache_map_[key] = cache; cache 123 content/browser/gpu/shader_disk_cache.h void AddToCache(const base::FilePath& path, ShaderDiskCache* cache); cache 52 content/browser/gpu/shader_disk_cache_unittest.cc scoped_refptr<ShaderDiskCache> cache = cache 54 content/browser/gpu/shader_disk_cache_unittest.cc ASSERT_TRUE(cache.get() != NULL); cache 57 content/browser/gpu/shader_disk_cache_unittest.cc int rv = cache->SetAvailableCallback(available_cb.callback()); cache 59 content/browser/gpu/shader_disk_cache_unittest.cc EXPECT_EQ(0, cache->Size()); cache 61 content/browser/gpu/shader_disk_cache_unittest.cc cache->Cache(kCacheKey, kCacheValue); cache 64 content/browser/gpu/shader_disk_cache_unittest.cc rv = cache->SetCacheCompleteCallback(complete_cb.callback()); cache 66 content/browser/gpu/shader_disk_cache_unittest.cc EXPECT_EQ(1, cache->Size()); cache 70 content/browser/gpu/shader_disk_cache_unittest.cc rv = cache->Clear(time, time, clear_cb.callback()); cache 72 content/browser/gpu/shader_disk_cache_unittest.cc EXPECT_EQ(0, cache->Size()); cache 75 content/browser/renderer_host/backing_store_manager.cc void ExpireBackingStoreAt(BackingStoreCache* cache, cache 77 content/browser/renderer_host/backing_store_manager.cc cache->Erase(backing_store); cache 80 content/browser/renderer_host/backing_store_manager.cc size_t ExpireLastBackingStore(BackingStoreCache* cache) { cache 81 content/browser/renderer_host/backing_store_manager.cc if (cache->size() < 1) cache 86 content/browser/renderer_host/backing_store_manager.cc BackingStoreCache::iterator entry = --cache->rbegin().base(); cache 88 content/browser/renderer_host/backing_store_manager.cc ExpireBackingStoreAt(cache, entry); cache 97 content/browser/renderer_host/backing_store_manager.cc BackingStoreCache* cache = cache 99 content/browser/renderer_host/backing_store_manager.cc while (size > 0 && cache->size() > 1) { cache 100 content/browser/renderer_host/backing_store_manager.cc size_t entry_size = ExpireLastBackingStore(cache); cache 137 content/browser/renderer_host/backing_store_manager.cc BackingStoreCache* cache; cache 145 content/browser/renderer_host/backing_store_manager.cc cache = large_cache; cache 147 content/browser/renderer_host/backing_store_manager.cc cache = small_cache; cache 152 content/browser/renderer_host/backing_store_manager.cc cache->Put(host, backing_store); cache 247 content/browser/renderer_host/backing_store_manager.cc BackingStoreCache* cache = large_cache; cache 248 content/browser/renderer_host/backing_store_manager.cc BackingStoreCache::iterator it = cache->Peek(host); cache 249 content/browser/renderer_host/backing_store_manager.cc if (it == cache->end()) { cache 250 content/browser/renderer_host/backing_store_manager.cc cache = small_cache; cache 251 content/browser/renderer_host/backing_store_manager.cc it = cache->Peek(host); cache 252 content/browser/renderer_host/backing_store_manager.cc if (it == cache->end()) cache 255 content/browser/renderer_host/backing_store_manager.cc cache->Erase(it); cache 673 content/browser/renderer_host/media/media_stream_manager.cc EnumerationCache* cache; cache 677 content/browser/renderer_host/media/media_stream_manager.cc cache = &audio_enumeration_cache_; cache 681 content/browser/renderer_host/media/media_stream_manager.cc cache = &video_enumeration_cache_; cache 684 content/browser/renderer_host/media/media_stream_manager.cc if (!EnumerationRequired(cache, type)) { cache 687 content/browser/renderer_host/media/media_stream_manager.cc request->devices = cache->devices; cache 929 content/browser/renderer_host/media/media_stream_manager.cc const EnumerationCache* cache = cache 934 content/browser/renderer_host/media/media_stream_manager.cc if (!cache->valid) cache 937 content/browser/renderer_host/media/media_stream_manager.cc for (StreamDeviceInfoArray::const_iterator it = cache->devices.begin(); cache 938 content/browser/renderer_host/media/media_stream_manager.cc it != cache->devices.end(); cache 949 content/browser/renderer_host/media/media_stream_manager.cc void MediaStreamManager::ClearEnumerationCache(EnumerationCache* cache) { cache 951 content/browser/renderer_host/media/media_stream_manager.cc cache->valid = false; cache 954 content/browser/renderer_host/media/media_stream_manager.cc bool MediaStreamManager::EnumerationRequired(EnumerationCache* cache, cache 972 content/browser/renderer_host/media/media_stream_manager.cc ClearEnumerationCache(cache); cache 976 content/browser/renderer_host/media/media_stream_manager.cc return !cache->valid; cache 1535 content/browser/renderer_host/media/media_stream_manager.cc EnumerationCache* cache = cache 1538 content/browser/renderer_host/media/media_stream_manager.cc if (!cache->valid || cache 1539 content/browser/renderer_host/media/media_stream_manager.cc devices.size() != cache->devices.size() || cache 1540 content/browser/renderer_host/media/media_stream_manager.cc !std::equal(devices.begin(), devices.end(), cache->devices.begin(), cache 1542 content/browser/renderer_host/media/media_stream_manager.cc StopRemovedDevices(cache->devices, devices); cache 1543 content/browser/renderer_host/media/media_stream_manager.cc cache->devices = devices; cache 1550 content/browser/renderer_host/media/media_stream_manager.cc cache->valid = !devices.empty(); cache 257 content/browser/renderer_host/media/media_stream_manager.h void ClearEnumerationCache(EnumerationCache* cache); cache 263 content/browser/renderer_host/media/media_stream_manager.h bool EnumerationRequired(EnumerationCache* cache, MediaStreamType type); cache 1017 content/browser/renderer_host/render_message_filter.cc net::HttpCache* cache = request_context_->GetURLRequestContext()-> cache 1019 content/browser/renderer_host/render_message_filter.cc DCHECK(cache); cache 1029 content/browser/renderer_host/render_message_filter.cc cache->WriteMetadata(url, cache 2327 content/browser/web_contents/web_contents_impl.cc base::StatsCounter cache("WebKit.CacheHit"); cache 2328 content/browser/web_contents/web_contents_impl.cc cache.Increment(); cache 84 content/renderer/browser_render_view_browsertest.cc net::HttpCache* cache( cache 86 content/renderer/browser_render_view_browsertest.cc DCHECK(cache); cache 88 content/renderer/browser_render_view_browsertest.cc new net::FailingHttpTransactionFactory(cache->GetSession(), error)); cache 91 content/renderer/browser_render_view_browsertest.cc cache->SetHttpNetworkTransactionFactoryForTesting( cache 118 content/renderer/browser_render_view_browsertest.cc net::HttpCache* cache( cache 120 content/renderer/browser_render_view_browsertest.cc DCHECK(cache); cache 130 content/renderer/browser_render_view_browsertest.cc if (net::OK == cache->GetBackend(backend_ptr, backend_callback)) { cache 108 extensions/browser/api/storage/storage_frontend.cc ValueStoreCache* cache = it->second; cache 109 extensions/browser/api/storage/storage_frontend.cc cache->ShutdownOnUI(); cache 110 extensions/browser/api/storage/storage_frontend.cc BrowserThread::DeleteSoon(BrowserThread::FILE, FROM_HERE, cache); cache 134 extensions/browser/api/storage/storage_frontend.cc ValueStoreCache* cache = caches_[settings_namespace]; cache 135 extensions/browser/api/storage/storage_frontend.cc CHECK(cache); cache 140 extensions/browser/api/storage/storage_frontend.cc base::Unretained(cache), callback, extension)); cache 146 extensions/browser/api/storage/storage_frontend.cc ValueStoreCache* cache = it->second; cache 150 extensions/browser/api/storage/storage_frontend.cc base::Unretained(cache), cache 164 extensions/browser/api/storage/storage_frontend.cc ValueStoreCache* cache = it->second; cache 165 extensions/browser/api/storage/storage_frontend.cc cache->ShutdownOnUI(); cache 166 extensions/browser/api/storage/storage_frontend.cc BrowserThread::DeleteSoon(BrowserThread::FILE, FROM_HERE, cache); cache 1841 extensions/browser/extension_prefs.cc scoped_ptr<base::DictionaryValue> cache) { cache 1842 extensions/browser/extension_prefs.cc UpdateExtensionPref(extension_id, kPrefGeometryCache, cache.release()); cache 535 extensions/browser/extension_prefs.h scoped_ptr<base::DictionaryValue> cache); cache 73 google_apis/google_api_keys_unittest.cc EnvironmentCache& cache = env_cache_[i]; cache 74 google_apis/google_api_keys_unittest.cc cache.was_set = env_->HasVar(cache.variable_name); cache 75 google_apis/google_api_keys_unittest.cc cache.value.clear(); cache 76 google_apis/google_api_keys_unittest.cc if (cache.was_set) { cache 77 google_apis/google_api_keys_unittest.cc env_->GetVar(cache.variable_name, &cache.value); cache 78 google_apis/google_api_keys_unittest.cc env_->UnSetVar(cache.variable_name); cache 86 google_apis/google_api_keys_unittest.cc EnvironmentCache& cache = env_cache_[i]; cache 87 google_apis/google_api_keys_unittest.cc if (cache.was_set) { cache 88 google_apis/google_api_keys_unittest.cc env_->SetVar(cache.variable_name, cache.value); cache 624 gpu/command_buffer/service/program_manager.cc ProgramCache* cache = manager_->program_cache_; cache 625 gpu/command_buffer/service/program_manager.cc if (cache) { cache 628 gpu/command_buffer/service/program_manager.cc ProgramCache::LinkedProgramStatus status = cache->GetLinkedProgramStatus( cache 637 gpu/command_buffer/service/program_manager.cc cache->LoadLinkedProgram(service_id(), cache 652 gpu/command_buffer/service/program_manager.cc if (cache && gfx::g_driver_gl.ext.b_GL_ARB_get_program_binary) { cache 665 gpu/command_buffer/service/program_manager.cc if (cache) { cache 666 gpu/command_buffer/service/program_manager.cc cache->SaveLinkedProgram(service_id(), cache 93 net/base/expiring_cache.h explicit Iterator(const ExpiringCache& cache) cache 94 net/base/expiring_cache.h : cache_(cache), cache 39 net/base/expiring_cache_unittest.cc Cache cache(kMaxCacheEntries); cache 43 net/base/expiring_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 46 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("entry1", now)); cache 47 net/base/expiring_cache_unittest.cc cache.Put("entry1", "test1", now, now + kTTL); cache 48 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("entry1", now), Pointee(StrEq("test1"))); cache 49 net/base/expiring_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 55 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("entry2", now)); cache 56 net/base/expiring_cache_unittest.cc cache.Put("entry2", "test2", now, now + kTTL); cache 57 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("entry2", now), Pointee(StrEq("test2"))); cache 58 net/base/expiring_cache_unittest.cc EXPECT_EQ(2U, cache.size()); cache 64 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("entry1", now), Pointee(StrEq("test1"))); cache 65 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("entry2", now), Pointee(StrEq("test2"))); cache 70 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("entry1", now)); cache 71 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("entry2", now), Pointee(StrEq("test2"))); cache 74 net/base/expiring_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 77 net/base/expiring_cache_unittest.cc cache.Put("entry1", "test1", now, now + kTTL); cache 80 net/base/expiring_cache_unittest.cc EXPECT_EQ(2U, cache.size()); cache 81 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("entry1", now), Pointee(StrEq("test1"))); cache 82 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("entry2", now), Pointee(StrEq("test2"))); cache 87 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("entry1", now)); cache 88 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("entry2", now)); cache 94 net/base/expiring_cache_unittest.cc Cache cache(kMaxCacheEntries); cache 98 net/base/expiring_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 104 net/base/expiring_cache_unittest.cc cache.Put(name, "I'm valid!", t10, t10 + kTTL); cache 106 net/base/expiring_cache_unittest.cc EXPECT_EQ(5U, cache.size()); cache 111 net/base/expiring_cache_unittest.cc cache.Put(name, "I'm expired.", now, t10); cache 113 net/base/expiring_cache_unittest.cc EXPECT_EQ(8U, cache.size()); cache 118 net/base/expiring_cache_unittest.cc cache.Put(name, "I was never valid.", now, now); cache 120 net/base/expiring_cache_unittest.cc EXPECT_EQ(10U, cache.size()); cache 122 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "valid0")); cache 123 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "valid1")); cache 124 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "valid2")); cache 125 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "valid3")); cache 126 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "valid4")); cache 127 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "expired0")); cache 128 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "expired1")); cache 129 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "expired2")); cache 130 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "negative0")); cache 131 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "negative1")); cache 135 net/base/expiring_cache_unittest.cc cache.max_entries_ = 6; cache 136 net/base/expiring_cache_unittest.cc cache.Compact(now); cache 137 net/base/expiring_cache_unittest.cc EXPECT_EQ(5U, cache.size()); cache 139 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "valid0")); cache 140 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "valid1")); cache 141 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "valid2")); cache 142 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "valid3")); cache 143 net/base/expiring_cache_unittest.cc EXPECT_TRUE(ContainsKey(cache.entries_, "valid4")); cache 144 net/base/expiring_cache_unittest.cc EXPECT_FALSE(ContainsKey(cache.entries_, "expired0")); cache 145 net/base/expiring_cache_unittest.cc EXPECT_FALSE(ContainsKey(cache.entries_, "expired1")); cache 146 net/base/expiring_cache_unittest.cc EXPECT_FALSE(ContainsKey(cache.entries_, "expired2")); cache 147 net/base/expiring_cache_unittest.cc EXPECT_FALSE(ContainsKey(cache.entries_, "negative0")); cache 148 net/base/expiring_cache_unittest.cc EXPECT_FALSE(ContainsKey(cache.entries_, "negative1")); cache 152 net/base/expiring_cache_unittest.cc cache.max_entries_ = 4; cache 153 net/base/expiring_cache_unittest.cc cache.Compact(now); cache 154 net/base/expiring_cache_unittest.cc EXPECT_EQ(3U, cache.size()); cache 161 net/base/expiring_cache_unittest.cc Cache cache(3); cache 166 net/base/expiring_cache_unittest.cc cache.Put("test1", "test1", now, now + kTTL); cache 167 net/base/expiring_cache_unittest.cc cache.Put("test2", "test2", now, now + kTTL); cache 168 net/base/expiring_cache_unittest.cc cache.Put("expired", "expired", now, now); cache 170 net/base/expiring_cache_unittest.cc EXPECT_EQ(3U, cache.size()); cache 173 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test1", now), Pointee(StrEq("test1"))); cache 174 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test2", now), Pointee(StrEq("test2"))); cache 175 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("expired", now)); cache 178 net/base/expiring_cache_unittest.cc cache.Put("test3", "test3", now, now + kTTL); cache 179 net/base/expiring_cache_unittest.cc EXPECT_EQ(3U, cache.size()); cache 181 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("expired", now)); cache 182 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test1", now), Pointee(StrEq("test1"))); cache 183 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test2", now), Pointee(StrEq("test2"))); cache 184 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test3", now), Pointee(StrEq("test3"))); cache 188 net/base/expiring_cache_unittest.cc cache.Put("test4", "test4", now, now + kTTL); cache 189 net/base/expiring_cache_unittest.cc EXPECT_EQ(3U, cache.size()); cache 190 net/base/expiring_cache_unittest.cc cache.Put("test5", "test5", now, now + kTTL); cache 191 net/base/expiring_cache_unittest.cc EXPECT_EQ(3U, cache.size()); cache 192 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test5", now), Pointee(StrEq("test5"))); cache 198 net/base/expiring_cache_unittest.cc Cache cache(kMaxCacheEntries); cache 202 net/base/expiring_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 205 net/base/expiring_cache_unittest.cc cache.Put("test1", "foo", now, now + kTTL); cache 206 net/base/expiring_cache_unittest.cc cache.Put("test2", "foo", now, now + kTTL); cache 207 net/base/expiring_cache_unittest.cc cache.Put("test3", "foo", now, now + kTTL); cache 208 net/base/expiring_cache_unittest.cc EXPECT_EQ(3U, cache.size()); cache 210 net/base/expiring_cache_unittest.cc cache.Clear(); cache 212 net/base/expiring_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 218 net/base/expiring_cache_unittest.cc Cache cache(kMaxCacheEntries); cache 222 net/base/expiring_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 225 net/base/expiring_cache_unittest.cc cache.Put("test1", "foo1", now, now + kTTL); cache 226 net/base/expiring_cache_unittest.cc cache.Put("test2", "foo2", now, now + kTTL); cache 227 net/base/expiring_cache_unittest.cc cache.Put("test3", "foo3", now, now + kTTL); cache 228 net/base/expiring_cache_unittest.cc EXPECT_EQ(3U, cache.size()); cache 231 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test1", now), Pointee(StrEq("foo1"))); cache 232 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test2", now), Pointee(StrEq("foo2"))); cache 233 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test3", now), Pointee(StrEq("foo3"))); cache 239 net/base/expiring_cache_unittest.cc cache.Put(name, name, now, now + kTTL); // Expire at t=20. cache 241 net/base/expiring_cache_unittest.cc EXPECT_EQ(8U, cache.size()); cache 244 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("test1", now)); cache 245 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("test2", now)); cache 246 net/base/expiring_cache_unittest.cc EXPECT_EQ(6U, cache.size()); cache 252 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get(name, now), Pointee(StrEq(name))); cache 254 net/base/expiring_cache_unittest.cc EXPECT_EQ(6U, cache.size()); cache 258 net/base/expiring_cache_unittest.cc ExpiringCache<std::string, std::string, std::string, TestFunctor> cache(5); cache 265 net/base/expiring_cache_unittest.cc EXPECT_EQ(0u, cache.size()); cache 268 net/base/expiring_cache_unittest.cc cache.Put("test1", "foo1", kNow, kLater); cache 269 net/base/expiring_cache_unittest.cc cache.Put("test2", "foo2", kNow, kLater); cache 270 net/base/expiring_cache_unittest.cc cache.Put("test3", "foo3", kNow, kLater); cache 271 net/base/expiring_cache_unittest.cc EXPECT_EQ(3U, cache.size()); cache 274 net/base/expiring_cache_unittest.cc cache.Put("test4", "foo4", kNow, kMuchLater); cache 275 net/base/expiring_cache_unittest.cc cache.Put("test5", "foo5", kNow, kMuchLater); cache 276 net/base/expiring_cache_unittest.cc EXPECT_EQ(5U, cache.size()); cache 279 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test1", kNow), Pointee(StrEq("foo1"))); cache 280 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test2", kNow), Pointee(StrEq("foo2"))); cache 281 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test3", kNow), Pointee(StrEq("foo3"))); cache 282 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test4", kNow), Pointee(StrEq("foo4"))); cache 283 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test5", kNow), Pointee(StrEq("foo5"))); cache 287 net/base/expiring_cache_unittest.cc cache.Put("test6", "foo6", kLater, kHeatDeath); cache 288 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test6", kLater), Pointee(StrEq("foo6"))); cache 289 net/base/expiring_cache_unittest.cc EXPECT_EQ(3U, cache.size()); cache 292 net/base/expiring_cache_unittest.cc cache.max_entries_ = 2; cache 293 net/base/expiring_cache_unittest.cc cache.Compact(kMuchLater); cache 295 net/base/expiring_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 296 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test6", kMuchLater), Pointee(StrEq("foo6"))); cache 299 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("test6", kHeatDeath)); cache 303 net/base/expiring_cache_unittest.cc cache.Put("test7", "foo7", kHeatDeath, kMuchLater); cache 304 net/base/expiring_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 305 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test7", kNow), Pointee(StrEq("foo7"))); cache 306 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test7", kLater), Pointee(StrEq("foo7"))); cache 307 net/base/expiring_cache_unittest.cc EXPECT_THAT(cache.Get("test7", kHeatDeath), Pointee(StrEq("foo7"))); cache 308 net/base/expiring_cache_unittest.cc EXPECT_FALSE(cache.Get("test7", kMuchLater)); cache 52 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::BackendImpl> cache(new disk_cache::BackendImpl( cache 54 net/disk_cache/backend_unittest.cc int rv = cache->Init(cb.callback()); cache 59 net/disk_cache/backend_unittest.cc rv = cache->CreateEntry(kExistingEntryKey, &entry, cb.callback()); cache 64 net/disk_cache/backend_unittest.cc return cache.Pass(); cache 423 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::Backend> cache; cache 424 net/disk_cache/backend_unittest.cc cache = disk_cache::MemBackendImpl::CreateBackend(0, NULL); cache 425 net/disk_cache/backend_unittest.cc ASSERT_TRUE(cache.get()); cache 426 net/disk_cache/backend_unittest.cc cache.reset(); cache 437 net/disk_cache/backend_unittest.cc &cache, cache 440 net/disk_cache/backend_unittest.cc ASSERT_TRUE(cache.get()); cache 441 net/disk_cache/backend_unittest.cc cache.reset(); cache 446 net/disk_cache/backend_unittest.cc false, NULL, NULL, &cache, cache 449 net/disk_cache/backend_unittest.cc ASSERT_TRUE(cache.get()); cache 450 net/disk_cache/backend_unittest.cc cache.reset(); cache 467 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::BackendImpl> cache(new disk_cache::BackendImpl( cache 469 net/disk_cache/backend_unittest.cc int rv = cache->Init(cb.callback()); cache 473 net/disk_cache/backend_unittest.cc cache.reset(); cache 1826 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::BackendImpl> cache(new disk_cache::BackendImpl( cache 1828 net/disk_cache/backend_unittest.cc int rv = cache->Init(cb.callback()); cache 1852 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::BackendImpl> cache = cache 1854 net/disk_cache/backend_unittest.cc ASSERT_TRUE(cache.get()); cache 1855 net/disk_cache/backend_unittest.cc cache.reset(); cache 1892 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::BackendImpl> cache = cache 1894 net/disk_cache/backend_unittest.cc ASSERT_TRUE(cache.get()); cache 1900 net/disk_cache/backend_unittest.cc cache.reset(new disk_cache::BackendImpl( cache 1902 net/disk_cache/backend_unittest.cc int rv = cache->Init(cb.callback()); cache 1904 net/disk_cache/backend_unittest.cc EXPECT_EQ(1, cache->GetEntryCount()); cache 1907 net/disk_cache/backend_unittest.cc rv = cache->OpenEntry(kExistingEntryKey, &entry, cb.callback()); cache 1928 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::BackendImpl> cache = cache 1930 net/disk_cache/backend_unittest.cc ASSERT_TRUE(cache.get()); cache 1941 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::BackendImpl> cache(new disk_cache::BackendImpl( cache 1943 net/disk_cache/backend_unittest.cc int rv = cache->Init(cb.callback()); cache 1945 net/disk_cache/backend_unittest.cc EXPECT_EQ(1, cache->GetEntryCount()); cache 1948 net/disk_cache/backend_unittest.cc rv = cache->OpenEntry(kExistingEntryKey, &entry, cb.callback()); cache 2733 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::BackendImpl> cache; cache 2734 net/disk_cache/backend_unittest.cc cache.reset(new disk_cache::BackendImpl( cache 2736 net/disk_cache/backend_unittest.cc ASSERT_TRUE(NULL != cache.get()); cache 2737 net/disk_cache/backend_unittest.cc cache->SetUnitTestMode(); cache 2738 net/disk_cache/backend_unittest.cc ASSERT_EQ(net::OK, cache->SyncInit()); cache 2748 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::BackendImpl> cache; cache 2749 net/disk_cache/backend_unittest.cc cache.reset(new disk_cache::BackendImpl( cache 2751 net/disk_cache/backend_unittest.cc ASSERT_TRUE(NULL != cache.get()); cache 2752 net/disk_cache/backend_unittest.cc cache->SetUnitTestMode(); cache 2753 net/disk_cache/backend_unittest.cc ASSERT_NE(net::OK, cache->SyncInit()); cache 2755 net/disk_cache/backend_unittest.cc ASSERT_TRUE(NULL == cache->GetTimerForTest()); cache 2900 net/disk_cache/backend_unittest.cc scoped_ptr<disk_cache::Backend> cache[kNumberOfCaches]; cache 2910 net/disk_cache/backend_unittest.cc &cache[0], cache 2920 net/disk_cache/backend_unittest.cc &cache[1], cache 2924 net/disk_cache/backend_unittest.cc ASSERT_TRUE(cache[0].get() != NULL && cache[1].get() != NULL); cache 2929 net/disk_cache/backend_unittest.cc rv = cache[i]->CreateEntry(key, &entry, cb.callback()); cache 3387 net/disk_cache/backend_unittest.cc disk_cache::BackendImpl* cache = new disk_cache::BackendImpl( cache 3389 net/disk_cache/backend_unittest.cc cache->SetUnitTestMode(); cache 3391 net/disk_cache/backend_unittest.cc int rv = cache->Init(cb.callback()); cache 3393 net/disk_cache/backend_unittest.cc delete cache; cache 42 net/disk_cache/blockfile/disk_cache_perftest.cc bool TimeWrite(int num_entries, disk_cache::Backend* cache, cache 66 net/disk_cache/blockfile/disk_cache_perftest.cc int rv = cache->CreateEntry(entry.key, &cache_entry, cb.callback()); cache 94 net/disk_cache/blockfile/disk_cache_perftest.cc bool TimeRead(int num_entries, disk_cache::Backend* cache, cache 115 net/disk_cache/blockfile/disk_cache_perftest.cc int rv = cache->OpenEntry(entries[i].key, &cache_entry, cb.callback()); cache 168 net/disk_cache/blockfile/disk_cache_perftest.cc scoped_ptr<disk_cache::Backend> cache; cache 171 net/disk_cache/blockfile/disk_cache_perftest.cc cache_thread.message_loop_proxy().get(), NULL, &cache, cb.callback()); cache 181 net/disk_cache/blockfile/disk_cache_perftest.cc EXPECT_TRUE(TimeWrite(num_entries, cache.get(), &entries)); cache 184 net/disk_cache/blockfile/disk_cache_perftest.cc cache.reset(); cache 199 net/disk_cache/blockfile/disk_cache_perftest.cc cache_thread.message_loop_proxy().get(), NULL, &cache, cb.callback()); cache 202 net/disk_cache/blockfile/disk_cache_perftest.cc EXPECT_TRUE(TimeRead(num_entries, cache.get(), entries, true)); cache 204 net/disk_cache/blockfile/disk_cache_perftest.cc EXPECT_TRUE(TimeRead(num_entries, cache.get(), entries, false)); cache 267 net/disk_cache/blockfile/index_table_v3_unittest.cc TestCacheTables cache(1024); cache 269 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.GetInitData(&init_data); cache 329 net/disk_cache/blockfile/index_table_v3_unittest.cc TestCacheTables cache(1024); cache 331 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.GetInitData(&init_data); cache 420 net/disk_cache/blockfile/index_table_v3_unittest.cc TestCacheTables cache(1024); cache 422 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.GetInitData(&init_data); cache 428 net/disk_cache/blockfile/index_table_v3_unittest.cc int timestamp1 = index.CalculateTimestamp(cache.start_time()); cache 429 net/disk_cache/blockfile/index_table_v3_unittest.cc int timestamp2 = index.CalculateTimestamp(cache.start_time() + cache 433 net/disk_cache/blockfile/index_table_v3_unittest.cc int timestamp3 = index.CalculateTimestamp(cache.start_time() + cache 437 net/disk_cache/blockfile/index_table_v3_unittest.cc int timestamp4 = index.CalculateTimestamp(cache.start_time() + cache 441 net/disk_cache/blockfile/index_table_v3_unittest.cc int timestamp5 = index.CalculateTimestamp(cache.start_time() + cache 445 net/disk_cache/blockfile/index_table_v3_unittest.cc int timestamp6 = index.CalculateTimestamp(cache.start_time() - cache 450 net/disk_cache/blockfile/index_table_v3_unittest.cc int timestamp7 = index.CalculateTimestamp(cache.start_time() - cache 452 net/disk_cache/blockfile/index_table_v3_unittest.cc int timestamp8 = index.CalculateTimestamp(cache.start_time() - cache 457 net/disk_cache/blockfile/index_table_v3_unittest.cc int timestamp9 = index.CalculateTimestamp(cache.start_time() - cache 464 net/disk_cache/blockfile/index_table_v3_unittest.cc TestCacheTables cache(1024); cache 466 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.GetInitData(&init_data); cache 471 net/disk_cache/blockfile/index_table_v3_unittest.cc base::Time time = cache.start_time(); cache 578 net/disk_cache/blockfile/index_table_v3_unittest.cc scoped_ptr<TestCacheTables> cache(new TestCacheTables(size)); cache 584 net/disk_cache/blockfile/index_table_v3_unittest.cc scoped_ptr<TestCacheTables> old_cache(cache.Pass()); cache 585 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.reset(new TestCacheTables(size)); cache 586 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.get()->CopyFrom(*old_cache.get()); cache 589 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.get()->GetInitData(&init_data); cache 619 net/disk_cache/blockfile/index_table_v3_unittest.cc scoped_ptr<TestCacheTables> cache(new TestCacheTables(size)); cache 623 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.get()->GetInitData(&init_data); cache 639 net/disk_cache/blockfile/index_table_v3_unittest.cc scoped_ptr<TestCacheTables> old_cache(cache.Pass()); cache 640 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.reset(new TestCacheTables(size * 2)); cache 641 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.get()->CopyFrom(*old_cache.get()); cache 643 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.get()->GetInitData(&init_data); cache 669 net/disk_cache/blockfile/index_table_v3_unittest.cc TestCacheTables cache(1024); cache 671 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.GetInitData(&init_data); cache 690 net/disk_cache/blockfile/index_table_v3_unittest.cc TestCacheTables cache(1024); cache 692 net/disk_cache/blockfile/index_table_v3_unittest.cc cache.GetInitData(&init_data); cache 116 net/disk_cache/blockfile/stress_cache.cc disk_cache::BackendImpl* cache = cache 120 net/disk_cache/blockfile/stress_cache.cc cache->SetMaxSize(cache_size); cache 121 net/disk_cache/blockfile/stress_cache.cc cache->SetFlags(disk_cache::kNoLoadProtection); cache 124 net/disk_cache/blockfile/stress_cache.cc int rv = cache->Init(cb.callback()); cache 131 net/disk_cache/blockfile/stress_cache.cc cache->GetEntryCount()); cache 165 net/disk_cache/blockfile/stress_cache.cc rv = cache->OpenEntry(keys[key], &entries[slot], cb.callback()); cache 167 net/disk_cache/blockfile/stress_cache.cc rv = cache->CreateEntry(keys[key], &entries[slot], cb.callback()); cache 181 net/disk_cache/blockfile/stress_cache.cc rv = cache->DoomEntry(keys[key], cb2.callback()); cache 64 net/disk_cache/disk_cache_test_util.cc scoped_ptr<disk_cache::BackendImpl> cache(new disk_cache::BackendImpl( cache 66 net/disk_cache/disk_cache_test_util.cc if (!cache.get()) cache 69 net/disk_cache/disk_cache_test_util.cc cache->SetNewEviction(); cache 70 net/disk_cache/disk_cache_test_util.cc cache->SetFlags(disk_cache::kNoRandom); cache 71 net/disk_cache/disk_cache_test_util.cc if (cache->SyncInit() != net::OK) cache 73 net/disk_cache/disk_cache_test_util.cc return cache->SelfCheck() >= 0; cache 2061 net/disk_cache/entry_unittest.cc explicit SparseTestCompletionCallback(scoped_ptr<disk_cache::Backend> cache) cache 2062 net/disk_cache/entry_unittest.cc : cache_(cache.Pass()) { cache 2099 net/disk_cache/entry_unittest.cc disk_cache::Backend* cache = cache_.get(); cache 2101 net/disk_cache/entry_unittest.cc int rv = cache->DoomEntry(key, cb.callback()); cache 46 net/disk_cache/memory/mem_backend_impl.cc scoped_ptr<MemBackendImpl> cache(new MemBackendImpl(net_log)); cache 47 net/disk_cache/memory/mem_backend_impl.cc cache->SetMaxSize(max_bytes); cache 48 net/disk_cache/memory/mem_backend_impl.cc if (cache->Init()) cache 49 net/disk_cache/memory/mem_backend_impl.cc return cache.PassAs<Backend>(); cache 30 net/dns/host_cache_unittest.cc HostCache cache(kMaxCacheEntries); cache 39 net/dns/host_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 42 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 43 net/dns/host_cache_unittest.cc cache.Set(key1, entry, now, kTTL); cache 44 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 45 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)->error == entry.error); cache 47 net/dns/host_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 53 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key2, now)); cache 54 net/dns/host_cache_unittest.cc cache.Set(key2, entry, now, kTTL); cache 55 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key2, now)); cache 56 net/dns/host_cache_unittest.cc EXPECT_EQ(2U, cache.size()); cache 62 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 63 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key2, now)); cache 64 net/dns/host_cache_unittest.cc EXPECT_NE(cache.Lookup(key1, now), cache.Lookup(key2, now)); cache 69 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 70 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key2, now)); cache 73 net/dns/host_cache_unittest.cc cache.Set(key1, entry, now, kTTL); cache 74 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 75 net/dns/host_cache_unittest.cc EXPECT_EQ(2U, cache.size()); cache 78 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 79 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key2, now)); cache 84 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 85 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key2, now)); cache 94 net/dns/host_cache_unittest.cc HostCache cache(kMaxCacheEntries); cache 103 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 104 net/dns/host_cache_unittest.cc cache.Set(key1, entry, now, kFailureEntryTTL); cache 105 net/dns/host_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 108 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 112 net/dns/host_cache_unittest.cc cache.Set(key1, entry, now, kSuccessEntryTTL); cache 113 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 114 net/dns/host_cache_unittest.cc cache.Set(key1, entry, now, kFailureEntryTTL); cache 115 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 122 net/dns/host_cache_unittest.cc HostCache cache(kMaxCacheEntries); cache 131 net/dns/host_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 134 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 135 net/dns/host_cache_unittest.cc cache.Set(key1, entry, now, kFailureEntryTTL); cache 136 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 137 net/dns/host_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 143 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key2, now)); cache 144 net/dns/host_cache_unittest.cc cache.Set(key2, entry, now, kFailureEntryTTL); cache 145 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key2, now)); cache 146 net/dns/host_cache_unittest.cc EXPECT_EQ(2U, cache.size()); cache 152 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 153 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key2, now)); cache 158 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 159 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key2, now)); cache 162 net/dns/host_cache_unittest.cc cache.Set(key1, entry, now, kFailureEntryTTL); cache 164 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 165 net/dns/host_cache_unittest.cc EXPECT_EQ(2U, cache.size()); cache 168 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 169 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key2, now)); cache 174 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 175 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key2, now)); cache 183 net/dns/host_cache_unittest.cc HostCache cache(kMaxCacheEntries); cache 192 net/dns/host_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 195 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 196 net/dns/host_cache_unittest.cc cache.Set(key1, entry, now, kSuccessEntryTTL); cache 197 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 198 net/dns/host_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 201 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key2, now)); cache 202 net/dns/host_cache_unittest.cc cache.Set(key2, entry, now, kSuccessEntryTTL); cache 203 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key2, now)); cache 204 net/dns/host_cache_unittest.cc EXPECT_EQ(2U, cache.size()); cache 208 net/dns/host_cache_unittest.cc EXPECT_NE(cache.Lookup(key1, now), cache.Lookup(key2, now)); cache 216 net/dns/host_cache_unittest.cc HostCache cache(kMaxCacheEntries); cache 228 net/dns/host_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 231 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key1, now)); cache 232 net/dns/host_cache_unittest.cc cache.Set(key1, entry, now, kTTL); cache 233 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key1, now)); cache 234 net/dns/host_cache_unittest.cc EXPECT_EQ(1U, cache.size()); cache 237 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key2, now)); cache 238 net/dns/host_cache_unittest.cc cache.Set(key2, entry, now, kTTL); cache 239 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key2, now)); cache 240 net/dns/host_cache_unittest.cc EXPECT_EQ(2U, cache.size()); cache 243 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(key3, now)); cache 244 net/dns/host_cache_unittest.cc cache.Set(key3, entry, now, kTTL); cache 245 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.Lookup(key3, now)); cache 246 net/dns/host_cache_unittest.cc EXPECT_EQ(3U, cache.size()); cache 250 net/dns/host_cache_unittest.cc EXPECT_NE(cache.Lookup(key1, now), cache.Lookup(key2, now)); cache 251 net/dns/host_cache_unittest.cc EXPECT_NE(cache.Lookup(key1, now), cache.Lookup(key3, now)); cache 252 net/dns/host_cache_unittest.cc EXPECT_NE(cache.Lookup(key2, now), cache.Lookup(key3, now)); cache 259 net/dns/host_cache_unittest.cc HostCache cache(0); cache 260 net/dns/host_cache_unittest.cc EXPECT_TRUE(cache.caching_is_disabled()); cache 268 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(Key("foobar.com"),now)); cache 269 net/dns/host_cache_unittest.cc cache.Set(Key("foobar.com"), entry, now, kTTL); cache 270 net/dns/host_cache_unittest.cc EXPECT_FALSE(cache.Lookup(Key("foobar.com"), now)); cache 272 net/dns/host_cache_unittest.cc EXPECT_EQ(0U, cache.size()); cache 278 net/dns/host_cache_unittest.cc HostCache cache(kMaxCacheEntries); cache 285 net/dns/host_cache_unittest.cc EXPECT_EQ(0u, cache.size()); cache 288 net/dns/host_cache_unittest.cc cache.Set(Key("foobar1.com"), entry, now, kTTL); cache 289 net/dns/host_cache_unittest.cc cache.Set(Key("foobar2.com"), entry, now, kTTL); cache 290 net/dns/host_cache_unittest.cc cache.Set(Key("foobar3.com"), entry, now, kTTL); cache 292 net/dns/host_cache_unittest.cc EXPECT_EQ(3u, cache.size()); cache 294 net/dns/host_cache_unittest.cc cache.clear(); cache 296 net/dns/host_cache_unittest.cc EXPECT_EQ(0u, cache.size()); cache 121 net/dns/host_resolver.cc scoped_ptr<HostCache> cache; cache 123 net/dns/host_resolver.cc cache = HostCache::CreateDefaultCache(); cache 125 net/dns/host_resolver.cc cache.Pass(), cache 1791 net/dns/host_resolver_impl.cc scoped_ptr<HostCache> cache, cache 1795 net/dns/host_resolver_impl.cc : cache_(cache.Pass()), cache 112 net/dns/host_resolver_impl.h HostResolverImpl(scoped_ptr<HostCache> cache, cache 34 net/ftp/ftp_auth_cache_unittest.cc FtpAuthCache cache; cache 40 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(origin1) == NULL); cache 43 net/ftp/ftp_auth_cache_unittest.cc cache.Add(origin1, net::AuthCredentials(kUsername1, kPassword1)); cache 44 net/ftp/ftp_auth_cache_unittest.cc FtpAuthCache::Entry* entry1 = cache.Lookup(origin1); cache 51 net/ftp/ftp_auth_cache_unittest.cc cache.Add(origin2, net::AuthCredentials(kUsername2, kPassword2)); cache 52 net/ftp/ftp_auth_cache_unittest.cc FtpAuthCache::Entry* entry2 = cache.Lookup(origin2); cache 59 net/ftp/ftp_auth_cache_unittest.cc EXPECT_EQ(entry1, cache.Lookup(origin1)); cache 62 net/ftp/ftp_auth_cache_unittest.cc cache.Add(origin1, net::AuthCredentials(kUsername3, kPassword3)); cache 63 net/ftp/ftp_auth_cache_unittest.cc FtpAuthCache::Entry* entry3 = cache.Lookup(origin1); cache 70 net/ftp/ftp_auth_cache_unittest.cc cache.Remove(origin1, net::AuthCredentials(kUsername3, kPassword3)); cache 71 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(origin1) == NULL); cache 74 net/ftp/ftp_auth_cache_unittest.cc cache.Remove(origin1, net::AuthCredentials(kUsername3, kPassword3)); cache 75 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(origin1) == NULL); cache 81 net/ftp/ftp_auth_cache_unittest.cc FtpAuthCache cache; cache 86 net/ftp/ftp_auth_cache_unittest.cc cache.Add(origin1, net::AuthCredentials(kUsername, kPassword)); cache 87 net/ftp/ftp_auth_cache_unittest.cc cache.Add(origin2, net::AuthCredentials(kUsername, kPassword)); cache 89 net/ftp/ftp_auth_cache_unittest.cc EXPECT_NE(cache.Lookup(origin1), cache.Lookup(origin2)); cache 97 net/ftp/ftp_auth_cache_unittest.cc FtpAuthCache cache; cache 100 net/ftp/ftp_auth_cache_unittest.cc cache.Add(GURL("ftp://HoSt:21"), net::AuthCredentials(kUsername, kPassword)); cache 103 net/ftp/ftp_auth_cache_unittest.cc FtpAuthCache::Entry* entry1 = cache.Lookup(GURL("ftp://HoSt:21")); cache 105 net/ftp/ftp_auth_cache_unittest.cc EXPECT_EQ(entry1, cache.Lookup(GURL("ftp://host:21"))); cache 106 net/ftp/ftp_auth_cache_unittest.cc EXPECT_EQ(entry1, cache.Lookup(GURL("ftp://host"))); cache 109 net/ftp/ftp_auth_cache_unittest.cc cache.Add(GURL("ftp://host"), net::AuthCredentials(kOthername, kOtherword)); cache 110 net/ftp/ftp_auth_cache_unittest.cc FtpAuthCache::Entry* entry2 = cache.Lookup(GURL("ftp://HoSt:21")); cache 117 net/ftp/ftp_auth_cache_unittest.cc cache.Remove(GURL("ftp://HOsT"), cache 119 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(GURL("ftp://host")) == NULL); cache 123 net/ftp/ftp_auth_cache_unittest.cc FtpAuthCache cache; cache 125 net/ftp/ftp_auth_cache_unittest.cc cache.Add(GURL("ftp://host"), net::AuthCredentials(kUsername, kPassword)); cache 126 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(GURL("ftp://host"))); cache 129 net/ftp/ftp_auth_cache_unittest.cc cache.Remove(GURL("ftp://host"), net::AuthCredentials(kBogus, kBogus)); cache 130 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(GURL("ftp://host"))); cache 133 net/ftp/ftp_auth_cache_unittest.cc cache.Remove(GURL("ftp://host"), net::AuthCredentials(kUsername, kPassword)); cache 134 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(GURL("ftp://host")) == NULL); cache 138 net/ftp/ftp_auth_cache_unittest.cc FtpAuthCache cache; cache 141 net/ftp/ftp_auth_cache_unittest.cc cache.Add(GURL("ftp://host" + base::IntToString(i)), cache 147 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(GURL("ftp://host" + base::IntToString(i)))); cache 151 net/ftp/ftp_auth_cache_unittest.cc cache.Add(GURL("ftp://last_host"), cache 153 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(GURL("ftp://host0")) == NULL); cache 157 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(GURL("ftp://host" + base::IntToString(i)))); cache 159 net/ftp/ftp_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(GURL("ftp://last_host"))); cache 59 net/http/disk_cache_based_quic_server_info_unittest.cc MockHttpCache cache(factory); cache 62 net/http/disk_cache_based_quic_server_info_unittest.cc new DiskCacheBasedQuicServerInfo(server_id, cache.http_cache())); cache 74 net/http/disk_cache_based_quic_server_info_unittest.cc MockHttpCache cache; cache 80 net/http/disk_cache_based_quic_server_info_unittest.cc new DiskCacheBasedQuicServerInfo(server_id, cache.http_cache())); cache 104 net/http/disk_cache_based_quic_server_info_unittest.cc new DiskCacheBasedQuicServerInfo(server_id, cache.http_cache())); cache 114 net/http/disk_cache_based_quic_server_info_unittest.cc cache.disk_cache()->set_double_create_check(false); cache 120 net/http/disk_cache_based_quic_server_info_unittest.cc new DiskCacheBasedQuicServerInfo(server_id, cache.http_cache())); cache 139 net/http/disk_cache_based_quic_server_info_unittest.cc MockHttpCache cache; cache 147 net/http/disk_cache_based_quic_server_info_unittest.cc new DiskCacheBasedQuicServerInfo(server_id1, cache.http_cache())); cache 171 net/http/disk_cache_based_quic_server_info_unittest.cc new DiskCacheBasedQuicServerInfo(server_id2, cache.http_cache())); cache 194 net/http/disk_cache_based_quic_server_info_unittest.cc new DiskCacheBasedQuicServerInfo(server_id1, cache.http_cache())); cache 209 net/http/disk_cache_based_quic_server_info_unittest.cc new DiskCacheBasedQuicServerInfo(server_id2, cache.http_cache())); cache 228 net/http/disk_cache_based_quic_server_info_unittest.cc MockHttpCache cache; cache 234 net/http/disk_cache_based_quic_server_info_unittest.cc new DiskCacheBasedQuicServerInfo(server_id, cache.http_cache())); cache 266 net/http/disk_cache_based_quic_server_info_unittest.cc new DiskCacheBasedQuicServerInfo(server_id, cache.http_cache())); cache 83 net/http/http_auth_cache_unittest.cc HttpAuthCache cache; cache 93 net/http/http_auth_cache_unittest.cc cache.Add(origin, realm1_handler->realm(), realm1_handler->auth_scheme(), cache 102 net/http/http_auth_cache_unittest.cc cache.Add(origin, realm2_handler->realm(), realm2_handler->auth_scheme(), cache 111 net/http/http_auth_cache_unittest.cc cache.Add( cache 123 net/http/http_auth_cache_unittest.cc cache.Add(origin, realm3_digest_handler->realm(), cache 133 net/http/http_auth_cache_unittest.cc cache.Add(origin, realm4_basic_handler->realm(), cache 140 net/http/http_auth_cache_unittest.cc entry = cache.Lookup(origin, kRealm5, HttpAuth::AUTH_SCHEME_BASIC); cache 144 net/http/http_auth_cache_unittest.cc entry = cache.Lookup(GURL("https://www.google.com"), kRealm3, cache 149 net/http/http_auth_cache_unittest.cc entry = cache.Lookup cache 154 net/http/http_auth_cache_unittest.cc entry = cache.Lookup( cache 166 net/http/http_auth_cache_unittest.cc entry = cache.Lookup( cache 178 net/http/http_auth_cache_unittest.cc entry = cache.Lookup(origin, kRealm2, HttpAuth::AUTH_SCHEME_BASIC); cache 187 net/http/http_auth_cache_unittest.cc HttpAuthCache::Entry* realm2_entry = cache.Lookup( cache 189 net/http/http_auth_cache_unittest.cc HttpAuthCache::Entry* realm4_entry = cache.Lookup( cache 196 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/foo2/index.html"); cache 198 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/foo2/foobar.html"); cache 200 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/foo2/bar/index.html"); cache 202 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/foo2/"); cache 204 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/foo2"); cache 206 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/"); cache 210 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/foo3/index.html"); cache 212 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, std::string()); cache 217 net/http/http_auth_cache_unittest.cc cache.Lookup(origin, kRealm3, HttpAuth::AUTH_SCHEME_DIGEST); cache 219 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/baz/index.html"); cache 221 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/baz/"); cache 223 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/baz"); cache 228 net/http/http_auth_cache_unittest.cc cache.Lookup(origin, kRealm3, HttpAuth::AUTH_SCHEME_DIGEST); cache 230 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/baz/index.html"); cache 232 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/baz/"); cache 234 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, "/baz"); cache 238 net/http/http_auth_cache_unittest.cc entry = cache.LookupByPath(origin, std::string()); cache 279 net/http/http_auth_cache_unittest.cc HttpAuthCache cache; cache 286 net/http/http_auth_cache_unittest.cc HttpAuthCache::Entry* orig_entry = cache.Add( cache 289 net/http/http_auth_cache_unittest.cc cache.Add(origin, handler->realm(), handler->auth_scheme(), auth_challenge, cache 291 net/http/http_auth_cache_unittest.cc cache.Add(origin, handler->realm(), handler->auth_scheme(), auth_challenge, cache 294 net/http/http_auth_cache_unittest.cc HttpAuthCache::Entry* entry = cache.Lookup( cache 325 net/http/http_auth_cache_unittest.cc HttpAuthCache cache; cache 326 net/http/http_auth_cache_unittest.cc cache.Add(origin, realm1_handler->realm(), realm1_handler->auth_scheme(), cache 328 net/http/http_auth_cache_unittest.cc cache.Add(origin, realm2_handler->realm(), realm2_handler->auth_scheme(), cache 331 net/http/http_auth_cache_unittest.cc cache.Add(origin, realm3_basic_handler->realm(), cache 334 net/http/http_auth_cache_unittest.cc cache.Add(origin, realm3_digest_handler->realm(), cache 339 net/http/http_auth_cache_unittest.cc EXPECT_FALSE(cache.Remove( cache 344 net/http/http_auth_cache_unittest.cc EXPECT_FALSE(cache.Remove(GURL("http://foobar2.com:100"), cache 350 net/http/http_auth_cache_unittest.cc EXPECT_FALSE(cache.Remove( cache 355 net/http/http_auth_cache_unittest.cc EXPECT_FALSE(cache.Remove( cache 360 net/http/http_auth_cache_unittest.cc EXPECT_FALSE(cache.Remove( cache 365 net/http/http_auth_cache_unittest.cc EXPECT_TRUE(cache.Remove( cache 370 net/http/http_auth_cache_unittest.cc EXPECT_FALSE(cache.Remove( cache 375 net/http/http_auth_cache_unittest.cc EXPECT_TRUE(cache.Remove( cache 380 net/http/http_auth_cache_unittest.cc cache.Add(origin, realm3_digest_handler->realm(), cache 383 net/http/http_auth_cache_unittest.cc EXPECT_TRUE(cache.Remove( cache 389 net/http/http_auth_cache_unittest.cc HttpAuthCache::Entry* entry = cache.Lookup( cache 395 net/http/http_auth_cache_unittest.cc HttpAuthCache cache; cache 400 net/http/http_auth_cache_unittest.cc HttpAuthCache::Entry* entry_pre = cache.Add( cache 414 net/http/http_auth_cache_unittest.cc bool update_success = cache.UpdateStaleChallenge( cache 425 net/http/http_auth_cache_unittest.cc HttpAuthCache::Entry* entry_post = cache.Lookup( cache 433 net/http/http_auth_cache_unittest.cc bool update_failure = cache.UpdateStaleChallenge( cache 1130 net/http/http_cache.cc void HttpCache::OnPendingOpComplete(const base::WeakPtr<HttpCache>& cache, cache 1133 net/http/http_cache.cc if (cache.get()) { cache 1134 net/http/http_cache.cc cache->OnIOComplete(rv, pending_op); cache 375 net/http/http_cache.h static void OnPendingOpComplete(const base::WeakPtr<HttpCache>& cache, cache 186 net/http/http_cache_transaction.cc HttpCache* cache) cache 190 net/http/http_cache_transaction.cc cache_(cache->AsWeakPtr()), cache 62 net/http/http_cache_transaction.h HttpCache* cache); cache 89 net/http/http_cache_unittest.cc explicit DeleteCacheCompletionCallback(MockHttpCache* cache) cache 90 net/http/http_cache_unittest.cc : cache_(cache), cache 122 net/http/http_cache_unittest.cc void RunTransactionTestBase(net::HttpCache* cache, cache 134 net/http/http_cache_unittest.cc int rv = cache->CreateTransaction(net::DEFAULT_PRIORITY, &trans); cache 166 net/http/http_cache_unittest.cc void RunTransactionTestWithRequest(net::HttpCache* cache, cache 170 net/http/http_cache_unittest.cc RunTransactionTestBase(cache, trans_info, request, response_info, cache 174 net/http/http_cache_unittest.cc void RunTransactionTestAndGetTiming(net::HttpCache* cache, cache 178 net/http/http_cache_unittest.cc RunTransactionTestBase(cache, trans_info, MockHttpRequest(trans_info), cache 182 net/http/http_cache_unittest.cc void RunTransactionTest(net::HttpCache* cache, cache 184 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache, trans_info, net::BoundNetLog(), NULL); cache 187 net/http/http_cache_unittest.cc void RunTransactionTestWithResponseInfo(net::HttpCache* cache, cache 190 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache, trans_info, MockHttpRequest(trans_info), cache 195 net/http/http_cache_unittest.cc net::HttpCache* cache, cache 200 net/http/http_cache_unittest.cc RunTransactionTestBase(cache, trans_info, MockHttpRequest(trans_info), cache 204 net/http/http_cache_unittest.cc void RunTransactionTestWithResponse(net::HttpCache* cache, cache 208 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache, trans_info, &response); cache 213 net/http/http_cache_unittest.cc net::HttpCache* cache, cache 219 net/http/http_cache_unittest.cc RunTransactionTestBase(cache, trans_info, MockHttpRequest(trans_info), cache 444 net/http/http_cache_unittest.cc void CreateTruncatedEntry(std::string raw_headers, MockHttpCache* cache) { cache 447 net/http/http_cache_unittest.cc ASSERT_TRUE(cache->CreateBackendEntry(kRangeGET_TransactionOK.url, &entry, cache 542 net/http/http_cache_unittest.cc MockHttpCache cache; cache 545 net/http/http_cache_unittest.cc EXPECT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 550 net/http/http_cache_unittest.cc MockHttpCache cache(net::HttpCache::DefaultBackend::InMemory(0)); cache 555 net/http/http_cache_unittest.cc int rv = cache.http_cache()->GetBackend(&backend, cb.callback()); cache 560 net/http/http_cache_unittest.cc MockHttpCache cache; cache 565 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), kSimpleGET_Transaction, cache 568 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 569 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 570 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 575 net/http/http_cache_unittest.cc MockHttpCache cache; cache 577 net/http/http_cache_unittest.cc cache.disk_cache()->set_fail_requests(); cache 583 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), kSimpleGET_Transaction, cache 606 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 607 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 608 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 617 net/http/http_cache_unittest.cc MockHttpCache cache(factory); cache 620 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 622 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 623 net/http/http_cache_unittest.cc EXPECT_FALSE(cache.http_cache()->GetCurrentBackend()); cache 628 net/http/http_cache_unittest.cc MockHttpCache cache; cache 631 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 635 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 649 net/http/http_cache_unittest.cc MockHttpCache cache; cache 651 net/http/http_cache_unittest.cc cache.disk_cache()->set_soft_failures(true); cache 654 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 656 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 657 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 658 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 661 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 663 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 664 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 665 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 671 net/http/http_cache_unittest.cc MockHttpCache cache; cache 676 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 684 net/http/http_cache_unittest.cc cache.disk_cache()->set_soft_failures(true); cache 688 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kSimpleGET_Transaction.url, &en)); cache 694 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 695 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 696 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 699 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 701 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 702 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 703 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 708 net/http/http_cache_unittest.cc MockHttpCache cache; cache 711 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 713 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 714 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 715 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 717 net/http/http_cache_unittest.cc cache.disk_cache()->set_soft_failures(true); cache 721 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 729 net/http/http_cache_unittest.cc cache.disk_cache()->set_soft_failures(false); cache 731 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 732 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 733 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 735 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 737 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 738 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 739 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.disk_cache()->create_count()); cache 743 net/http/http_cache_unittest.cc MockHttpCache cache; cache 749 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), kSimpleGET_Transaction, cache 783 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), transaction, log.bound(), cache 808 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 809 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 810 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 815 net/http/http_cache_unittest.cc MockHttpCache cache; cache 825 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 834 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.network_layer()->transaction_count()); cache 835 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 836 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 840 net/http/http_cache_unittest.cc MockHttpCache cache; cache 843 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 849 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 851 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 852 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 853 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 857 net/http/http_cache_unittest.cc MockHttpCache cache; cache 863 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 865 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 866 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 867 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 872 net/http/http_cache_unittest.cc MockHttpCache cache; cache 880 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 884 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 886 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 887 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 888 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 894 net/http/http_cache_unittest.cc MockHttpCache cache; cache 902 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 910 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), transaction, log.bound(), cache 913 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 914 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 915 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 923 net/http/http_cache_unittest.cc MockHttpCache cache; cache 931 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 932 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 933 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 941 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), transaction, cache 944 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 954 net/http/http_cache_unittest.cc MockHttpCache cache; cache 962 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 963 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 964 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 975 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 985 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 993 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1001 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 1002 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1003 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1011 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), transaction, cache 1014 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1023 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1030 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 1031 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1032 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1042 net/http/http_cache_unittest.cc int rv = cache.http_cache()->CreateTransaction(net::DEFAULT_PRIORITY, &trans); cache 1051 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1058 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1062 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), kSimpleGET_Transaction, cache 1065 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1066 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1067 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1074 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1079 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 1080 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1081 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1085 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), transaction, cache 1088 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1094 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1097 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 1107 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), transaction, log.bound(), cache 1133 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1134 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1135 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 1140 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1143 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 1149 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 1151 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1152 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1153 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 1157 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1160 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 1166 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 1168 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1169 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1170 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 1174 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1177 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 1180 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 1190 net/http/http_cache_unittest.cc cache.http_cache(), transaction, &response_info, log.bound(), cache 1193 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1194 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 1195 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1201 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1204 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 1207 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 1213 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 1215 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1216 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 1217 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1230 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1239 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 1240 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 1242 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1243 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 1244 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1250 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1253 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kETagGET_Transaction); cache 1261 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 1263 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1264 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 1265 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1270 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1281 net/http/http_cache_unittest.cc c->result = cache.CreateTransaction(&c->trans); cache 1301 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1302 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1303 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1321 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1322 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1323 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1336 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1349 net/http/http_cache_unittest.cc c->result = cache.CreateTransaction(&c->trans); cache 1366 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1367 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1368 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1406 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1407 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1408 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1421 net/http/http_cache_unittest.cc MockHttpCache cache(net::HttpCache::DefaultBackend::InMemory(1024 * 1024)); cache 1434 net/http/http_cache_unittest.cc c->result = cache.CreateTransaction(&c->trans); cache 1448 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1468 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1482 net/http/http_cache_unittest.cc c->result = cache.CreateTransaction(&c->trans); cache 1495 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1496 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1497 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1510 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 1511 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1512 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 1518 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1529 net/http/http_cache_unittest.cc c->result = cache.CreateTransaction(&c->trans); cache 1542 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1543 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1544 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1565 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1566 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1567 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 1578 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1589 net/http/http_cache_unittest.cc c->result = cache.CreateTransaction(&c->trans); cache 1599 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.network_layer()->transaction_count()); cache 1600 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1601 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1623 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1624 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1625 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 1634 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1640 net/http/http_cache_unittest.cc c->result = cache.CreateTransaction(&c->trans); cache 1649 net/http/http_cache_unittest.cc cache.disk_cache()->ReleaseAll(); cache 1653 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1658 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1670 net/http/http_cache_unittest.cc c->result = cache.CreateTransaction(&c->trans); cache 1680 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.network_layer()->transaction_count()); cache 1681 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1682 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 1693 net/http/http_cache_unittest.cc EXPECT_EQ(5, cache.network_layer()->transaction_count()); cache 1694 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1695 net/http/http_cache_unittest.cc EXPECT_EQ(5, cache.disk_cache()->create_count()); cache 1703 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1706 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 1712 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 1734 net/http/http_cache_unittest.cc scoped_ptr<MockHttpCache> cache(new MockHttpCache( cache 1746 net/http/http_cache_unittest.cc c->result = cache->CreateTransaction(&c->trans); cache 1756 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache->network_layer()->transaction_count()); cache 1757 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache->disk_cache()->open_count()); cache 1758 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache->disk_cache()->create_count()); cache 1760 net/http/http_cache_unittest.cc cache.reset(); cache 1772 net/http/http_cache_unittest.cc MockHttpCache cache(factory); cache 1785 net/http/http_cache_unittest.cc c->result = cache.CreateTransaction(&c->trans); cache 1805 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 1806 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.disk_cache()->create_count()); cache 1818 net/http/http_cache_unittest.cc MockHttpCache cache(factory); cache 1831 net/http/http_cache_unittest.cc c->result = cache.CreateTransaction(&c->trans); cache 1863 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1864 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1872 net/http/http_cache_unittest.cc scoped_ptr<MockHttpCache> cache(new MockHttpCache(factory)); cache 1877 net/http/http_cache_unittest.cc c->result = cache->CreateTransaction(&c->trans); cache 1893 net/http/http_cache_unittest.cc cache.reset(); cache 1904 net/http/http_cache_unittest.cc MockHttpCache* cache = new MockHttpCache(factory); cache 1906 net/http/http_cache_unittest.cc DeleteCacheCompletionCallback cb(cache); cache 1908 net/http/http_cache_unittest.cc int rv = cache->http_cache()->GetBackend(&backend, cb.callback()); cache 1915 net/http/http_cache_unittest.cc c->result = cache->CreateTransaction(&c->trans); cache 1922 net/http/http_cache_unittest.cc rv = cache->http_cache()->GetBackend(&backend, cb2.callback()); cache 1942 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1945 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kTypicalGET_Transaction); cache 1947 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1948 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1949 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1955 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), kTypicalGET_Transaction, cache 1958 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1959 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 1960 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1977 net/http/http_cache_unittest.cc MockHttpCache cache; cache 1982 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 1984 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 1985 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 1986 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 1994 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), transaction, log.bound(), cache 1997 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 1998 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 1999 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2050 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2062 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 2069 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), transaction, log.bound(), cache 2074 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2075 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2076 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2083 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2095 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 2103 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), transaction, log.bound(), cache 2108 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2109 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2110 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2117 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2128 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 2136 net/http/http_cache_unittest.cc RunTransactionTestAndGetTiming(cache.http_cache(), transaction, log.bound(), cache 2141 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2142 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2143 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2158 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2164 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 2166 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2167 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2168 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2173 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 2175 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2176 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2177 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2181 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2187 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 2189 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2190 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2191 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2197 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 2199 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2200 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2201 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 2217 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2222 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 2224 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2225 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2226 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2232 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 2234 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2235 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2236 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2241 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction2); cache 2243 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 2244 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2245 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 2261 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2292 net/http/http_cache_unittest.cc cache.http_cache(), request, &response_headers); cache 2295 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2296 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2297 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2308 net/http/http_cache_unittest.cc cache.http_cache(), request, &response_headers); cache 2311 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2312 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2313 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2327 net/http/http_cache_unittest.cc cache.http_cache(), request, &response_headers); cache 2330 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2331 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2332 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2346 net/http/http_cache_unittest.cc cache.http_cache(), request, &response_headers); cache 2349 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2350 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 2351 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2450 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2480 net/http/http_cache_unittest.cc cache.http_cache(), request, &response_headers); cache 2483 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2484 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2485 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 2494 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2524 net/http/http_cache_unittest.cc cache.http_cache(), request, &response_headers); cache 2527 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2528 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2529 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 2680 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2684 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), trans); cache 2686 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2687 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2688 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2696 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), trans); cache 2698 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2699 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2700 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2706 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2708 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimplePOST_Transaction); cache 2710 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2711 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2712 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 2716 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2725 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 2733 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.network_layer()->transaction_count()); cache 2734 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2735 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 2739 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2754 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, request, NULL); cache 2756 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2757 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2758 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2762 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, request, NULL); cache 2764 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2765 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2766 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2771 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2786 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, request, NULL); cache 2788 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2789 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2790 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 2795 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2805 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 2807 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2808 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2809 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2814 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req2, NULL); cache 2816 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2817 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2818 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 2823 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2830 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 2832 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2833 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2834 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2845 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req2, NULL); cache 2847 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2848 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2849 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 2851 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 2853 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 2854 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2855 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.disk_cache()->create_count()); cache 2862 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2869 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 2871 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2872 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2873 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2884 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req2, NULL); cache 2886 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2887 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2888 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2890 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 2892 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 2893 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2894 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 2904 net/http/http_cache_unittest.cc MockHttpCache cache(factory); cache 2915 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req, NULL); cache 2922 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2929 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 2931 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2932 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2933 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 2944 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req2, NULL); cache 2946 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2947 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2948 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 2950 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 2952 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 2953 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 2954 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 2960 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2973 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, request, NULL); cache 2975 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2976 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2977 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 2982 net/http/http_cache_unittest.cc MockHttpCache cache; cache 2988 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 2990 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 2991 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 2992 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3002 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req2, NULL); cache 3004 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3005 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3006 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3008 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 3010 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 3011 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3012 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 3017 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3024 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 3026 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3027 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3028 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3039 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req2, NULL); cache 3041 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3042 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3043 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3045 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 3047 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 3048 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3049 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 3055 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3062 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 3064 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3065 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3066 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3077 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req2, NULL); cache 3079 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3080 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3081 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3083 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 3085 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3086 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 3087 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3093 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3106 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, request, NULL); cache 3108 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3109 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3110 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 3115 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3121 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 3123 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3124 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3125 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3135 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req2, NULL); cache 3137 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3138 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3139 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3141 net/http/http_cache_unittest.cc RunTransactionTestWithRequest(cache.http_cache(), transaction, req1, NULL); cache 3143 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 3144 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3145 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 3150 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3156 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3158 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3159 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3160 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3165 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3167 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3168 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3169 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3172 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3174 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 3175 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3176 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 3182 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3188 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3190 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3191 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3192 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3197 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3199 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3200 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3201 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3205 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3207 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3208 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 3209 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3215 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3218 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 3219 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3227 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3228 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3234 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3237 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3242 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3248 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kRangeGET_Transaction); cache 3250 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3251 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3252 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 3256 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3258 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3259 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3260 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 3264 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3266 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 3267 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3268 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 3274 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3280 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3282 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3283 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3284 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 3290 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3292 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3293 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3294 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 3299 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3301 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 3302 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3303 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 3308 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3315 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3317 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3318 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3319 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3322 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3324 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3325 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3326 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 3332 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3338 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3340 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3341 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3342 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3349 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3357 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3360 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3361 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3362 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3365 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK, cache 3369 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3370 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3371 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 3378 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3388 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3390 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3391 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3392 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3396 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK, cache 3400 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3401 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3402 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3410 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3415 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK, cache 3419 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3420 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3421 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3424 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK, cache 3428 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3429 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3430 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3439 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3442 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3443 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 3444 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3455 net/http/http_cache_unittest.cc cache.http_cache(), transaction, &headers, log.bound(), cache 3459 net/http/http_cache_unittest.cc EXPECT_EQ(4, cache.network_layer()->transaction_count()); cache 3460 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.disk_cache()->open_count()); cache 3461 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3471 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3472 net/http/http_cache_unittest.cc cache.disk_cache()->set_fail_sparse_requests(); cache 3478 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3479 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3480 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3481 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3486 net/http/http_cache_unittest.cc int rv = cache.disk_cache()->OpenEntry(transaction.url, cache 3490 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3498 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction2, &headers); cache 3499 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3500 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 3501 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 3507 net/http/http_cache_unittest.cc rv = cache.disk_cache()->OpenEntry(transaction2.url, cache 3515 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3516 net/http/http_cache_unittest.cc cache.disk_cache()->set_fail_sparse_requests(); cache 3522 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3523 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3524 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3525 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3532 net/http/http_cache_unittest.cc int rv = cache.disk_cache()->OpenEntry(transaction.url, cache 3542 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3550 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3553 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3554 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3555 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3558 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3561 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3562 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3563 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3571 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3574 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3575 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3576 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3587 net/http/http_cache_unittest.cc cache.http_cache(), transaction, &headers, log.bound(), cache 3591 net/http/http_cache_unittest.cc EXPECT_EQ(4, cache.network_layer()->transaction_count()); cache 3592 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 3593 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3601 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3613 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3616 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3617 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3618 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3624 net/http/http_cache_unittest.cc cache.http_cache(), transaction, &headers, log.bound(), cache 3628 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3629 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3630 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3636 net/http/http_cache_unittest.cc cache.http_cache(), transaction, &headers, log.bound(), cache 3640 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3641 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3642 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3650 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3662 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3665 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3666 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3667 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3670 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3673 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3674 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3675 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3682 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3687 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK, cache 3691 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3692 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3693 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3700 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3703 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3704 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3705 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3712 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3717 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK, cache 3721 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3722 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3723 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3730 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3733 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3734 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3735 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3738 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK); cache 3739 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 3740 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3741 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 3748 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3757 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3758 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3759 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3760 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3763 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3764 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3765 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3766 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3774 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3782 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3785 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3786 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3787 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3795 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3798 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3799 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3800 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3809 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3821 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3824 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3825 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3826 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3834 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3837 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3838 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3839 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3847 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3859 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3863 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3864 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3865 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3867 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 3868 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 3875 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3883 net/http/http_cache_unittest.cc cache.http_cache(), kRangeGET_TransactionOK, &headers, log.bound(), cache 3887 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3888 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3889 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3898 net/http/http_cache_unittest.cc cache.http_cache(), transaction, &headers, log.bound(), cache 3902 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 3903 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3904 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3913 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3925 net/http/http_cache_unittest.cc cache.http_cache(), transaction, &headers, log.bound(), cache 3934 net/http/http_cache_unittest.cc cache.http_cache(), transaction, &headers, log.bound(), cache 3938 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 3939 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3940 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3949 net/http/http_cache_unittest.cc cache.http_cache(), transaction, &headers, log.bound(), cache 3953 net/http/http_cache_unittest.cc EXPECT_EQ(4, cache.network_layer()->transaction_count()); cache 3954 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 3955 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3964 net/http/http_cache_unittest.cc MockHttpCache cache; cache 3972 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 3975 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 3976 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 3977 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 3992 net/http/http_cache_unittest.cc cache.http_cache(), transaction2, &headers, log.bound(), cache 3996 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 3997 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 3998 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4002 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 4003 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 4010 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4014 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.CreateBackendEntry(kSimpleGET_Transaction.url, &entry, cache 4040 net/http/http_cache_unittest.cc cache.http_cache(), kSimpleGET_Transaction, &headers, log.bound(), cache 4048 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4049 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4050 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 4057 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4062 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.CreateBackendEntry(kRangeGET_TransactionOK.url, &entry, cache 4085 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK, cache 4090 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4091 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4092 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 4099 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4103 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.CreateBackendEntry(kSimpleGET_Transaction.url, &entry, cache 4127 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kSimpleGET_Transaction, cache 4135 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4136 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4137 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 4142 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4150 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 4151 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4152 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4153 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4163 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction2, &headers); cache 4167 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4168 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4169 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4179 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction3, &headers); cache 4180 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 4189 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction2); cache 4190 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.disk_cache()->open_count()); cache 4198 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction2, &headers); cache 4200 net/http/http_cache_unittest.cc EXPECT_EQ(4, cache.network_layer()->transaction_count()); cache 4201 net/http/http_cache_unittest.cc EXPECT_EQ(4, cache.disk_cache()->open_count()); cache 4202 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4204 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction2); cache 4205 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 4212 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4220 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 4223 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4224 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4225 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4236 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction2, &headers); cache 4242 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4243 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4244 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4252 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4257 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK, cache 4261 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4262 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4263 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4269 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 4272 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4273 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4274 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4276 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK); cache 4277 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 4278 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4285 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4291 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 4298 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4299 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4300 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4314 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &entry)); cache 4322 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4325 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK); cache 4330 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 4337 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4338 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4339 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4356 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK); cache 4358 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4359 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4360 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4367 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4370 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK); cache 4375 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 4382 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4383 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4384 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4402 net/http/http_cache_unittest.cc rv = cache.CreateTransaction(&c->trans); cache 4418 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4419 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4420 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4426 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4434 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 4441 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4442 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4443 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4447 net/http/http_cache_unittest.cc EXPECT_FALSE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &entry)); cache 4454 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4462 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 4469 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4470 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4471 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4475 net/http/http_cache_unittest.cc EXPECT_FALSE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &entry)); cache 4483 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4493 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 4496 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4497 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4498 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4505 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK, cache 4509 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4510 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4511 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4515 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &en)); cache 4530 net/http/http_cache_unittest.cc MockHttpCache cache(net::HttpCache::DefaultBackend::InMemory(1024 * 1024)); cache 4542 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 4549 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4553 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &en)); cache 4565 net/http/http_cache_unittest.cc MockHttpCache cache(factory); cache 4569 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK); cache 4570 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4577 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4586 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 4589 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4590 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4591 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->create_count()); cache 4599 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4608 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK); cache 4614 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 4616 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 4617 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4618 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4626 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4640 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 4642 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4643 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4644 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4654 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 4656 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4657 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4658 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4666 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4670 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kRangeGET_TransactionOK); cache 4671 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4672 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4673 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4683 net/http/http_cache_unittest.cc int rv = cache.http_cache()->CreateTransaction(net::DEFAULT_PRIORITY, &trans); cache 4694 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4695 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4696 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4704 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4706 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.CreateBackendEntry("http://www.google.com", &entry, cache 4756 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4761 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 4768 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4769 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4770 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4776 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 4778 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4779 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4780 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 4786 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4791 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 4798 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4799 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4800 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4812 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 4814 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4815 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4816 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 4822 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4834 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 4841 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4842 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4843 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4855 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 4857 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4858 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4859 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 4866 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4878 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 4885 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 4886 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 4887 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 4916 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kSimpleGET_Transaction.url, &entry)); cache 4928 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4939 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 4955 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kSimpleGET_Transaction.url, &entry)); cache 4967 net/http/http_cache_unittest.cc MockHttpCache cache; cache 4975 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 4983 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 4994 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 4995 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 4996 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5000 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &entry)); cache 5013 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5021 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 5035 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 5047 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5048 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5049 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5053 net/http/http_cache_unittest.cc EXPECT_FALSE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &entry)); cache 5059 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5067 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 5083 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 5091 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&pending->trans)); cache 5108 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5109 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5110 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 5118 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5127 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 5135 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 5143 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5144 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5145 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5149 net/http/http_cache_unittest.cc ASSERT_FALSE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &entry)); cache 5155 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5165 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 5175 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 5183 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5184 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5185 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5192 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5200 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 5211 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 5230 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5234 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &entry)); cache 5242 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5250 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 5259 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), transaction, &headers); cache 5261 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5262 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5263 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5267 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &entry)); cache 5281 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5289 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 5297 net/http/http_cache_unittest.cc int rv = cache.CreateTransaction(&c->trans); cache 5314 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5315 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5316 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5320 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &entry)); cache 5332 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5341 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 5345 net/http/http_cache_unittest.cc RunTransactionTestWithResponse(cache.http_cache(), kRangeGET_TransactionOK, cache 5349 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5350 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5351 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 5357 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5371 net/http/http_cache_unittest.cc TestTransactionConsumer c1(net::DEFAULT_PRIORITY, cache.http_cache()), cache 5372 net/http/http_cache_unittest.cc c2(net::DEFAULT_PRIORITY, cache.http_cache()), cache 5373 net/http/http_cache_unittest.cc c3(net::DEFAULT_PRIORITY, cache.http_cache()); cache 5395 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5401 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kETagGET_Transaction); cache 5406 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5409 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kETagGET_Transaction); cache 5413 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5425 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 5447 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5448 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 5449 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5459 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 5481 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5482 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5483 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5489 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5495 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5497 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5498 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 5499 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5502 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5504 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5505 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5506 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5509 net/http/http_cache_unittest.cc EXPECT_TRUE(cache.OpenBackendEntry(transaction.url, &entry)); cache 5516 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5522 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5524 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5525 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 5526 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5530 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5532 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5533 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5534 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5537 net/http/http_cache_unittest.cc EXPECT_TRUE(cache.OpenBackendEntry(transaction.url, &entry)); cache 5542 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5548 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5550 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5551 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 5552 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5555 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5557 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5558 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 5559 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 5562 net/http/http_cache_unittest.cc EXPECT_FALSE(cache.OpenBackendEntry(transaction.url, &entry)); cache 5569 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5574 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5576 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5577 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 5578 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5583 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5585 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5586 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5587 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5590 net/http/http_cache_unittest.cc EXPECT_FALSE(cache.OpenBackendEntry(transaction.url, &entry)); cache 5597 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5602 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5604 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5605 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 5606 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5612 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5614 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5615 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5616 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5619 net/http/http_cache_unittest.cc EXPECT_FALSE(cache.OpenBackendEntry(transaction.url, &entry)); cache 5624 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5631 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5640 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 5650 net/http/http_cache_unittest.cc MockHttpCache* cache = new MockHttpCache; cache 5653 net/http/http_cache_unittest.cc EXPECT_EQ(net::OK, cache->CreateTransaction(&trans)); cache 5655 net/http/http_cache_unittest.cc delete cache; cache 5661 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5664 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 5667 net/http/http_cache_unittest.cc cache.http_cache()->set_mode(net::HttpCache::DISABLE); cache 5672 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5674 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5675 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 5676 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5685 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5712 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), request); cache 5734 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), request, &response); cache 5755 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5759 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), kSimpleGET_Transaction, cache 5764 net/http/http_cache_unittest.cc cache.http_cache()->WriteMetadata(GURL("foo"), net::DEFAULT_PRIORITY, cache 5771 net/http/http_cache_unittest.cc cache.http_cache()->WriteMetadata(GURL(kSimpleGET_Transaction.url), cache 5783 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), kSimpleGET_Transaction, cache 5789 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5790 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 5791 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5796 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5800 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), kSimpleGET_Transaction, cache 5810 net/http/http_cache_unittest.cc cache.http_cache()->WriteMetadata(GURL(kSimpleGET_Transaction.url), cache 5819 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), kSimpleGET_Transaction, cache 5823 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5824 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 5825 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5831 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5835 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), cache 5843 net/http/http_cache_unittest.cc cache.http_cache()->WriteMetadata(GURL(kTypicalGET_Transaction.url), cache 5856 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), trans1, &response); cache 5861 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5862 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->open_count()); cache 5863 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5872 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), trans1, &response); cache 5875 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5876 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.disk_cache()->open_count()); cache 5877 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5884 net/http/http_cache_unittest.cc RunTransactionTestWithResponseInfo(cache.http_cache(), trans2, &response); cache 5887 net/http/http_cache_unittest.cc EXPECT_EQ(3, cache.network_layer()->transaction_count()); cache 5888 net/http/http_cache_unittest.cc EXPECT_EQ(4, cache.disk_cache()->open_count()); cache 5889 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5895 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5900 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 5918 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 5920 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5921 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5922 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5929 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5936 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 5949 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 5951 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.network_layer()->transaction_count()); cache 5952 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->open_count()); cache 5953 net/http/http_cache_unittest.cc EXPECT_EQ(1, cache.disk_cache()->create_count()); cache 5958 net/http/http_cache_unittest.cc MockHttpCache cache; cache 5964 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 5986 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 5988 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 5989 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 5990 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 5996 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6002 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 6027 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 6029 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 6030 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 6031 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 6036 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6045 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 6062 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 6064 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 6065 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 6066 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 6071 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6077 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 6106 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kSimpleGET_Transaction.url, &entry)); cache 6116 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6128 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 6133 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.CreateTransaction(&trans)); cache 6156 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kRangeGET_TransactionOK.url, &entry)); cache 6170 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6177 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 6181 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), kSimpleGET_Transaction); cache 6183 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.network_layer()->transaction_count()); cache 6184 net/http/http_cache_unittest.cc EXPECT_EQ(0, cache.disk_cache()->open_count()); cache 6185 net/http/http_cache_unittest.cc EXPECT_EQ(2, cache.disk_cache()->create_count()); cache 6191 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6199 net/http/http_cache_unittest.cc RunTransactionTest(cache.http_cache(), transaction); cache 6204 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.OpenBackendEntry(kSimpleGET_Transaction.url, &entry)); cache 6215 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6218 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.http_cache()->CreateTransaction(net::IDLE, &trans)); cache 6223 net/http/http_cache_unittest.cc EXPECT_FALSE(cache.network_layer()->last_transaction()); cache 6225 net/http/http_cache_unittest.cc cache.network_layer()->last_create_transaction_priority()); cache 6233 net/http/http_cache_unittest.cc EXPECT_TRUE(cache.network_layer()->last_transaction()); cache 6234 net/http/http_cache_unittest.cc if (cache.network_layer()->last_transaction()) { cache 6236 net/http/http_cache_unittest.cc cache.network_layer()->last_create_transaction_priority()); cache 6238 net/http/http_cache_unittest.cc cache.network_layer()->last_transaction()->priority()); cache 6243 net/http/http_cache_unittest.cc if (cache.network_layer()->last_transaction()) { cache 6245 net/http/http_cache_unittest.cc cache.network_layer()->last_create_transaction_priority()); cache 6247 net/http/http_cache_unittest.cc cache.network_layer()->last_transaction()->priority()); cache 6256 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6260 net/http/http_cache_unittest.cc ASSERT_EQ(net::OK, cache.http_cache()->CreateTransaction(net::IDLE, &trans)); cache 6262 net/http/http_cache_unittest.cc EXPECT_FALSE(cache.network_layer()->last_transaction()); cache 6270 net/http/http_cache_unittest.cc ASSERT_TRUE(cache.network_layer()->last_transaction()); cache 6271 net/http/http_cache_unittest.cc EXPECT_FALSE(cache.network_layer()->last_transaction()-> cache 6275 net/http/http_cache_unittest.cc cache.network_layer()->last_transaction()-> cache 6283 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6291 net/http/http_cache_unittest.cc CreateTruncatedEntry(raw_headers, &cache); cache 6302 net/http/http_cache_unittest.cc cache.http_cache()->CreateTransaction(net::MEDIUM, &trans)); cache 6304 net/http/http_cache_unittest.cc cache.network_layer()->last_create_transaction_priority()); cache 6313 net/http/http_cache_unittest.cc cache.network_layer()->last_create_transaction_priority()); cache 6321 net/http/http_cache_unittest.cc cache.network_layer()->last_create_transaction_priority()); cache 6327 net/http/http_cache_unittest.cc MockHttpCache& cache, cache 6330 net/http/http_cache_unittest.cc RunTransactionTestBase(cache.http_cache(), trans_info, cache 6342 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6345 net/http/http_cache_unittest.cc int64 received_bytes = RunTransactionAndGetReceivedBytes(cache, transaction); cache 6348 net/http/http_cache_unittest.cc received_bytes = RunTransactionAndGetReceivedBytes(cache, transaction); cache 6353 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6356 net/http/http_cache_unittest.cc int64 received_bytes = RunTransactionAndGetReceivedBytes(cache, transaction); cache 6361 net/http/http_cache_unittest.cc received_bytes = RunTransactionAndGetReceivedBytes(cache, transaction); cache 6366 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6377 net/http/http_cache_unittest.cc int64 received_bytes = RunTransactionAndGetReceivedBytes(cache, transaction); cache 6383 net/http/http_cache_unittest.cc received_bytes = RunTransactionAndGetReceivedBytes(cache, transaction); cache 6390 net/http/http_cache_unittest.cc MockHttpCache cache; cache 6395 net/http/http_cache_unittest.cc int64 received_bytes = RunTransactionAndGetReceivedBytes(cache, transaction); cache 6400 net/http/http_cache_unittest.cc received_bytes = RunTransactionAndGetReceivedBytes(cache, transaction); cache 6407 net/http/http_cache_unittest.cc received_bytes = RunTransactionAndGetReceivedBytes(cache, transaction); cache 6414 net/http/http_cache_unittest.cc received_bytes = RunTransactionAndGetReceivedBytes(cache, transaction); cache 14 net/ssl/ssl_client_auth_cache_unittest.cc SSLClientAuthCache cache; cache 34 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_FALSE(cache.Lookup(server1, &cached_cert)); cache 37 net/ssl/ssl_client_auth_cache_unittest.cc cache.Add(server1, cert1.get()); cache 39 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); cache 43 net/ssl/ssl_client_auth_cache_unittest.cc cache.Add(server2, cert2.get()); cache 45 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); cache 48 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); cache 52 net/ssl/ssl_client_auth_cache_unittest.cc cache.Add(server1, cert3.get()); cache 54 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); cache 57 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); cache 61 net/ssl/ssl_client_auth_cache_unittest.cc cache.Remove(server1); cache 63 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_FALSE(cache.Lookup(server1, &cached_cert)); cache 65 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); cache 69 net/ssl/ssl_client_auth_cache_unittest.cc cache.Remove(server1); cache 71 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_FALSE(cache.Lookup(server1, &cached_cert)); cache 73 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); cache 80 net/ssl/ssl_client_auth_cache_unittest.cc SSLClientAuthCache cache; cache 93 net/ssl/ssl_client_auth_cache_unittest.cc cache.Add(server1, cert1.get()); cache 94 net/ssl/ssl_client_auth_cache_unittest.cc cache.Add(server2, cert2.get()); cache 97 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); cache 99 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); cache 106 net/ssl/ssl_client_auth_cache_unittest.cc SSLClientAuthCache cache; cache 114 net/ssl/ssl_client_auth_cache_unittest.cc cache.Add(server1, NULL); cache 119 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); cache 123 net/ssl/ssl_client_auth_cache_unittest.cc cache.Remove(server1); cache 125 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_FALSE(cache.Lookup(server1, &cached_cert)); cache 128 net/ssl/ssl_client_auth_cache_unittest.cc cache.Add(server1, cert1.get()); cache 130 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); cache 134 net/ssl/ssl_client_auth_cache_unittest.cc cache.Add(server1, NULL); cache 136 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); cache 142 net/ssl/ssl_client_auth_cache_unittest.cc SSLClientAuthCache cache; cache 150 net/ssl/ssl_client_auth_cache_unittest.cc cache.Add(server1, cert1.get()); cache 153 net/ssl/ssl_client_auth_cache_unittest.cc cache.Add(server2, NULL); cache 158 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); cache 161 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); cache 164 net/ssl/ssl_client_auth_cache_unittest.cc cache.OnCertAdded(NULL); cache 167 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_FALSE(cache.Lookup(server1, &cached_cert)); cache 168 net/ssl/ssl_client_auth_cache_unittest.cc EXPECT_FALSE(cache.Lookup(server2, &cached_cert)); cache 11231 net/third_party/nss/ssl/ssl3con.c if (sid->cached == never_cached && !ss->opt.noCache && ss->sec.cache) { cache 11323 net/third_party/nss/ssl/ssl3con.c (*ss->sec.cache)(ss->sec.ci.sid); cache 631 net/third_party/nss/ssl/sslcon.c (*ss->sec.cache)(sid); cache 2175 net/third_party/nss/ssl/sslcon.c (*ss->sec.cache)(sid); cache 1179 net/third_party/nss/ssl/sslimpl.h sslSessionIDCacheFunc cache; /* ssl 2 & 3 */ cache 24 net/third_party/nss/ssl/sslnonce.c static sslSessionID *cache = NULL; cache 216 net/third_party/nss/ssl/sslnonce.c sidp = &cache; cache 330 net/third_party/nss/ssl/sslnonce.c sid->next = cache; cache 331 net/third_party/nss/ssl/sslnonce.c cache = sid; cache 343 net/third_party/nss/ssl/sslnonce.c sslSessionID **sidp = &cache; cache 400 net/third_party/nss/ssl/sslnonce.c sec->cache = ssl_sid_cache; cache 403 net/third_party/nss/ssl/sslnonce.c sec->cache = CacheSID; cache 413 net/third_party/nss/ssl/sslnonce.c while(cache != NULL) cache 414 net/third_party/nss/ssl/sslnonce.c UncacheSID(cache); cache 953 net/third_party/nss/ssl/sslsecur.c ss->sec.cache = os->sec.cache; cache 1478 net/third_party/nss/ssl/sslsecur.c ss->sec.cache(ss->sec.ci.sid); cache 274 net/third_party/nss/ssl/sslsnce.c static PRUint32 SIDindex(cacheDesc *cache, const PRIPv6Addr *addr, PRUint8 *s, cache 276 net/third_party/nss/ssl/sslsnce.c static SECStatus LaunchLockPoller(cacheDesc *cache); cache 277 net/third_party/nss/ssl/sslsnce.c static SECStatus StopLockPoller(cacheDesc *cache); cache 327 net/third_party/nss/ssl/sslsnce.c LockSet(cacheDesc *cache, PRUint32 set, PRUint32 now) cache 329 net/third_party/nss/ssl/sslsnce.c PRUint32 lockNum = set % cache->numSIDCacheLocks; cache 330 net/third_party/nss/ssl/sslsnce.c sidCacheLock * lock = cache->sidCacheLocks + lockNum; cache 336 net/third_party/nss/ssl/sslsnce.c UnlockSet(cacheDesc *cache, PRUint32 set) cache 338 net/third_party/nss/ssl/sslsnce.c PRUint32 lockNum = set % cache->numSIDCacheLocks; cache 339 net/third_party/nss/ssl/sslsnce.c sidCacheLock * lock = cache->sidCacheLocks + lockNum; cache 350 net/third_party/nss/ssl/sslsnce.c CacheCert(cacheDesc * cache, CERTCertificate *cert, sidCacheEntry *sce) cache 369 net/third_party/nss/ssl/sslsnce.c now = LockSidCacheLock(cache->certCacheLock, 0); cache 373 net/third_party/nss/ssl/sslsnce.c cacheDesc * sharedCache = cache->sharedCache; cache 377 net/third_party/nss/ssl/sslsnce.c cache->certCacheData[ndx] = cce; cache 384 net/third_party/nss/ssl/sslsnce.c (ndx + 1) % cache->numCertCacheEntries; cache 386 net/third_party/nss/ssl/sslsnce.c UnlockSidCacheLock(cache->certCacheLock); cache 408 net/third_party/nss/ssl/sslsnce.c CacheSrvName(cacheDesc * cache, SECItem *name, sidCacheEntry *sce) cache 432 net/third_party/nss/ssl/sslsnce.c now = LockSidCacheLock(cache->srvNameCacheLock, 0); cache 434 net/third_party/nss/ssl/sslsnce.c if (cache->numSrvNameCacheEntries > 0) { cache 436 net/third_party/nss/ssl/sslsnce.c ndx %= cache->numSrvNameCacheEntries; cache 438 net/third_party/nss/ssl/sslsnce.c cache->srvNameCacheData[ndx] = snce; cache 444 net/third_party/nss/ssl/sslsnce.c UnlockSidCacheLock(cache->srvNameCacheLock); cache 666 net/third_party/nss/ssl/sslsnce.c SIDindex(cacheDesc *cache, const PRIPv6Addr *addr, PRUint8 *s, unsigned nl) cache 679 net/third_party/nss/ssl/sslsnce.c % cache->numSIDCacheSets; cache 691 net/third_party/nss/ssl/sslsnce.c FindSID(cacheDesc *cache, PRUint32 setNum, PRUint32 now, cache 695 net/third_party/nss/ssl/sslsnce.c PRUint32 ndx = cache->sidCacheSets[setNum].next; cache 698 net/third_party/nss/ssl/sslsnce.c sidCacheEntry * set = cache->sidCacheData + cache 754 net/third_party/nss/ssl/sslsnce.c cacheDesc * cache = &globalCache; cache 762 net/third_party/nss/ssl/sslsnce.c set = SIDindex(cache, addr, sessionID, sessionIDLength); cache 763 net/third_party/nss/ssl/sslsnce.c now = LockSet(cache, set, 0); cache 767 net/third_party/nss/ssl/sslsnce.c psce = FindSID(cache, set, now, addr, sessionID, sessionIDLength); cache 772 net/third_party/nss/ssl/sslsnce.c PRUint32 gotLock = LockSidCacheLock(cache->certCacheLock, now); cache 774 net/third_party/nss/ssl/sslsnce.c pcce = &cache->certCacheData[cndx]; cache 789 net/third_party/nss/ssl/sslsnce.c UnlockSidCacheLock(cache->certCacheLock); cache 800 net/third_party/nss/ssl/sslsnce.c PRUint32 gotLock = LockSidCacheLock(cache->srvNameCacheLock, cache 803 net/third_party/nss/ssl/sslsnce.c psnce = &cache->srvNameCacheData[cndx]; cache 816 net/third_party/nss/ssl/sslsnce.c UnlockSidCacheLock(cache->srvNameCacheLock); cache 833 net/third_party/nss/ssl/sslsnce.c UnlockSet(cache, set); cache 852 net/third_party/nss/ssl/sslsnce.c cacheDesc * cache = &globalCache; cache 869 net/third_party/nss/ssl/sslsnce.c sid->expirationTime = sid->creationTime + cache->ssl2Timeout; cache 886 net/third_party/nss/ssl/sslsnce.c sid->expirationTime = sid->creationTime + cache->ssl3Timeout; cache 901 net/third_party/nss/ssl/sslsnce.c now = CacheSrvName(cache, name, &sce); cache 904 net/third_party/nss/ssl/sslsnce.c now = CacheCert(cache, sid->peerCert, &sce); cache 908 net/third_party/nss/ssl/sslsnce.c set = SIDindex(cache, &sce.addr, sce.sessionID, sce.sessionIDLength); cache 909 net/third_party/nss/ssl/sslsnce.c now = LockSet(cache, set, now); cache 911 net/third_party/nss/ssl/sslsnce.c PRUint32 next = cache->sidCacheSets[set].next; cache 915 net/third_party/nss/ssl/sslsnce.c cache->sidCacheData[ndx] = sce; cache 917 net/third_party/nss/ssl/sslsnce.c cache->sidCacheSets[set].next = cache 920 net/third_party/nss/ssl/sslsnce.c UnlockSet(cache, set); cache 933 net/third_party/nss/ssl/sslsnce.c cacheDesc * cache = &globalCache; cache 972 net/third_party/nss/ssl/sslsnce.c set = SIDindex(cache, &sid->addr, sessionID, sessionIDLength); cache 973 net/third_party/nss/ssl/sslsnce.c now = LockSet(cache, set, 0); cache 975 net/third_party/nss/ssl/sslsnce.c psce = FindSID(cache, set, now, &sid->addr, sessionID, sessionIDLength); cache 979 net/third_party/nss/ssl/sslsnce.c UnlockSet(cache, set); cache 1000 net/third_party/nss/ssl/sslsnce.c CloseCache(cacheDesc *cache) cache 1002 net/third_party/nss/ssl/sslsnce.c int locks_initialized = cache->numSIDCacheLocksInitialized; cache 1004 net/third_party/nss/ssl/sslsnce.c if (cache->cacheMem) { cache 1005 net/third_party/nss/ssl/sslsnce.c if (cache->sharedCache) { cache 1006 net/third_party/nss/ssl/sslsnce.c sidCacheLock *pLock = cache->sidCacheLocks; cache 1014 net/third_party/nss/ssl/sslsnce.c cache->sharedCache->everInherited); cache 1017 net/third_party/nss/ssl/sslsnce.c if (cache->shared) { cache 1018 net/third_party/nss/ssl/sslsnce.c PR_MemUnmap(cache->cacheMem, cache->cacheMemSize); cache 1020 net/third_party/nss/ssl/sslsnce.c PORT_Free(cache->cacheMem); cache 1022 net/third_party/nss/ssl/sslsnce.c cache->cacheMem = NULL; cache 1024 net/third_party/nss/ssl/sslsnce.c if (cache->cacheMemMap) { cache 1025 net/third_party/nss/ssl/sslsnce.c PR_CloseFileMap(cache->cacheMemMap); cache 1026 net/third_party/nss/ssl/sslsnce.c cache->cacheMemMap = NULL; cache 1028 net/third_party/nss/ssl/sslsnce.c memset(cache, 0, sizeof *cache); cache 1032 net/third_party/nss/ssl/sslsnce.c InitCache(cacheDesc *cache, int maxCacheEntries, int maxCertCacheEntries, cache 1045 net/third_party/nss/ssl/sslsnce.c if ( (!cache) || (maxCacheEntries < 0) || (!directory) ) { cache 1050 net/third_party/nss/ssl/sslsnce.c if (cache->cacheMem) { cache 1056 net/third_party/nss/ssl/sslsnce.c cache->shared = shared; cache 1057 net/third_party/nss/ssl/sslsnce.c cache->cacheMem = cacheMem = NULL; cache 1058 net/third_party/nss/ssl/sslsnce.c cache->cacheMemMap = cacheMemMap = NULL; cache 1059 net/third_party/nss/ssl/sslsnce.c cache->sharedCache = (cacheDesc *)0; cache 1061 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheLocksInitialized = 0; cache 1062 net/third_party/nss/ssl/sslsnce.c cache->nextCertCacheEntry = 0; cache 1063 net/third_party/nss/ssl/sslsnce.c cache->stopPolling = PR_FALSE; cache 1064 net/third_party/nss/ssl/sslsnce.c cache->everInherited = PR_FALSE; cache 1065 net/third_party/nss/ssl/sslsnce.c cache->poller = NULL; cache 1066 net/third_party/nss/ssl/sslsnce.c cache->mutexTimeout = 0; cache 1068 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheEntries = maxCacheEntries ? maxCacheEntries cache 1070 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheSets = cache 1071 net/third_party/nss/ssl/sslsnce.c SID_HOWMANY(cache->numSIDCacheEntries, SID_CACHE_ENTRIES_PER_SET); cache 1073 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheEntries = cache 1074 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheSets * SID_CACHE_ENTRIES_PER_SET; cache 1076 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheLocks = cache 1077 net/third_party/nss/ssl/sslsnce.c PR_MIN(cache->numSIDCacheSets, ssl_max_sid_cache_locks); cache 1079 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheSetsPerLock = cache 1080 net/third_party/nss/ssl/sslsnce.c SID_HOWMANY(cache->numSIDCacheSets, cache->numSIDCacheLocks); cache 1082 net/third_party/nss/ssl/sslsnce.c cache->numCertCacheEntries = (maxCertCacheEntries > 0) ? cache 1084 net/third_party/nss/ssl/sslsnce.c cache->numSrvNameCacheEntries = (maxSrvNameCacheEntries >= 0) ? cache 1089 net/third_party/nss/ssl/sslsnce.c cache->cacheMem = (char *)ptr; cache 1092 net/third_party/nss/ssl/sslsnce.c cache->sidCacheLocks = (sidCacheLock *)ptr; cache 1093 net/third_party/nss/ssl/sslsnce.c cache->keyCacheLock = cache->sidCacheLocks + cache->numSIDCacheLocks; cache 1094 net/third_party/nss/ssl/sslsnce.c cache->certCacheLock = cache->keyCacheLock + 1; cache 1095 net/third_party/nss/ssl/sslsnce.c cache->srvNameCacheLock = cache->certCacheLock + 1; cache 1096 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)(cache->srvNameCacheLock + 1); cache 1099 net/third_party/nss/ssl/sslsnce.c cache->sidCacheSets = (sidCacheSet *)ptr; cache 1100 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)(cache->sidCacheSets + cache->numSIDCacheSets); cache 1103 net/third_party/nss/ssl/sslsnce.c cache->sidCacheData = (sidCacheEntry *)ptr; cache 1104 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)(cache->sidCacheData + cache->numSIDCacheEntries); cache 1107 net/third_party/nss/ssl/sslsnce.c cache->certCacheData = (certCacheEntry *)ptr; cache 1108 net/third_party/nss/ssl/sslsnce.c cache->sidCacheSize = cache 1109 net/third_party/nss/ssl/sslsnce.c (char *)cache->certCacheData - (char *)cache->sidCacheData; cache 1111 net/third_party/nss/ssl/sslsnce.c if (cache->numCertCacheEntries < MIN_CERT_CACHE_ENTRIES) { cache 1113 net/third_party/nss/ssl/sslsnce.c cache->numCertCacheEntries = cache->sidCacheSize / sizeof(certCacheEntry); cache 1114 net/third_party/nss/ssl/sslsnce.c if (cache->numCertCacheEntries < MIN_CERT_CACHE_ENTRIES) cache 1115 net/third_party/nss/ssl/sslsnce.c cache->numCertCacheEntries = MIN_CERT_CACHE_ENTRIES; cache 1117 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)(cache->certCacheData + cache->numCertCacheEntries); cache 1120 net/third_party/nss/ssl/sslsnce.c cache->keyCacheData = (SSLWrappedSymWrappingKey *)ptr; cache 1121 net/third_party/nss/ssl/sslsnce.c cache->certCacheSize = cache 1122 net/third_party/nss/ssl/sslsnce.c (char *)cache->keyCacheData - (char *)cache->certCacheData; cache 1124 net/third_party/nss/ssl/sslsnce.c cache->numKeyCacheEntries = kt_kea_size * SSL_NUM_WRAP_MECHS; cache 1125 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)(cache->keyCacheData + cache->numKeyCacheEntries); cache 1128 net/third_party/nss/ssl/sslsnce.c cache->keyCacheSize = (char *)ptr - (char *)cache->keyCacheData; cache 1130 net/third_party/nss/ssl/sslsnce.c cache->ticketKeyNameSuffix = (PRUint8 *)ptr; cache 1131 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)(cache->ticketKeyNameSuffix + cache 1135 net/third_party/nss/ssl/sslsnce.c cache->ticketEncKey = (encKeyCacheEntry *)ptr; cache 1136 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)(cache->ticketEncKey + 1); cache 1139 net/third_party/nss/ssl/sslsnce.c cache->ticketMacKey = (encKeyCacheEntry *)ptr; cache 1140 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)(cache->ticketMacKey + 1); cache 1143 net/third_party/nss/ssl/sslsnce.c cache->ticketKeysValid = (PRUint32 *)ptr; cache 1144 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)(cache->ticketKeysValid + 1); cache 1147 net/third_party/nss/ssl/sslsnce.c cache->srvNameCacheData = (srvNameCacheEntry *)ptr; cache 1148 net/third_party/nss/ssl/sslsnce.c cache->srvNameCacheSize = cache 1149 net/third_party/nss/ssl/sslsnce.c cache->numSrvNameCacheEntries * sizeof(srvNameCacheEntry); cache 1150 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)(cache->srvNameCacheData + cache->numSrvNameCacheEntries); cache 1153 net/third_party/nss/ssl/sslsnce.c cache->cacheMemSize = ptr; cache 1162 net/third_party/nss/ssl/sslsnce.c cache->ssl2Timeout = ssl2_timeout; cache 1164 net/third_party/nss/ssl/sslsnce.c cache->ssl2Timeout = DEF_SSL2_TIMEOUT; cache 1174 net/third_party/nss/ssl/sslsnce.c cache->ssl3Timeout = ssl3_timeout; cache 1176 net/third_party/nss/ssl/sslsnce.c cache->ssl3Timeout = DEF_SSL3_TIMEOUT; cache 1201 net/third_party/nss/ssl/sslsnce.c cacheMemMap = PR_OpenAnonFileMap(cfn, cache->cacheMemSize, cache 1209 net/third_party/nss/ssl/sslsnce.c cacheMem = PR_MemMap(cacheMemMap, 0, cache->cacheMemSize); cache 1211 net/third_party/nss/ssl/sslsnce.c cacheMem = PORT_Alloc(cache->cacheMemSize); cache 1219 net/third_party/nss/ssl/sslsnce.c memset(cacheMem, 0, cache->cacheMemSize); cache 1222 net/third_party/nss/ssl/sslsnce.c memcpy(cacheMem, cache, sizeof *cache); cache 1225 net/third_party/nss/ssl/sslsnce.c cache->cacheMemMap = cacheMemMap; cache 1226 net/third_party/nss/ssl/sslsnce.c cache->cacheMem = cacheMem; cache 1227 net/third_party/nss/ssl/sslsnce.c cache->sharedCache = (cacheDesc *)cacheMem; cache 1232 net/third_party/nss/ssl/sslsnce.c ptr = (ptrdiff_t)cache->cacheMem; cache 1233 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->sidCacheLocks) += ptr; cache 1234 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->keyCacheLock ) += ptr; cache 1235 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->certCacheLock) += ptr; cache 1236 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->srvNameCacheLock) += ptr; cache 1237 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->sidCacheSets ) += ptr; cache 1238 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->sidCacheData ) += ptr; cache 1239 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->certCacheData) += ptr; cache 1240 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->keyCacheData ) += ptr; cache 1241 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->ticketKeyNameSuffix) += ptr; cache 1242 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->ticketEncKey ) += ptr; cache 1243 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->ticketMacKey ) += ptr; cache 1244 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->ticketKeysValid) += ptr; cache 1245 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->srvNameCacheData) += ptr; cache 1249 net/third_party/nss/ssl/sslsnce.c pLock = cache->sidCacheLocks; cache 1250 net/third_party/nss/ssl/sslsnce.c for (locks_to_initialize = cache->numSIDCacheLocks + 3; cache 1256 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheLocksInitialized = locks_initialized; cache 1262 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheLocksInitialized = locks_initialized; cache 1267 net/third_party/nss/ssl/sslsnce.c CloseCache(cache); cache 1296 net/third_party/nss/ssl/sslsnce.c ssl_ConfigServerSessionIDCacheInstanceWithOpt(cacheDesc *cache, cache 1320 net/third_party/nss/ssl/sslsnce.c rv = InitCache(cache, maxCacheEntries, maxCertCacheEntries, cache 1335 net/third_party/nss/ssl/sslsnce.c SSL_ConfigServerSessionIDCacheInstance( cacheDesc *cache, cache 1341 net/third_party/nss/ssl/sslsnce.c return ssl_ConfigServerSessionIDCacheInstanceWithOpt(cache, cache 1362 net/third_party/nss/ssl/sslsnce.c SSL_ShutdownServerSessionIDCacheInstance(cacheDesc *cache) cache 1364 net/third_party/nss/ssl/sslsnce.c CloseCache(cache); cache 1392 net/third_party/nss/ssl/sslsnce.c cacheDesc * cache = &globalCache; cache 1401 net/third_party/nss/ssl/sslsnce.c result = ssl_ConfigServerSessionIDCacheInstanceWithOpt(cache, cache 1407 net/third_party/nss/ssl/sslsnce.c prStatus = PR_ExportFileMapAsString(cache->cacheMemMap, cache 1414 net/third_party/nss/ssl/sslsnce.c inherit.cacheMemSize = cache->cacheMemSize; cache 1438 net/third_party/nss/ssl/sslsnce.c LaunchLockPoller(cache); cache 1482 net/third_party/nss/ssl/sslsnce.c SSL_InheritMPServerSIDCacheInstance(cacheDesc *cache, const char * envString) cache 1509 net/third_party/nss/ssl/sslsnce.c if (cache && cache->sharedCache) { cache 1510 net/third_party/nss/ssl/sslsnce.c cache->sharedCache->everInherited = PR_TRUE; cache 1552 net/third_party/nss/ssl/sslsnce.c memset(cache, 0, sizeof *cache); cache 1553 net/third_party/nss/ssl/sslsnce.c cache->cacheMemSize = inherit.cacheMemSize; cache 1556 net/third_party/nss/ssl/sslsnce.c cache->cacheMemMap = PR_ImportFileMapFromString(fmString); cache 1557 net/third_party/nss/ssl/sslsnce.c if(! cache->cacheMemMap) { cache 1560 net/third_party/nss/ssl/sslsnce.c cache->cacheMem = PR_MemMap(cache->cacheMemMap, 0, cache->cacheMemSize); cache 1561 net/third_party/nss/ssl/sslsnce.c if (! cache->cacheMem) { cache 1564 net/third_party/nss/ssl/sslsnce.c cache->sharedCache = (cacheDesc *)cache->cacheMem; cache 1566 net/third_party/nss/ssl/sslsnce.c if (cache->sharedCache->cacheMemSize != cache->cacheMemSize) { cache 1578 net/third_party/nss/ssl/sslsnce.c my = *cache; /* save values computed above. */ cache 1579 net/third_party/nss/ssl/sslsnce.c memcpy(cache, cache->sharedCache, sizeof *cache); /* overwrite */ cache 1585 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->sidCacheLocks) += ptr; cache 1586 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->keyCacheLock ) += ptr; cache 1587 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->certCacheLock) += ptr; cache 1588 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->srvNameCacheLock) += ptr; cache 1589 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->sidCacheSets ) += ptr; cache 1590 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->sidCacheData ) += ptr; cache 1591 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->certCacheData) += ptr; cache 1592 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->keyCacheData ) += ptr; cache 1593 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->ticketKeyNameSuffix) += ptr; cache 1594 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->ticketEncKey ) += ptr; cache 1595 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->ticketMacKey ) += ptr; cache 1596 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->ticketKeysValid) += ptr; cache 1597 net/third_party/nss/ssl/sslsnce.c *(ptrdiff_t *)(&cache->srvNameCacheData) += ptr; cache 1599 net/third_party/nss/ssl/sslsnce.c cache->cacheMemMap = my.cacheMemMap; cache 1600 net/third_party/nss/ssl/sslsnce.c cache->cacheMem = my.cacheMem; cache 1601 net/third_party/nss/ssl/sslsnce.c cache->sharedCache = (cacheDesc *)cache->cacheMem; cache 1619 net/third_party/nss/ssl/sslsnce.c locks_to_initialize = cache->numSIDCacheLocks + 3; cache 1624 net/third_party/nss/ssl/sslsnce.c memcpy(newLocks, cache->sidCacheLocks, cache 1626 net/third_party/nss/ssl/sslsnce.c cache->sidCacheLocks = newLocks; cache 1633 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheLocksInitialized = locks_initialized; cache 1637 net/third_party/nss/ssl/sslsnce.c cache->numSIDCacheLocksInitialized = locks_initialized; cache 1640 net/third_party/nss/ssl/sslsnce.c cache->keyCacheLock = cache->sidCacheLocks + cache->numSIDCacheLocks; cache 1641 net/third_party/nss/ssl/sslsnce.c cache->certCacheLock = cache->keyCacheLock + 1; cache 1642 net/third_party/nss/ssl/sslsnce.c cache->srvNameCacheLock = cache->certCacheLock + 1; cache 1649 net/third_party/nss/ssl/sslsnce.c cache->sharedCache->everInherited = PR_TRUE; cache 1658 net/third_party/nss/ssl/sslsnce.c CloseCache(cache); cache 1675 net/third_party/nss/ssl/sslsnce.c cacheDesc * cache = (cacheDesc *)arg; cache 1676 net/third_party/nss/ssl/sslsnce.c cacheDesc * sharedCache = cache->sharedCache; cache 1682 net/third_party/nss/ssl/sslsnce.c int locks_to_poll = cache->numSIDCacheLocks + 2; cache 1683 net/third_party/nss/ssl/sslsnce.c PRUint32 expiration = cache->mutexTimeout; cache 1693 net/third_party/nss/ssl/sslsnce.c for (pLock = cache->sidCacheLocks, locks_polled = 0; cache 1723 net/third_party/nss/ssl/sslsnce.c LaunchLockPoller(cacheDesc *cache) cache 1728 net/third_party/nss/ssl/sslsnce.c cache->mutexTimeout = SID_LOCK_EXPIRATION_TIMEOUT; cache 1735 net/third_party/nss/ssl/sslsnce.c cache->mutexTimeout = (PRUint32)newTime; cache 1740 net/third_party/nss/ssl/sslsnce.c PR_CreateThread(PR_USER_THREAD, LockPoller, cache, PR_PRIORITY_NORMAL, cache 1745 net/third_party/nss/ssl/sslsnce.c cache->poller = pollerThread; cache 1751 net/third_party/nss/ssl/sslsnce.c StopLockPoller(cacheDesc *cache) cache 1753 net/third_party/nss/ssl/sslsnce.c if (!cache->poller) { cache 1756 net/third_party/nss/ssl/sslsnce.c cache->sharedCache->stopPolling = PR_TRUE; cache 1757 net/third_party/nss/ssl/sslsnce.c if (PR_Interrupt(cache->poller) != PR_SUCCESS) { cache 1760 net/third_party/nss/ssl/sslsnce.c if (PR_JoinThread(cache->poller) != PR_SUCCESS) { cache 1763 net/third_party/nss/ssl/sslsnce.c cache->poller = NULL; cache 1779 net/third_party/nss/ssl/sslsnce.c cacheDesc * cache, cache 1783 net/third_party/nss/ssl/sslsnce.c SSLWrappedSymWrappingKey * pwswk = cache->keyCacheData + ndx; cache 1787 net/third_party/nss/ssl/sslsnce.c if (!cache->cacheMem) { /* cache is uninitialized */ cache 1792 net/third_party/nss/ssl/sslsnce.c lockTime = now = LockSidCacheLock(cache->keyCacheLock, now); cache 1804 net/third_party/nss/ssl/sslsnce.c UnlockSidCacheLock(cache->keyCacheLock); cache 1860 net/third_party/nss/ssl/sslsnce.c cacheDesc *cache = &globalCache; cache 1864 net/third_party/nss/ssl/sslsnce.c if (!cache->cacheMem) { cache 1868 net/third_party/nss/ssl/sslsnce.c ticketKeyNameSuffix = cache->ticketKeyNameSuffix; cache 1915 net/third_party/nss/ssl/sslsnce.c cacheDesc *cache = &globalCache; cache 1921 net/third_party/nss/ssl/sslsnce.c if (cache->cacheMem) { cache 1923 net/third_party/nss/ssl/sslsnce.c if (!WrapTicketKey(svrPubKey, aesKeyTmp, "enc key", cache->ticketEncKey)) cache 1925 net/third_party/nss/ssl/sslsnce.c if (!WrapTicketKey(svrPubKey, macKeyTmp, "mac key", cache->ticketMacKey)) cache 1947 net/third_party/nss/ssl/sslsnce.c cacheDesc *cache = &globalCache; cache 1949 net/third_party/nss/ssl/sslsnce.c wrappedKey.data = cache->ticketEncKey->bytes; cache 1950 net/third_party/nss/ssl/sslsnce.c wrappedKey.len = cache->ticketEncKey->length; cache 1951 net/third_party/nss/ssl/sslsnce.c PORT_Assert(wrappedKey.len <= sizeof(cache->ticketEncKey->bytes)); cache 1955 net/third_party/nss/ssl/sslsnce.c wrappedKey.data = cache->ticketMacKey->bytes; cache 1956 net/third_party/nss/ssl/sslsnce.c wrappedKey.len = cache->ticketMacKey->length; cache 1957 net/third_party/nss/ssl/sslsnce.c PORT_Assert(wrappedKey.len <= sizeof(cache->ticketMacKey->bytes)); cache 1969 net/third_party/nss/ssl/sslsnce.c PORT_Memcpy(keyName, cache->ticketKeyNameSuffix, cache 1992 net/third_party/nss/ssl/sslsnce.c cacheDesc *cache = &globalCache; cache 1994 net/third_party/nss/ssl/sslsnce.c if (!cache->cacheMem) { cache 2000 net/third_party/nss/ssl/sslsnce.c now = LockSidCacheLock(cache->keyCacheLock, now); cache 2004 net/third_party/nss/ssl/sslsnce.c if (!*(cache->ticketKeysValid)) { cache 2010 net/third_party/nss/ssl/sslsnce.c *(cache->ticketKeysValid) = 1; cache 2016 net/third_party/nss/ssl/sslsnce.c UnlockSidCacheLock(cache->keyCacheLock); cache 2028 net/third_party/nss/ssl/sslsnce.c cacheDesc *cache = &globalCache; cache 2034 net/third_party/nss/ssl/sslsnce.c if (!cache->cacheMem) { /* cache is uninitialized */ cache 2042 net/third_party/nss/ssl/sslsnce.c ticketKeyNameSuffix = cache->ticketKeyNameSuffix; cache 2043 net/third_party/nss/ssl/sslsnce.c ticketEncKeyPtr = cache->ticketEncKey->bytes; cache 2044 net/third_party/nss/ssl/sslsnce.c ticketMacKeyPtr = cache->ticketMacKey->bytes; cache 2049 net/third_party/nss/ssl/sslsnce.c now = LockSidCacheLock(cache->keyCacheLock, now); cache 2055 net/third_party/nss/ssl/sslsnce.c if (!cacheIsEnabled || !*(cache->ticketKeysValid)) { cache 2066 net/third_party/nss/ssl/sslsnce.c *(cache->ticketKeysValid) = 1; cache 2074 net/third_party/nss/ssl/sslsnce.c UnlockSidCacheLock(cache->keyCacheLock); cache 2097 net/third_party/nss/ssl/sslsnce.c cacheDesc * cache = &globalCache; cache 2106 net/third_party/nss/ssl/sslsnce.c if (!cache->cacheMem) { /* cache is uninitialized */ cache 2122 net/third_party/nss/ssl/sslsnce.c now = LockSidCacheLock(cache->keyCacheLock, now); cache 2125 net/third_party/nss/ssl/sslsnce.c &myWswk, cache, now); cache 2131 net/third_party/nss/ssl/sslsnce.c cache->keyCacheData[ndx] = *wswk; cache 2133 net/third_party/nss/ssl/sslsnce.c UnlockSidCacheLock(cache->keyCacheLock); cache 130 net/tools/crash_cache/crash_cache.cc void FlushQueue(disk_cache::Backend* cache) { cache 133 net/tools/crash_cache/crash_cache.cc reinterpret_cast<disk_cache::BackendImpl*>(cache)->FlushQueueForTest( cache 140 net/tools/crash_cache/crash_cache.cc disk_cache::Backend** cache, cache 149 net/tools/crash_cache/crash_cache.cc *cache = backend; cache 150 net/tools/crash_cache/crash_cache.cc return (cb->GetResult(rv) == net::OK && !(*cache)->GetEntryCount()); cache 157 net/tools/crash_cache/crash_cache.cc disk_cache::Backend* cache; cache 158 net/tools/crash_cache/crash_cache.cc if (!CreateCache(path, cache_thread, &cache, &cb)) cache 169 net/tools/crash_cache/crash_cache.cc int rv = cache->CreateEntry(test_name, &entry, cb.callback()); cache 174 net/tools/crash_cache/crash_cache.cc FlushQueue(cache); cache 180 net/tools/crash_cache/crash_cache.cc rv = cache->CreateEntry(test_name, &entry, cb.callback()); cache 194 net/tools/crash_cache/crash_cache.cc disk_cache::Backend* cache; cache 195 net/tools/crash_cache/crash_cache.cc if (!CreateCache(path, cache_thread, &cache, &cb)) cache 199 net/tools/crash_cache/crash_cache.cc int rv = cache->CreateEntry(kCrashEntryName, &entry, cb.callback()); cache 204 net/tools/crash_cache/crash_cache.cc FlushQueue(cache); cache 207 net/tools/crash_cache/crash_cache.cc rv = cache->CreateEntry("some other key", &entry, cb.callback()); cache 212 net/tools/crash_cache/crash_cache.cc FlushQueue(cache); cache 215 net/tools/crash_cache/crash_cache.cc rv = cache->OpenEntry(kCrashEntryName, &entry, cb.callback()); cache 222 net/tools/crash_cache/crash_cache.cc FlushQueue(cache); cache 233 net/tools/crash_cache/crash_cache.cc disk_cache::Backend* cache; cache 234 net/tools/crash_cache/crash_cache.cc if (!CreateCache(path, cache_thread, &cache, &cb)) cache 238 net/tools/crash_cache/crash_cache.cc int rv = cache->CreateEntry("some other key", &entry, cb.callback()); cache 243 net/tools/crash_cache/crash_cache.cc FlushQueue(cache); cache 244 net/tools/crash_cache/crash_cache.cc rv = cache->CreateEntry(kCrashEntryName, &entry, cb.callback()); cache 249 net/tools/crash_cache/crash_cache.cc FlushQueue(cache); cache 251 net/tools/crash_cache/crash_cache.cc rv = cache->OpenEntry(kCrashEntryName, &entry, cb.callback()); cache 258 net/tools/crash_cache/crash_cache.cc FlushQueue(cache); cache 269 net/tools/crash_cache/crash_cache.cc disk_cache::BackendImpl* cache = new disk_cache::BackendImpl( cache 271 net/tools/crash_cache/crash_cache.cc if (!cache->SetMaxSize(0x100000)) cache 275 net/tools/crash_cache/crash_cache.cc cache->SetFlags(disk_cache::kNoRandom); cache 277 net/tools/crash_cache/crash_cache.cc int rv = cache->Init(cb.callback()); cache 278 net/tools/crash_cache/crash_cache.cc if (cb.GetResult(rv) != net::OK || cache->GetEntryCount()) cache 287 net/tools/crash_cache/crash_cache.cc rv = cache->CreateEntry(key, &entry, cb.callback()); cache 291 net/tools/crash_cache/crash_cache.cc FlushQueue(cache); cache 293 net/tools/crash_cache/crash_cache.cc rv = cache->CreateEntry(kCrashEntryName, &entry, cb.callback()); cache 297 net/tools/crash_cache/crash_cache.cc FlushQueue(cache); cache 304 net/tools/crash_cache/crash_cache.cc rv = cache->CreateEntry(kCrashEntryName, &entry, cb.callback()); cache 309 net/tools/crash_cache/crash_cache.cc rv = cache->OpenEntry(kCrashEntryName, &entry, cb.callback()); cache 317 net/tools/crash_cache/crash_cache.cc FlushQueue(cache); cache 17 net/tools/dump_cache/cache_dumper.cc CacheDumper::CacheDumper(disk_cache::Backend* cache) cache 18 net/tools/dump_cache/cache_dumper.cc : cache_(cache) { cache 48 net/tools/dump_cache/cache_dumper.h explicit CacheDumper(disk_cache::Backend* cache); cache 322 net/tools/dump_cache/upgrade_win.cc scoped_ptr<disk_cache::Backend> cache; cache 328 net/tools/dump_cache/upgrade_win.cc NULL, &cache, cb.callback()); cache 333 net/tools/dump_cache/upgrade_win.cc cache_ = cache.Pass(); cache 597 net/tools/dump_cache/upgrade_win.cc scoped_ptr<disk_cache::Backend> cache; cache 603 net/tools/dump_cache/upgrade_win.cc NULL, &cache, cb.callback()); cache 608 net/tools/dump_cache/upgrade_win.cc cache_.reset(reinterpret_cast<disk_cache::BackendImpl*>(cache.release())); cache 64 net/tools/quic/quic_in_memory_cache_test.cc QuicInMemoryCache* cache = QuicInMemoryCache::GetInstance(); cache 66 net/tools/quic/quic_in_memory_cache_test.cc cache->GetResponse(request_headers); cache 75 net/tools/quic/quic_in_memory_cache_test.cc cache->AddResponse(request_headers, response_headers, body); cache 85 net/tools/quic/quic_in_memory_cache_test.cc QuicInMemoryCache* cache = QuicInMemoryCache::GetInstance(); cache 87 net/tools/quic/quic_in_memory_cache_test.cc cache->GetResponse(request_headers); cache 93 net/tools/quic/quic_in_memory_cache_test.cc response = cache->GetResponse(request_headers); cache 98 net/tools/quic/quic_spdy_server_stream_test.cc QuicInMemoryCache* cache = QuicInMemoryCache::GetInstance(); cache 114 net/tools/quic/quic_spdy_server_stream_test.cc cache->GetResponse(request_headers); cache 124 net/tools/quic/quic_spdy_server_stream_test.cc cache->AddResponse(request_headers, response_headers, body); cache 6952 net/url_request/url_request_unittest.cc scoped_ptr<net::HttpCache> cache(new net::HttpCache( cache 6956 net/url_request/url_request_unittest.cc default_context_.set_http_transaction_factory(cache.get()); cache 70 net/url_request/view_cache_helper_unittest.cc void WriteToEntry(disk_cache::Backend* cache, const std::string& key, cache 75 net/url_request/view_cache_helper_unittest.cc int rv = cache->CreateEntry(key, &entry, cb.callback()); cache 78 net/url_request/view_cache_helper_unittest.cc rv = cache->OpenEntry(key, &entry, cb.callback()); cache 91 net/url_request/view_cache_helper_unittest.cc disk_cache::Backend* cache; cache 94 net/url_request/view_cache_helper_unittest.cc &cache, cb.callback()); cache 98 net/url_request/view_cache_helper_unittest.cc WriteToEntry(cache, "first", "some", empty, empty); cache 99 net/url_request/view_cache_helper_unittest.cc WriteToEntry(cache, "second", "only hex_dumped", "same", "kind"); cache 100 net/url_request/view_cache_helper_unittest.cc WriteToEntry(cache, "third", empty, "another", "thing"); cache 187 net/url_request/view_cache_helper_unittest.cc disk_cache::Backend* cache; cache 190 net/url_request/view_cache_helper_unittest.cc &cache, cb.callback()); cache 195 net/url_request/view_cache_helper_unittest.cc rv = cache->CreateEntry(key, &entry, cb.callback()); cache 105 ppapi/proxy/flash_resource.cc LocalTimeZoneOffsetCache& cache = g_local_time_zone_offset_cache.Get(); cache 112 ppapi/proxy/flash_resource.cc LocalTimeZoneOffsetCache::iterator iter = cache.Get(t_minute_base); cache 114 ppapi/proxy/flash_resource.cc if (iter != cache.end() && now < iter->second.expiration) cache 144 ppapi/proxy/flash_resource.cc cache.Put(t_minute_base, cache_entry); cache 212 sync/android/java/src/org/chromium/sync/notifier/SyncStatusHelper.java CachedAccountSyncSettings cache = new CachedAccountSyncSettings( cache 214 sync/android/java/src/org/chromium/sync/notifier/SyncStatusHelper.java sSyncStatusHelper = new SyncStatusHelper(context, contentResolverDelegate, cache); cache 352 third_party/libxml/src/include/libxml/xpath.h void *cache; cache 236 third_party/libxml/src/runsuite.c if (ctxtXPath->cache != NULL) cache 568 third_party/libxml/src/xpath.c void *cache; cache 762 third_party/libxml/src/xpath.c comp->steps[comp->nbStep].cache = NULL; cache 817 third_party/libxml/src/xpath.c #define XP_HAS_CACHE(c) ((c != NULL) && ((c)->cache != NULL)) cache 1355 third_party/libxml/src/xpath.c if (ctxt->cache != NULL) { cache 1356 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = cache 1357 third_party/libxml/src/xpath.c (xmlXPathContextCachePtr) ctxt->cache; cache 1359 third_party/libxml/src/xpath.c cache->dbgCachedAll = 0; cache 1360 third_party/libxml/src/xpath.c cache->dbgCachedNodeset = 0; cache 1361 third_party/libxml/src/xpath.c cache->dbgCachedString = 0; cache 1362 third_party/libxml/src/xpath.c cache->dbgCachedBool = 0; cache 1363 third_party/libxml/src/xpath.c cache->dbgCachedNumber = 0; cache 1364 third_party/libxml/src/xpath.c cache->dbgCachedPoint = 0; cache 1365 third_party/libxml/src/xpath.c cache->dbgCachedRange = 0; cache 1366 third_party/libxml/src/xpath.c cache->dbgCachedLocset = 0; cache 1367 third_party/libxml/src/xpath.c cache->dbgCachedUsers = 0; cache 1368 third_party/libxml/src/xpath.c cache->dbgCachedXSLTTree = 0; cache 1369 third_party/libxml/src/xpath.c cache->dbgCachedUndefined = 0; cache 1371 third_party/libxml/src/xpath.c cache->dbgReusedAll = 0; cache 1372 third_party/libxml/src/xpath.c cache->dbgReusedNodeset = 0; cache 1373 third_party/libxml/src/xpath.c cache->dbgReusedString = 0; cache 1374 third_party/libxml/src/xpath.c cache->dbgReusedBool = 0; cache 1375 third_party/libxml/src/xpath.c cache->dbgReusedNumber = 0; cache 1376 third_party/libxml/src/xpath.c cache->dbgReusedPoint = 0; cache 1377 third_party/libxml/src/xpath.c cache->dbgReusedRange = 0; cache 1378 third_party/libxml/src/xpath.c cache->dbgReusedLocset = 0; cache 1379 third_party/libxml/src/xpath.c cache->dbgReusedUsers = 0; cache 1380 third_party/libxml/src/xpath.c cache->dbgReusedXSLTTree = 0; cache 1381 third_party/libxml/src/xpath.c cache->dbgReusedUndefined = 0; cache 1430 third_party/libxml/src/xpath.c if (ctxt->cache != NULL) { cache 1431 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = cache 1432 third_party/libxml/src/xpath.c (xmlXPathContextCachePtr) ctxt->cache; cache 1436 third_party/libxml/src/xpath.c cache->dbgReusedAll++; cache 1439 third_party/libxml/src/xpath.c cache->dbgReusedUndefined++; cache 1442 third_party/libxml/src/xpath.c cache->dbgReusedNodeset++; cache 1445 third_party/libxml/src/xpath.c cache->dbgReusedBool++; cache 1448 third_party/libxml/src/xpath.c cache->dbgReusedNumber++; cache 1451 third_party/libxml/src/xpath.c cache->dbgReusedString++; cache 1454 third_party/libxml/src/xpath.c cache->dbgReusedPoint++; cache 1457 third_party/libxml/src/xpath.c cache->dbgReusedRange++; cache 1460 third_party/libxml/src/xpath.c cache->dbgReusedLocset++; cache 1463 third_party/libxml/src/xpath.c cache->dbgReusedUsers++; cache 1466 third_party/libxml/src/xpath.c cache->dbgReusedXSLTTree++; cache 1584 third_party/libxml/src/xpath.c if (ctxt->cache != NULL) { cache 1585 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = cache 1586 third_party/libxml/src/xpath.c (xmlXPathContextCachePtr) ctxt->cache; cache 1590 third_party/libxml/src/xpath.c cache->dbgCachedAll++; cache 1593 third_party/libxml/src/xpath.c cache->dbgCachedUndefined++; cache 1596 third_party/libxml/src/xpath.c cache->dbgCachedNodeset++; cache 1599 third_party/libxml/src/xpath.c cache->dbgCachedBool++; cache 1602 third_party/libxml/src/xpath.c cache->dbgCachedNumber++; cache 1605 third_party/libxml/src/xpath.c cache->dbgCachedString++; cache 1608 third_party/libxml/src/xpath.c cache->dbgCachedPoint++; cache 1611 third_party/libxml/src/xpath.c cache->dbgCachedRange++; cache 1614 third_party/libxml/src/xpath.c cache->dbgCachedLocset++; cache 1617 third_party/libxml/src/xpath.c cache->dbgCachedUsers++; cache 1620 third_party/libxml/src/xpath.c cache->dbgCachedXSLTTree++; cache 1688 third_party/libxml/src/xpath.c if (ctxt->cache != NULL) { cache 1689 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = cache 1690 third_party/libxml/src/xpath.c (xmlXPathContextCachePtr) ctxt->cache; cache 1692 third_party/libxml/src/xpath.c reAll = cache->dbgReusedAll; cache 1694 third_party/libxml/src/xpath.c reNodeset = cache->dbgReusedNodeset; cache 1696 third_party/libxml/src/xpath.c reString = cache->dbgReusedString; cache 1698 third_party/libxml/src/xpath.c reBool = cache->dbgReusedBool; cache 1700 third_party/libxml/src/xpath.c reNumber = cache->dbgReusedNumber; cache 1702 third_party/libxml/src/xpath.c reXSLTTree = cache->dbgReusedXSLTTree; cache 1704 third_party/libxml/src/xpath.c reUndefined = cache->dbgReusedUndefined; cache 1707 third_party/libxml/src/xpath.c caAll = cache->dbgCachedAll; cache 1708 third_party/libxml/src/xpath.c caBool = cache->dbgCachedBool; cache 1709 third_party/libxml/src/xpath.c caNodeset = cache->dbgCachedNodeset; cache 1710 third_party/libxml/src/xpath.c caString = cache->dbgCachedString; cache 1711 third_party/libxml/src/xpath.c caNumber = cache->dbgCachedNumber; cache 1712 third_party/libxml/src/xpath.c caXSLTTree = cache->dbgCachedXSLTTree; cache 1713 third_party/libxml/src/xpath.c caUndefined = cache->dbgCachedUndefined; cache 1715 third_party/libxml/src/xpath.c if (cache->nodesetObjs) cache 1716 third_party/libxml/src/xpath.c leftObjs -= cache->nodesetObjs->number; cache 1717 third_party/libxml/src/xpath.c if (cache->stringObjs) cache 1718 third_party/libxml/src/xpath.c leftObjs -= cache->stringObjs->number; cache 1719 third_party/libxml/src/xpath.c if (cache->booleanObjs) cache 1720 third_party/libxml/src/xpath.c leftObjs -= cache->booleanObjs->number; cache 1721 third_party/libxml/src/xpath.c if (cache->numberObjs) cache 1722 third_party/libxml/src/xpath.c leftObjs -= cache->numberObjs->number; cache 1723 third_party/libxml/src/xpath.c if (cache->miscObjs) cache 1724 third_party/libxml/src/xpath.c leftObjs -= cache->miscObjs->number; cache 1838 third_party/libxml/src/xpath.c xmlXPathFreeCache(xmlXPathContextCachePtr cache) cache 1840 third_party/libxml/src/xpath.c if (cache == NULL) cache 1842 third_party/libxml/src/xpath.c if (cache->nodesetObjs) cache 1843 third_party/libxml/src/xpath.c xmlXPathCacheFreeObjectList(cache->nodesetObjs); cache 1844 third_party/libxml/src/xpath.c if (cache->stringObjs) cache 1845 third_party/libxml/src/xpath.c xmlXPathCacheFreeObjectList(cache->stringObjs); cache 1846 third_party/libxml/src/xpath.c if (cache->booleanObjs) cache 1847 third_party/libxml/src/xpath.c xmlXPathCacheFreeObjectList(cache->booleanObjs); cache 1848 third_party/libxml/src/xpath.c if (cache->numberObjs) cache 1849 third_party/libxml/src/xpath.c xmlXPathCacheFreeObjectList(cache->numberObjs); cache 1850 third_party/libxml/src/xpath.c if (cache->miscObjs) cache 1851 third_party/libxml/src/xpath.c xmlXPathCacheFreeObjectList(cache->miscObjs); cache 1852 third_party/libxml/src/xpath.c xmlFree(cache); cache 1886 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache; cache 1888 third_party/libxml/src/xpath.c if (ctxt->cache == NULL) { cache 1889 third_party/libxml/src/xpath.c ctxt->cache = xmlXPathNewCache(); cache 1890 third_party/libxml/src/xpath.c if (ctxt->cache == NULL) cache 1893 third_party/libxml/src/xpath.c cache = (xmlXPathContextCachePtr) ctxt->cache; cache 1897 third_party/libxml/src/xpath.c cache->maxNodeset = value; cache 1898 third_party/libxml/src/xpath.c cache->maxString = value; cache 1899 third_party/libxml/src/xpath.c cache->maxNumber = value; cache 1900 third_party/libxml/src/xpath.c cache->maxBoolean = value; cache 1901 third_party/libxml/src/xpath.c cache->maxMisc = value; cache 1903 third_party/libxml/src/xpath.c } else if (ctxt->cache != NULL) { cache 1904 third_party/libxml/src/xpath.c xmlXPathFreeCache((xmlXPathContextCachePtr) ctxt->cache); cache 1905 third_party/libxml/src/xpath.c ctxt->cache = NULL; cache 1923 third_party/libxml/src/xpath.c if ((ctxt != NULL) && (ctxt->cache != NULL)) { cache 1924 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = cache 1925 third_party/libxml/src/xpath.c (xmlXPathContextCachePtr) ctxt->cache; cache 1927 third_party/libxml/src/xpath.c if ((cache->miscObjs != NULL) && cache 1928 third_party/libxml/src/xpath.c (cache->miscObjs->number != 0)) cache 1933 third_party/libxml/src/xpath.c cache->miscObjs->items[--cache->miscObjs->number]; cache 1960 third_party/libxml/src/xpath.c if ((ctxt != NULL) && (ctxt->cache != NULL)) { cache 1961 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = (xmlXPathContextCachePtr) ctxt->cache; cache 1963 third_party/libxml/src/xpath.c if ((cache->stringObjs != NULL) && cache 1964 third_party/libxml/src/xpath.c (cache->stringObjs->number != 0)) cache 1970 third_party/libxml/src/xpath.c cache->stringObjs->items[--cache->stringObjs->number]; cache 1977 third_party/libxml/src/xpath.c } else if ((cache->miscObjs != NULL) && cache 1978 third_party/libxml/src/xpath.c (cache->miscObjs->number != 0)) cache 1985 third_party/libxml/src/xpath.c cache->miscObjs->items[--cache->miscObjs->number]; cache 2012 third_party/libxml/src/xpath.c if ((ctxt != NULL) && (ctxt->cache)) { cache 2013 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = (xmlXPathContextCachePtr) ctxt->cache; cache 2015 third_party/libxml/src/xpath.c if ((cache->nodesetObjs != NULL) && cache 2016 third_party/libxml/src/xpath.c (cache->nodesetObjs->number != 0)) cache 2023 third_party/libxml/src/xpath.c cache->nodesetObjs->items[--cache->nodesetObjs->number]; cache 2040 third_party/libxml/src/xpath.c } else if ((cache->miscObjs != NULL) && cache 2041 third_party/libxml/src/xpath.c (cache->miscObjs->number != 0)) cache 2049 third_party/libxml/src/xpath.c cache->miscObjs->items[--cache->miscObjs->number]; cache 2076 third_party/libxml/src/xpath.c if ((ctxt != NULL) && (ctxt->cache)) { cache 2077 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = (xmlXPathContextCachePtr) ctxt->cache; cache 2079 third_party/libxml/src/xpath.c if ((cache->stringObjs != NULL) && cache 2080 third_party/libxml/src/xpath.c (cache->stringObjs->number != 0)) cache 2085 third_party/libxml/src/xpath.c cache->stringObjs->items[--cache->stringObjs->number]; cache 2093 third_party/libxml/src/xpath.c } else if ((cache->miscObjs != NULL) && cache 2094 third_party/libxml/src/xpath.c (cache->miscObjs->number != 0)) cache 2099 third_party/libxml/src/xpath.c cache->miscObjs->items[--cache->miscObjs->number]; cache 2125 third_party/libxml/src/xpath.c if ((ctxt != NULL) && (ctxt->cache)) { cache 2126 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = (xmlXPathContextCachePtr) ctxt->cache; cache 2128 third_party/libxml/src/xpath.c if ((cache->stringObjs != NULL) && cache 2129 third_party/libxml/src/xpath.c (cache->stringObjs->number != 0)) cache 2134 third_party/libxml/src/xpath.c cache->stringObjs->items[--cache->stringObjs->number]; cache 2144 third_party/libxml/src/xpath.c } else if ((cache->miscObjs != NULL) && cache 2145 third_party/libxml/src/xpath.c (cache->miscObjs->number != 0)) cache 2150 third_party/libxml/src/xpath.c cache->miscObjs->items[--cache->miscObjs->number]; cache 2179 third_party/libxml/src/xpath.c if ((ctxt != NULL) && (ctxt->cache)) { cache 2180 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = (xmlXPathContextCachePtr) ctxt->cache; cache 2182 third_party/libxml/src/xpath.c if ((cache->booleanObjs != NULL) && cache 2183 third_party/libxml/src/xpath.c (cache->booleanObjs->number != 0)) cache 2188 third_party/libxml/src/xpath.c cache->booleanObjs->items[--cache->booleanObjs->number]; cache 2195 third_party/libxml/src/xpath.c } else if ((cache->miscObjs != NULL) && cache 2196 third_party/libxml/src/xpath.c (cache->miscObjs->number != 0)) cache 2201 third_party/libxml/src/xpath.c cache->miscObjs->items[--cache->miscObjs->number]; cache 2227 third_party/libxml/src/xpath.c if ((ctxt != NULL) && (ctxt->cache)) { cache 2228 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = (xmlXPathContextCachePtr) ctxt->cache; cache 2230 third_party/libxml/src/xpath.c if ((cache->numberObjs != NULL) && cache 2231 third_party/libxml/src/xpath.c (cache->numberObjs->number != 0)) cache 2236 third_party/libxml/src/xpath.c cache->numberObjs->items[--cache->numberObjs->number]; cache 2243 third_party/libxml/src/xpath.c } else if ((cache->miscObjs != NULL) && cache 2244 third_party/libxml/src/xpath.c (cache->miscObjs->number != 0)) cache 2249 third_party/libxml/src/xpath.c cache->miscObjs->items[--cache->miscObjs->number]; cache 5413 third_party/libxml/src/xpath.c if ((ctxt == NULL) || (ctxt->cache == NULL)) { cache 5416 third_party/libxml/src/xpath.c xmlXPathContextCachePtr cache = cache 5417 third_party/libxml/src/xpath.c (xmlXPathContextCachePtr) ctxt->cache; cache 5433 third_party/libxml/src/xpath.c (XP_CACHE_WANTS(cache->nodesetObjs, cache 5434 third_party/libxml/src/xpath.c cache->maxNodeset))) cache 5436 third_party/libxml/src/xpath.c XP_CACHE_ADD(cache->nodesetObjs, obj); cache 5448 third_party/libxml/src/xpath.c if (XP_CACHE_WANTS(cache->stringObjs, cache->maxString)) { cache 5449 third_party/libxml/src/xpath.c XP_CACHE_ADD(cache->stringObjs, obj); cache 5454 third_party/libxml/src/xpath.c if (XP_CACHE_WANTS(cache->booleanObjs, cache->maxBoolean)) { cache 5455 third_party/libxml/src/xpath.c XP_CACHE_ADD(cache->booleanObjs, obj); cache 5460 third_party/libxml/src/xpath.c if (XP_CACHE_WANTS(cache->numberObjs, cache->maxNumber)) { cache 5461 third_party/libxml/src/xpath.c XP_CACHE_ADD(cache->numberObjs, obj); cache 5479 third_party/libxml/src/xpath.c if (XP_CACHE_WANTS(cache->miscObjs, cache->maxMisc)) { cache 5480 third_party/libxml/src/xpath.c XP_CACHE_ADD(cache->miscObjs, obj); cache 6044 third_party/libxml/src/xpath.c if (ctxt->cache != NULL) cache 6045 third_party/libxml/src/xpath.c xmlXPathFreeCache((xmlXPathContextCachePtr) ctxt->cache); cache 13388 third_party/libxml/src/xpath.c if (op->cache != NULL) cache 13389 third_party/libxml/src/xpath.c XML_CAST_FPTR(func) = op->cache; cache 13415 third_party/libxml/src/xpath.c op->cache = XML_CAST_FPTR(func); cache 367 third_party/libxslt/libxslt/transform.c xsltTransformCacheFree(xsltTransformCachePtr cache) cache 369 third_party/libxslt/libxslt/transform.c if (cache == NULL) cache 374 third_party/libxslt/libxslt/transform.c if (cache->RVT) { cache 375 third_party/libxslt/libxslt/transform.c xmlDocPtr tmp, cur = cache->RVT; cache 392 third_party/libxslt/libxslt/transform.c if (cache->stackItems) { cache 393 third_party/libxslt/libxslt/transform.c xsltStackElemPtr tmp, cur = cache->stackItems; cache 404 third_party/libxslt/libxslt/transform.c xmlFree(cache); cache 432 third_party/libxslt/libxslt/transform.c cur->cache = xsltTransformCacheCreate(); cache 433 third_party/libxslt/libxslt/transform.c if (cur->cache == NULL) cache 603 third_party/libxslt/libxslt/transform.c xsltTransformCacheFree(ctxt->cache); cache 6203 third_party/libxslt/libxslt/transform.c printf("# Reused tree fragments: %d\n", ctxt->cache->dbgReusedRVTs); cache 6204 third_party/libxslt/libxslt/transform.c printf("# Reused variables : %d\n", ctxt->cache->dbgReusedVars); cache 6218 third_party/libxslt/libxslt/transform.c printf("# Reused tree fragments: %d\n", ctxt->cache->dbgReusedRVTs); cache 6219 third_party/libxslt/libxslt/transform.c printf("# Reused variables : %d\n", ctxt->cache->dbgReusedVars); cache 79 third_party/libxslt/libxslt/variables.c if (ctxt->cache->RVT) { cache 80 third_party/libxslt/libxslt/variables.c container = ctxt->cache->RVT; cache 81 third_party/libxslt/libxslt/variables.c ctxt->cache->RVT = (xmlDocPtr) container->next; cache 85 third_party/libxslt/libxslt/variables.c if (ctxt->cache->nbRVT > 0) cache 86 third_party/libxslt/libxslt/variables.c ctxt->cache->nbRVT--; cache 88 third_party/libxslt/libxslt/variables.c ctxt->cache->dbgReusedRVTs++; cache 324 third_party/libxslt/libxslt/variables.c if (ctxt && (ctxt->cache->nbRVT < 40)) { cache 357 third_party/libxslt/libxslt/variables.c RVT->next = (xmlNodePtr) ctxt->cache->RVT; cache 358 third_party/libxslt/libxslt/variables.c ctxt->cache->RVT = RVT; cache 360 third_party/libxslt/libxslt/variables.c ctxt->cache->nbRVT++; cache 363 third_party/libxslt/libxslt/variables.c ctxt->cache->dbgCachedRVTs++; cache 480 third_party/libxslt/libxslt/variables.c if (ctxt && ctxt->cache->stackItems) { cache 481 third_party/libxslt/libxslt/variables.c ret = ctxt->cache->stackItems; cache 482 third_party/libxslt/libxslt/variables.c ctxt->cache->stackItems = ret->next; cache 484 third_party/libxslt/libxslt/variables.c ctxt->cache->nbStackItems--; cache 486 third_party/libxslt/libxslt/variables.c ctxt->cache->dbgReusedVars++; cache 578 third_party/libxslt/libxslt/variables.c if (elem->context && (elem->context->cache->nbStackItems < 50)) { cache 585 third_party/libxslt/libxslt/variables.c elem->next = ctxt->cache->stackItems; cache 586 third_party/libxslt/libxslt/variables.c ctxt->cache->stackItems = elem; cache 587 third_party/libxslt/libxslt/variables.c ctxt->cache->nbStackItems++; cache 589 third_party/libxslt/libxslt/variables.c ctxt->cache->dbgCachedVars++; cache 1770 third_party/libxslt/libxslt/xsltInternals.h xsltTransformCachePtr cache; cache 224 third_party/lzma_sdk/LzmaEnc.c Byte cache; cache 489 third_party/lzma_sdk/LzmaEnc.c p->cache = 0; cache 513 third_party/lzma_sdk/LzmaEnc.c Byte temp = p->cache; cache 524 third_party/lzma_sdk/LzmaEnc.c p->cache = (Byte)((UInt32)p->low >> 24); cache 129 third_party/tcmalloc/chromium/src/base/vdso_support.h static long InitAndGetCPU(unsigned *cpu, void *cache, // NOLINT 'long'. cache 131 third_party/tcmalloc/chromium/src/base/vdso_support.h static long GetCPUViaSyscall(unsigned *cpu, void *cache, // NOLINT 'long'. cache 133 third_party/tcmalloc/chromium/src/base/vdso_support.h typedef long (*GetCpuFn)(unsigned *cpu, void *cache, // NOLINT 'long'. cache 41 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc PackedCache<32, uint32> cache(0); cache 42 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(0, 1), 0); cache 43 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc cache.Put(0, 17); cache 44 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc CHECK(cache.Has(0)); cache 45 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(0, 1), 17); cache 46 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc cache.Put(19, 99); cache 47 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc CHECK(cache.Has(0) && cache.Has(19)); cache 48 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(0, 1), 17); cache 49 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(19, 1), 99); cache 51 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc cache.Put(1 << kHashbits, 22); cache 52 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc CHECK(!cache.Has(0)); cache 53 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(0, 1), 1); cache 54 third_party/tcmalloc/chromium/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(1 << kHashbits, 1), 22); cache 129 third_party/tcmalloc/vendor/src/base/vdso_support.h static long InitAndGetCPU(unsigned *cpu, void *cache, // NOLINT 'long'. cache 131 third_party/tcmalloc/vendor/src/base/vdso_support.h static long GetCPUViaSyscall(unsigned *cpu, void *cache, // NOLINT 'long'. cache 133 third_party/tcmalloc/vendor/src/base/vdso_support.h typedef long (*GetCpuFn)(unsigned *cpu, void *cache, // NOLINT 'long'. cache 41 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc PackedCache<32, uint32> cache(0); cache 42 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(0, 1), 0); cache 43 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc cache.Put(0, 17); cache 44 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc CHECK(cache.Has(0)); cache 45 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(0, 1), 17); cache 46 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc cache.Put(19, 99); cache 47 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc CHECK(cache.Has(0) && cache.Has(19)); cache 48 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(0, 1), 17); cache 49 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(19, 1), 99); cache 51 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc cache.Put(1 << kHashbits, 22); cache 52 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc CHECK(!cache.Has(0)); cache 53 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(0, 1), 1); cache 54 third_party/tcmalloc/vendor/src/tests/packed-cache_test.cc CHECK_EQ(cache.GetOrDefault(1 << kHashbits, 1), 22); cache 207 tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp CheckFinalizerVisitor(RecordCache* cache) cache 208 tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp : blacklist_context_(false), cache_(cache) {} cache 11 tools/clang/blink_gc_plugin/RecordInfo.cpp RecordInfo::RecordInfo(CXXRecordDecl* record, RecordCache* cache) cache 12 tools/clang/blink_gc_plugin/RecordInfo.cpp : cache_(cache), cache 106 tools/clang/blink_gc_plugin/RecordInfo.h RecordInfo(clang::CXXRecordDecl* record, RecordCache* cache); cache 93 webkit/browser/appcache/appcache.h bool IsNewerThan(AppCache* cache) const { cache 96 webkit/browser/appcache/appcache.h if (update_time_ > cache->update_time_) cache 100 webkit/browser/appcache/appcache.h if (update_time_ == cache->update_time_) cache 101 webkit/browser/appcache/appcache.h return cache_id_ > cache->cache_id_; cache 112 webkit/browser/appcache/appcache_group.cc void AppCacheGroup::RemoveCache(AppCache* cache) { cache 113 webkit/browser/appcache/appcache_group.cc DCHECK(cache->associated_hosts().empty()); cache 114 webkit/browser/appcache/appcache_group.cc if (cache == newest_complete_cache_) { cache 122 webkit/browser/appcache/appcache_group.cc std::find(old_caches_.begin(), old_caches_.end(), cache); cache 68 webkit/browser/appcache/appcache_group.h void RemoveCache(AppCache* cache); cache 21 webkit/browser/appcache/appcache_host.cc void FillCacheInfo(const AppCache* cache, cache 27 webkit/browser/appcache/appcache_host.cc if (!cache) cache 30 webkit/browser/appcache/appcache_host.cc info->cache_id = cache->cache_id(); cache 32 webkit/browser/appcache/appcache_host.cc if (!cache->is_complete()) cache 35 webkit/browser/appcache/appcache_host.cc DCHECK(cache->owning_group()); cache 37 webkit/browser/appcache/appcache_host.cc info->group_id = cache->owning_group()->group_id(); cache 38 webkit/browser/appcache/appcache_host.cc info->last_update_time = cache->update_time(); cache 39 webkit/browser/appcache/appcache_host.cc info->creation_time = cache->owning_group()->creation_time(); cache 40 webkit/browser/appcache/appcache_host.cc info->size = cache->cache_size(); cache 317 webkit/browser/appcache/appcache_host.cc AppCache* cache = associated_cache(); cache 318 webkit/browser/appcache/appcache_host.cc if (!cache) cache 323 webkit/browser/appcache/appcache_host.cc if (!cache->owning_group()) cache 326 webkit/browser/appcache/appcache_host.cc if (cache->owning_group()->is_obsolete()) cache 328 webkit/browser/appcache/appcache_host.cc if (cache->owning_group()->update_status() == AppCacheGroup::CHECKING) cache 330 webkit/browser/appcache/appcache_host.cc if (cache->owning_group()->update_status() == AppCacheGroup::DOWNLOADING) cache 356 webkit/browser/appcache/appcache_host.cc void AppCacheHost::OnCacheLoaded(AppCache* cache, int64 cache_id) { cache 359 webkit/browser/appcache/appcache_host.cc main_resource_cache_ = cache; cache 362 webkit/browser/appcache/appcache_host.cc FinishCacheSelection(cache, NULL); cache 367 webkit/browser/appcache/appcache_host.cc AppCache *cache, AppCacheGroup* group) { cache 371 webkit/browser/appcache/appcache_host.cc if (cache) { cache 376 webkit/browser/appcache/appcache_host.cc DCHECK(cache->owning_group()); cache 378 webkit/browser/appcache/appcache_host.cc DCHECK_EQ(cache->owning_group()->manifest_url(), preferred_manifest_url_); cache 379 webkit/browser/appcache/appcache_host.cc AppCacheGroup* owing_group = cache->owning_group(); cache 386 webkit/browser/appcache/appcache_host.cc AssociateCompleteCache(cache); cache 516 webkit/browser/appcache/appcache_host.cc void AppCacheHost::AssociateIncompleteCache(AppCache* cache, cache 518 webkit/browser/appcache/appcache_host.cc DCHECK(cache && !cache->is_complete()); cache 520 webkit/browser/appcache/appcache_host.cc AssociateCacheHelper(cache, manifest_url); cache 523 webkit/browser/appcache/appcache_host.cc void AppCacheHost::AssociateCompleteCache(AppCache* cache) { cache 524 webkit/browser/appcache/appcache_host.cc DCHECK(cache && cache->is_complete()); cache 525 webkit/browser/appcache/appcache_host.cc AssociateCacheHelper(cache, cache->owning_group()->manifest_url()); cache 528 webkit/browser/appcache/appcache_host.cc void AppCacheHost::AssociateCacheHelper(AppCache* cache, cache 534 webkit/browser/appcache/appcache_host.cc associated_cache_ = cache; cache 535 webkit/browser/appcache/appcache_host.cc SetSwappableCache(cache ? cache->owning_group() : NULL); cache 536 webkit/browser/appcache/appcache_host.cc associated_cache_info_pending_ = cache && !cache->is_complete(); cache 538 webkit/browser/appcache/appcache_host.cc if (cache) cache 539 webkit/browser/appcache/appcache_host.cc cache->AssociateHost(this); cache 541 webkit/browser/appcache/appcache_host.cc FillCacheInfo(cache, manifest_url, GetStatus(), &info); cache 117 webkit/browser/appcache/appcache_host.h void AssociateIncompleteCache(AppCache* cache, const GURL& manifest_url); cache 123 webkit/browser/appcache/appcache_host.h void AssociateCompleteCache(AppCache* cache); cache 169 webkit/browser/appcache/appcache_host.h void AssociateCacheHelper(AppCache* cache, const GURL& manifest_url); cache 172 webkit/browser/appcache/appcache_host.h virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) OVERRIDE; cache 179 webkit/browser/appcache/appcache_host.h void FinishCacheSelection(AppCache* cache, AppCacheGroup* group); cache 241 webkit/browser/appcache/appcache_host_unittest.cc scoped_refptr<AppCache> cache = new AppCache(service_.storage(), kCacheId); cache 242 webkit/browser/appcache/appcache_host_unittest.cc cache->AddEntry(kDocumentURL, AppCacheEntry(AppCacheEntry::EXPLICIT)); cache 260 webkit/browser/appcache/appcache_host_unittest.cc EXPECT_TRUE(cache->GetEntry(kDocumentURL)->IsForeign()); cache 272 webkit/browser/appcache/appcache_host_unittest.cc scoped_refptr<AppCache> cache = new AppCache(service_.storage(), kCacheId); cache 273 webkit/browser/appcache/appcache_host_unittest.cc cache->AddEntry(kFallbackURL, AppCacheEntry(AppCacheEntry::FALLBACK)); cache 285 webkit/browser/appcache/appcache_host_unittest.cc EXPECT_TRUE(cache->GetEntry(kFallbackURL)->IsForeign()); cache 340 webkit/browser/appcache/appcache_request_handler.cc AppCache* cache = host_->associated_cache(); cache 349 webkit/browser/appcache/appcache_request_handler.cc found_cache_id_ = cache->cache_id(); cache 350 webkit/browser/appcache/appcache_request_handler.cc found_group_id_ = cache->owning_group()->group_id(); cache 351 webkit/browser/appcache/appcache_request_handler.cc found_manifest_url_ = cache->owning_group()->manifest_url(); cache 363 webkit/browser/appcache/appcache_request_handler.cc found_cache_id_ = cache->cache_id(); cache 364 webkit/browser/appcache/appcache_request_handler.cc found_manifest_url_ = cache->owning_group()->manifest_url(); cache 509 webkit/browser/appcache/appcache_request_handler_unittest.cc scoped_refptr<AppCache> cache(MakeNewCache()); cache 510 webkit/browser/appcache/appcache_request_handler_unittest.cc host_->pending_selected_cache_id_ = cache->cache_id(); cache 511 webkit/browser/appcache/appcache_request_handler_unittest.cc host_->set_preferred_manifest_url(cache->owning_group()->manifest_url()); cache 522 webkit/browser/appcache/appcache_request_handler_unittest.cc host_->FinishCacheSelection(cache.get(), NULL); cache 863 webkit/browser/appcache/appcache_request_handler_unittest.cc AppCache* cache = new AppCache( cache 865 webkit/browser/appcache/appcache_request_handler_unittest.cc cache->set_complete(true); cache 869 webkit/browser/appcache/appcache_request_handler_unittest.cc group->AddCache(cache); cache 870 webkit/browser/appcache/appcache_request_handler_unittest.cc return cache; cache 126 webkit/browser/appcache/appcache_service_unittest.cc scoped_refptr<AppCache> cache( cache 128 webkit/browser/appcache/appcache_service_unittest.cc cache->AddEntry( cache 132 webkit/browser/appcache/appcache_service_unittest.cc cache->set_complete(true); cache 133 webkit/browser/appcache/appcache_service_unittest.cc group->AddCache(cache.get()); cache 135 webkit/browser/appcache/appcache_service_unittest.cc mock_storage()->AddStoredCache(cache.get()); cache 43 webkit/browser/appcache/appcache_storage.h virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) {} cache 132 webkit/browser/appcache/appcache_storage.h AppCache* cache, const GURL& url, cache 401 webkit/browser/appcache/appcache_storage_impl.cc scoped_refptr<AppCache>* cache, scoped_refptr<AppCacheGroup>* group); cache 425 webkit/browser/appcache/appcache_storage_impl.cc scoped_refptr<AppCache>* cache, scoped_refptr<AppCacheGroup>* group) { cache 426 webkit/browser/appcache/appcache_storage_impl.cc DCHECK(storage_ && cache && group); cache 428 webkit/browser/appcache/appcache_storage_impl.cc (*cache) = storage_->working_set_.GetCache(cache_record_.cache_id); cache 429 webkit/browser/appcache/appcache_storage_impl.cc if (cache->get()) { cache 430 webkit/browser/appcache/appcache_storage_impl.cc (*group) = cache->get()->owning_group(); cache 435 webkit/browser/appcache/appcache_storage_impl.cc if (!cache->get()->GetEntry(group_record_.manifest_url)) { cache 444 webkit/browser/appcache/appcache_storage_impl.cc (*cache) = new AppCache(storage_, cache_record_.cache_id); cache 445 webkit/browser/appcache/appcache_storage_impl.cc cache->get()->InitializeWithDatabaseRecords( cache 450 webkit/browser/appcache/appcache_storage_impl.cc cache->get()->set_complete(true); cache 455 webkit/browser/appcache/appcache_storage_impl.cc group->get()->AddCache(cache->get()); cache 458 webkit/browser/appcache/appcache_storage_impl.cc if (!cache->get()->GetEntry(group_record_.manifest_url)) { cache 467 webkit/browser/appcache/appcache_storage_impl.cc group->get()->AddCache(cache->get()); cache 470 webkit/browser/appcache/appcache_storage_impl.cc if (!cache->get()->GetEntry(group_record_.manifest_url)) { cache 475 webkit/browser/appcache/appcache_storage_impl.cc DCHECK(group->get()->newest_complete_cache() == cache->get()); cache 480 webkit/browser/appcache/appcache_storage_impl.cc storage_->GetPendingForeignMarkingsForCache(cache->get()->cache_id(), &urls); cache 483 webkit/browser/appcache/appcache_storage_impl.cc DCHECK(cache->get()->GetEntry(*iter)); cache 484 webkit/browser/appcache/appcache_storage_impl.cc cache->get()->GetEntry(*iter)->add_types(AppCacheEntry::FOREIGN); cache 526 webkit/browser/appcache/appcache_storage_impl.cc scoped_refptr<AppCache> cache; cache 530 webkit/browser/appcache/appcache_storage_impl.cc CreateCacheAndGroupFromRecords(&cache, &group); cache 532 webkit/browser/appcache/appcache_storage_impl.cc FOR_EACH_DELEGATE(delegates_, OnCacheLoaded(cache.get(), cache_id_)); cache 569 webkit/browser/appcache/appcache_storage_impl.cc scoped_refptr<AppCache> cache; cache 573 webkit/browser/appcache/appcache_storage_impl.cc CreateCacheAndGroupFromRecords(&cache, &group); cache 691 webkit/browser/appcache/appcache_storage_impl.cc AppCacheDatabase::CacheRecord cache; cache 692 webkit/browser/appcache/appcache_storage_impl.cc if (database_->FindCacheForGroup(group_record_.group_id, &cache)) { cache 695 webkit/browser/appcache/appcache_storage_impl.cc database_->FindResponseIdsForCacheAsSet(cache.cache_id, cache 714 webkit/browser/appcache/appcache_storage_impl.cc database_->DeleteCache(cache.cache_id) && cache 715 webkit/browser/appcache/appcache_storage_impl.cc database_->DeleteEntriesForCache(cache.cache_id) && cache 716 webkit/browser/appcache/appcache_storage_impl.cc database_->DeleteNamespacesForCache(cache.cache_id) && cache 717 webkit/browser/appcache/appcache_storage_impl.cc database_->DeleteOnlineWhiteListForCache(cache.cache_id) && cache 890 webkit/browser/appcache/appcache_storage_impl.cc AppCache* cache = group->newest_complete_cache(); cache 891 webkit/browser/appcache/appcache_storage_impl.cc if (group->is_obsolete() || !cache) cache 893 webkit/browser/appcache/appcache_storage_impl.cc cache_ids_in_use_.insert(cache->cache_id()); cache 1391 webkit/browser/appcache/appcache_storage_impl.cc AppCache* cache = working_set_.GetCache(id); cache 1392 webkit/browser/appcache/appcache_storage_impl.cc if (cache) { cache 1393 webkit/browser/appcache/appcache_storage_impl.cc delegate->OnCacheLoaded(cache, id); cache 1394 webkit/browser/appcache/appcache_storage_impl.cc if (cache->owning_group()) { cache 1397 webkit/browser/appcache/appcache_storage_impl.cc this, cache->owning_group(), base::Time::Now())); cache 1535 webkit/browser/appcache/appcache_storage_impl.cc AppCache* cache = group->newest_complete_cache(); cache 1536 webkit/browser/appcache/appcache_storage_impl.cc if (group->is_obsolete() || !cache) cache 1539 webkit/browser/appcache/appcache_storage_impl.cc AppCacheEntry* entry = cache->GetEntry(url); cache 1546 webkit/browser/appcache/appcache_storage_impl.cc make_scoped_refptr(group), make_scoped_refptr(cache), cache 1555 webkit/browser/appcache/appcache_storage_impl.cc scoped_refptr<AppCache> cache, cache 1562 webkit/browser/appcache/appcache_storage_impl.cc cache.get() ? cache->cache_id() : kNoCacheId, cache 1581 webkit/browser/appcache/appcache_storage_impl.cc AppCache* cache, const GURL& url, cache 1584 webkit/browser/appcache/appcache_storage_impl.cc DCHECK(cache && cache->is_complete()); cache 1589 webkit/browser/appcache/appcache_storage_impl.cc if (cache->owning_group()->is_being_deleted()) { cache 1598 webkit/browser/appcache/appcache_storage_impl.cc cache->FindResponseForRequest( cache 1606 webkit/browser/appcache/appcache_storage_impl.cc AppCache* cache = working_set_.GetCache(cache_id); cache 1607 webkit/browser/appcache/appcache_storage_impl.cc if (cache) { cache 1608 webkit/browser/appcache/appcache_storage_impl.cc AppCacheEntry* entry = cache->GetEntry(entry_url); cache 53 webkit/browser/appcache/appcache_storage_impl.h AppCache* cache, const GURL& url, cache 29 webkit/browser/appcache/appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), 111)); cache 31 webkit/browser/appcache/appcache_storage_unittest.cc EXPECT_EQ(cache.get(), cache 34 webkit/browser/appcache/appcache_storage_unittest.cc service.storage()->working_set()->RemoveCache(cache.get()); cache 40 webkit/browser/appcache/appcache_storage_unittest.cc dummy.storage()->working_set()->RemoveCache(cache.get()); cache 42 webkit/browser/appcache/appcache_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), 111)); cache 43 webkit/browser/appcache/appcache_unittest.cc cache->set_complete(true); cache 46 webkit/browser/appcache/appcache_unittest.cc group->AddCache(cache.get()); cache 51 webkit/browser/appcache/appcache_unittest.cc host1.AssociateCompleteCache(cache.get()); cache 52 webkit/browser/appcache/appcache_unittest.cc host2.AssociateCompleteCache(cache.get()); cache 60 webkit/browser/appcache/appcache_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), 111)); cache 62 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->entries().empty()); cache 63 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(0L, cache->cache_size()); cache 69 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry(kFooUrl, entry1); cache 70 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(entry1.types(), cache->GetEntry(kFooUrl)->types()); cache 71 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(1UL, cache->entries().size()); cache 72 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(kFooSize, cache->cache_size()); cache 78 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->AddOrModifyEntry(kBarUrl, entry2)); cache 79 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(entry2.types(), cache->GetEntry(kBarUrl)->types()); cache 80 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(2UL, cache->entries().size()); cache 81 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(kFooSize + kBarSize, cache->cache_size()); cache 85 webkit/browser/appcache/appcache_unittest.cc EXPECT_FALSE(cache->AddOrModifyEntry(kFooUrl, entry3)); cache 87 webkit/browser/appcache/appcache_unittest.cc cache->GetEntry(kFooUrl)->types()); cache 89 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(kFooResponseId, cache->GetEntry(kFooUrl)->response_id()); cache 90 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(kFooSize, cache->GetEntry(kFooUrl)->response_size()); cache 91 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(kFooSize + kBarSize, cache->cache_size()); cache 93 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(entry2.types(), cache->GetEntry(kBarUrl)->types()); // unchanged cache 95 webkit/browser/appcache/appcache_unittest.cc cache->RemoveEntry(kBarUrl); cache 96 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(kFooSize, cache->cache_size()); cache 97 webkit/browser/appcache/appcache_unittest.cc cache->RemoveEntry(kFooUrl); cache 98 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(0L, cache->cache_size()); cache 99 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->entries().empty()); cache 105 webkit/browser/appcache/appcache_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), 1234)); cache 106 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->fallback_namespaces_.empty()); cache 107 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->online_whitelist_namespaces_.empty()); cache 108 webkit/browser/appcache/appcache_unittest.cc EXPECT_FALSE(cache->online_whitelist_all_); cache 122 webkit/browser/appcache/appcache_unittest.cc cache->InitializeWithManifest(&manifest); cache 124 webkit/browser/appcache/appcache_unittest.cc cache->fallback_namespaces_; cache 130 webkit/browser/appcache/appcache_unittest.cc const NamespaceVector& whitelist = cache->online_whitelist_namespaces_; cache 135 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->online_whitelist_all_); cache 194 webkit/browser/appcache/appcache_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), 1234)); cache 195 webkit/browser/appcache/appcache_unittest.cc cache->InitializeWithManifest(&manifest); cache 196 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 199 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 202 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 205 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 209 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 213 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 216 webkit/browser/appcache/appcache_unittest.cc cache->set_complete(true); cache 227 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest(GURL("http://blah/miss"), cache 233 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest(kForeignExplicitEntryUrl, cache 244 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest(kManifestUrl, cache 255 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest(kInOnlineNamespaceUrl, cache 266 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest(kExplicitInOnlineNamespaceUrl, cache 277 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest(kFallbackTestUrl1, cache 285 webkit/browser/appcache/appcache_unittest.cc cache->GetFallbackEntryUrl(fallback_namespace)); cache 290 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest(kFallbackTestUrl2, cache 298 webkit/browser/appcache/appcache_unittest.cc cache->GetFallbackEntryUrl(fallback_namespace)); cache 303 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest(kOnlineNamespaceWithinOtherNamespaces, cache 314 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 326 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 334 webkit/browser/appcache/appcache_unittest.cc cache->GetInterceptEntryUrl(intercept_namespace)); cache 341 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 349 webkit/browser/appcache/appcache_unittest.cc cache->GetInterceptEntryUrl(intercept_namespace)); cache 368 webkit/browser/appcache/appcache_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), 1234)); cache 369 webkit/browser/appcache/appcache_unittest.cc cache->InitializeWithManifest(&manifest); cache 370 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 373 webkit/browser/appcache/appcache_unittest.cc cache->set_complete(true); cache 383 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 390 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 397 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 405 webkit/browser/appcache/appcache_unittest.cc cache->GetInterceptEntryUrl(intercept_namespace)); cache 412 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 420 webkit/browser/appcache/appcache_unittest.cc cache->GetInterceptEntryUrl(intercept_namespace)); cache 439 webkit/browser/appcache/appcache_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), 1234)); cache 440 webkit/browser/appcache/appcache_unittest.cc cache->InitializeWithManifest(&manifest); cache 441 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 444 webkit/browser/appcache/appcache_unittest.cc cache->set_complete(true); cache 454 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 461 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 468 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 477 webkit/browser/appcache/appcache_unittest.cc cache->GetFallbackEntryUrl(fallback_namespace)); cache 483 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 492 webkit/browser/appcache/appcache_unittest.cc cache->GetFallbackEntryUrl(fallback_namespace)); cache 510 webkit/browser/appcache/appcache_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), 1234)); cache 511 webkit/browser/appcache/appcache_unittest.cc cache->InitializeWithManifest(&manifest); cache 512 webkit/browser/appcache/appcache_unittest.cc cache->set_complete(true); cache 522 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 529 webkit/browser/appcache/appcache_unittest.cc found = cache->FindResponseForRequest( cache 560 webkit/browser/appcache/appcache_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), kCacheId)); cache 564 webkit/browser/appcache/appcache_unittest.cc cache->InitializeWithManifest(&manifest); cache 565 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(NETWORK_NAMESPACE, cache->online_whitelist_namespaces_[0].type); cache 566 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->online_whitelist_namespaces_[0].is_pattern); cache 568 webkit/browser/appcache/appcache_unittest.cc cache->online_whitelist_namespaces_[0].namespace_url); cache 569 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 572 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 575 webkit/browser/appcache/appcache_unittest.cc cache->AddEntry( cache 585 webkit/browser/appcache/appcache_unittest.cc cache->ToDatabaseRecords(group.get(), cache 599 webkit/browser/appcache/appcache_unittest.cc cache = NULL; cache 602 webkit/browser/appcache/appcache_unittest.cc cache = new AppCache(service.storage(), kCacheId); cache 603 webkit/browser/appcache/appcache_unittest.cc cache->InitializeWithDatabaseRecords( cache 606 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->online_whitelist_all_); cache 607 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(3u, cache->entries().size()); cache 608 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->GetEntry(kManifestUrl)); cache 609 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->GetEntry(kInterceptUrl)); cache 610 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->GetEntry(kFallbackUrl)); cache 612 webkit/browser/appcache/appcache_unittest.cc cache->GetInterceptEntryUrl(GURL("http://foo.com/intercept"))); cache 614 webkit/browser/appcache/appcache_unittest.cc cache->GetFallbackEntryUrl(GURL("http://foo.com/"))); cache 615 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(1 + 2 + 3, cache->cache_size()); cache 616 webkit/browser/appcache/appcache_unittest.cc EXPECT_EQ(NETWORK_NAMESPACE, cache->online_whitelist_namespaces_[0].type); cache 617 webkit/browser/appcache/appcache_unittest.cc EXPECT_TRUE(cache->online_whitelist_namespaces_[0].is_pattern); cache 619 webkit/browser/appcache/appcache_unittest.cc cache->online_whitelist_namespaces_[0].namespace_url); cache 720 webkit/browser/appcache/appcache_update_job.cc AppCache* cache = inprogress_cache_.get() ? inprogress_cache_.get() cache 726 webkit/browser/appcache/appcache_update_job.cc if (cache->AddOrModifyEntry(url, master_entry)) cache 734 webkit/browser/appcache/appcache_update_job.cc DCHECK(cache == group_->newest_complete_cache()); cache 737 webkit/browser/appcache/appcache_update_job.cc (*host_it)->AssociateCompleteCache(cache); cache 1191 webkit/browser/appcache/appcache_update_job.cc AppCache* cache; cache 1195 webkit/browser/appcache/appcache_update_job.cc cache = inprogress_cache_.get(); cache 1197 webkit/browser/appcache/appcache_update_job.cc cache = group_->newest_complete_cache(); cache 1201 webkit/browser/appcache/appcache_update_job.cc AppCacheEntry* entry = cache->GetEntry(url); cache 1206 webkit/browser/appcache/appcache_update_job.cc host->AssociateCompleteCache(cache); cache 1239 webkit/browser/appcache/appcache_update_job.cc AppCache* cache = group_->newest_complete_cache(); cache 1245 webkit/browser/appcache/appcache_update_job.cc (*host_it)->AssociateCompleteCache(cache); cache 758 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(1, 111); cache 763 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 764 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 775 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache; // newest cache unaffected by update cache 828 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 33); cache 831 webkit/browser/appcache/appcache_update_job_unittest.cc host->AssociateCompleteCache(cache); cache 842 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 865 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(1, 111); cache 870 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 871 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 880 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache; // newest cache unaffected by update cache 954 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(1, 111); cache 959 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 960 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 969 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache; // newest cache unaffected by update cache 996 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(1, response_writer_->response_id()); cache 1001 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 1002 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 1008 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache; // newest cache unaffected by update cache 1044 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(1, wrong_manifest_url, 111); cache 1047 webkit/browser/appcache/appcache_update_job_unittest.cc host->AssociateCompleteCache(cache); cache 1056 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache; // newest cache unaffected by update cache 1148 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), cache 1154 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 1155 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 1163 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 1204 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 42); cache 1207 webkit/browser/appcache/appcache_update_job_unittest.cc host->AssociateCompleteCache(cache); cache 1213 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry(MockHttpServer::GetMockUrl("files/explicit1"), cache 1221 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 1267 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 42); cache 1270 webkit/browser/appcache/appcache_update_job_unittest.cc host->AssociateCompleteCache(cache); cache 1276 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry(MockHttpServer::GetMockUrl("files/explicit1"), cache 1284 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 1327 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 42); cache 1330 webkit/browser/appcache/appcache_update_job_unittest.cc host->AssociateCompleteCache(cache); cache 1336 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry(MockHttpServer::GetMockUrl("files/explicit1"), cache 1344 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 1387 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 42); cache 1392 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 1393 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 1397 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry(MockHttpServer::GetMockUrl("files/explicit1"), cache 1407 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 1464 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 99); cache 1471 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 1472 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 1481 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache; // newest cache unaffectd by failed update cache 1509 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 25); cache 1514 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 1515 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 1518 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry( cache 1521 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry( cache 1524 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry( cache 1527 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry( cache 1549 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 1601 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 33); cache 1606 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 1607 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 1618 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 1645 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 22); cache 1648 webkit/browser/appcache/appcache_update_job_unittest.cc host->AssociateCompleteCache(cache); cache 1883 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 11); cache 1888 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 1889 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 1897 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache; // unchanged cache 1939 webkit/browser/appcache/appcache_update_job_unittest.cc scoped_refptr<AppCache> cache( cache 1955 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache.get(); // unchanged cache 1979 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(1, 111); cache 1984 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 1985 webkit/browser/appcache/appcache_update_job_unittest.cc host2->AssociateCompleteCache(cache); cache 1994 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache; // newest cache unaffected by update cache 2175 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 42); cache 2178 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 2198 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 2278 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 42); cache 2281 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 2300 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 2336 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(1, 111); cache 2339 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 2342 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry(MockHttpServer::GetMockUrl("files/explicit2"), cache 2347 webkit/browser/appcache/appcache_update_job_unittest.cc cache->set_update_time(base::Time()); cache 2364 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache; // newest cache still the same cache cache 2478 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(1, 111); cache 2481 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 2484 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry(MockHttpServer::GetMockUrl("files/explicit2"), cache 2526 webkit/browser/appcache/appcache_update_job_unittest.cc expect_newest_cache_ = cache; // newest cache unaffected by update cache 2560 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), 42); cache 2563 webkit/browser/appcache/appcache_update_job_unittest.cc host1->AssociateCompleteCache(cache); cache 2776 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), cache 2780 webkit/browser/appcache/appcache_update_job_unittest.cc host->AssociateCompleteCache(cache); cache 2786 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 2839 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = MakeCacheForGroup(service_->storage()->NewCacheId(), cache 2843 webkit/browser/appcache/appcache_update_job_unittest.cc host->AssociateCompleteCache(cache); cache 2849 webkit/browser/appcache/appcache_update_job_unittest.cc expect_old_cache_ = cache; cache 3061 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = new AppCache(service_->storage(), cache_id); cache 3062 webkit/browser/appcache/appcache_update_job_unittest.cc cache->set_complete(true); cache 3063 webkit/browser/appcache/appcache_update_job_unittest.cc cache->set_update_time(base::Time::Now()); cache 3064 webkit/browser/appcache/appcache_update_job_unittest.cc group_->AddCache(cache); cache 3067 webkit/browser/appcache/appcache_update_job_unittest.cc cache->AddEntry(manifest_entry_url, cache 3070 webkit/browser/appcache/appcache_update_job_unittest.cc return cache; cache 3190 webkit/browser/appcache/appcache_update_job_unittest.cc AppCache* cache = group_->newest_complete_cache(); cache 3191 webkit/browser/appcache/appcache_update_job_unittest.cc ASSERT_TRUE(cache != NULL); cache 3192 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_EQ(group_, cache->owning_group()); cache 3193 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->is_complete()); cache 3197 webkit/browser/appcache/appcache_update_job_unittest.cc VerifyManifest1(cache); cache 3200 webkit/browser/appcache/appcache_update_job_unittest.cc VerifyManifestMergedTypes(cache); cache 3203 webkit/browser/appcache/appcache_update_job_unittest.cc VerifyEmptyManifest(cache); cache 3206 webkit/browser/appcache/appcache_update_job_unittest.cc VerifyEmptyFileManifest(cache); cache 3209 webkit/browser/appcache/appcache_update_job_unittest.cc VerifyMasterEntryNoUpdate(cache); cache 3212 webkit/browser/appcache/appcache_update_job_unittest.cc VerifyManifestWithIntercept(cache); cache 3221 webkit/browser/appcache/appcache_update_job_unittest.cc void VerifyManifest1(AppCache* cache) { cache 3223 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_EQ(expected, cache->entries().size()); cache 3228 webkit/browser/appcache/appcache_update_job_unittest.cc cache->GetEntry(MockHttpServer::GetMockUrl(kManifestPath)); cache 3231 webkit/browser/appcache/appcache_update_job_unittest.cc entry = cache->GetEntry(MockHttpServer::GetMockUrl("files/explicit1")); cache 3234 webkit/browser/appcache/appcache_update_job_unittest.cc entry = cache->GetEntry( cache 3241 webkit/browser/appcache/appcache_update_job_unittest.cc entry = cache->GetEntry(i->first); cache 3247 webkit/browser/appcache/appcache_update_job_unittest.cc ASSERT_EQ(expected, cache->fallback_namespaces_.size()); cache 3248 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->fallback_namespaces_[0] == cache 3255 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->online_whitelist_namespaces_.empty()); cache 3256 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->online_whitelist_all_); cache 3258 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->update_time_ > base::Time()); cache 3261 webkit/browser/appcache/appcache_update_job_unittest.cc void VerifyManifestMergedTypes(AppCache* cache) { cache 3263 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_EQ(expected, cache->entries().size()); cache 3264 webkit/browser/appcache/appcache_update_job_unittest.cc AppCacheEntry* entry = cache->GetEntry( cache 3269 webkit/browser/appcache/appcache_update_job_unittest.cc entry = cache->GetEntry(MockHttpServer::GetMockUrl("files/explicit1")); cache 3275 webkit/browser/appcache/appcache_update_job_unittest.cc ASSERT_EQ(expected, cache->fallback_namespaces_.size()); cache 3276 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->fallback_namespaces_[0] == cache 3283 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_EQ(expected, cache->online_whitelist_namespaces_.size()); cache 3284 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->online_whitelist_namespaces_[0] == cache 3289 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_FALSE(cache->online_whitelist_all_); cache 3291 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->update_time_ > base::Time()); cache 3294 webkit/browser/appcache/appcache_update_job_unittest.cc void VerifyEmptyManifest(AppCache* cache) { cache 3299 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_EQ(expected, cache->entries().size()); cache 3300 webkit/browser/appcache/appcache_update_job_unittest.cc AppCacheEntry* entry = cache->GetEntry( cache 3305 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->fallback_namespaces_.empty()); cache 3306 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->online_whitelist_namespaces_.empty()); cache 3307 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_FALSE(cache->online_whitelist_all_); cache 3309 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->update_time_ > base::Time()); cache 3312 webkit/browser/appcache/appcache_update_job_unittest.cc void VerifyEmptyFileManifest(AppCache* cache) { cache 3313 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_EQ(size_t(2), cache->entries().size()); cache 3314 webkit/browser/appcache/appcache_update_job_unittest.cc AppCacheEntry* entry = cache->GetEntry( cache 3319 webkit/browser/appcache/appcache_update_job_unittest.cc entry = cache->GetEntry( cache 3325 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->fallback_namespaces_.empty()); cache 3326 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->online_whitelist_namespaces_.empty()); cache 3327 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_FALSE(cache->online_whitelist_all_); cache 3329 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->update_time_ > base::Time()); cache 3332 webkit/browser/appcache/appcache_update_job_unittest.cc void VerifyMasterEntryNoUpdate(AppCache* cache) { cache 3333 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_EQ(size_t(3), cache->entries().size()); cache 3334 webkit/browser/appcache/appcache_update_job_unittest.cc AppCacheEntry* entry = cache->GetEntry( cache 3339 webkit/browser/appcache/appcache_update_job_unittest.cc entry = cache->GetEntry( cache 3345 webkit/browser/appcache/appcache_update_job_unittest.cc entry = cache->GetEntry( cache 3351 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->fallback_namespaces_.empty()); cache 3352 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->online_whitelist_namespaces_.empty()); cache 3353 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_FALSE(cache->online_whitelist_all_); cache 3355 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->update_time_ > base::Time()); cache 3358 webkit/browser/appcache/appcache_update_job_unittest.cc void VerifyManifestWithIntercept(AppCache* cache) { cache 3359 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_EQ(2u, cache->entries().size()); cache 3362 webkit/browser/appcache/appcache_update_job_unittest.cc cache->GetEntry(MockHttpServer::GetMockUrl(kManifestPath)); cache 3365 webkit/browser/appcache/appcache_update_job_unittest.cc entry = cache->GetEntry(MockHttpServer::GetMockUrl("files/intercept1a")); cache 3368 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->online_whitelist_namespaces_.empty()); cache 3369 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_FALSE(cache->online_whitelist_all_); cache 3370 webkit/browser/appcache/appcache_update_job_unittest.cc EXPECT_TRUE(cache->update_time_ > base::Time()); cache 158 webkit/browser/appcache/appcache_url_request_job.cc void AppCacheURLRequestJob::OnCacheLoaded(AppCache* cache, int64 cache_id) { cache 162 webkit/browser/appcache/appcache_url_request_job.cc if (!cache) { cache 168 webkit/browser/appcache/appcache_url_request_job.cc cache_ = cache; cache 169 webkit/browser/appcache/appcache_url_request_job.cc group_ = cache->owning_group(); cache 173 webkit/browser/appcache/appcache_url_request_job.cc cache->GetExecutableHandler(entry_.response_id()); cache 124 webkit/browser/appcache/appcache_url_request_job.h virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) OVERRIDE; cache 32 webkit/browser/appcache/appcache_working_set.cc void AppCacheWorkingSet::AddCache(AppCache* cache) { cache 35 webkit/browser/appcache/appcache_working_set.cc DCHECK(cache->cache_id() != kNoCacheId); cache 36 webkit/browser/appcache/appcache_working_set.cc int64 cache_id = cache->cache_id(); cache 38 webkit/browser/appcache/appcache_working_set.cc caches_.insert(CacheMap::value_type(cache_id, cache)); cache 41 webkit/browser/appcache/appcache_working_set.cc void AppCacheWorkingSet::RemoveCache(AppCache* cache) { cache 42 webkit/browser/appcache/appcache_working_set.cc caches_.erase(cache->cache_id()); cache 32 webkit/browser/appcache/appcache_working_set.h void AddCache(AppCache* cache); cache 33 webkit/browser/appcache/appcache_working_set.h void RemoveCache(AppCache* cache); cache 57 webkit/browser/appcache/mock_appcache_storage.cc AppCache* cache = working_set_.GetCache(id); cache 58 webkit/browser/appcache/mock_appcache_storage.cc if (ShouldCacheLoadAppearAsync(cache)) { cache 109 webkit/browser/appcache/mock_appcache_storage.cc AppCache* cache, const GURL& url, cache 112 webkit/browser/appcache/mock_appcache_storage.cc DCHECK(cache && cache->is_complete()); cache 125 webkit/browser/appcache/mock_appcache_storage.cc cache->FindResponseForRequest( cache 133 webkit/browser/appcache/mock_appcache_storage.cc AppCache* cache = working_set_.GetCache(cache_id); cache 134 webkit/browser/appcache/mock_appcache_storage.cc if (cache) { cache 135 webkit/browser/appcache/mock_appcache_storage.cc AppCacheEntry* entry = cache->GetEntry(entry_url); cache 192 webkit/browser/appcache/mock_appcache_storage.cc AppCache* cache = working_set_.GetCache(id); cache 194 webkit/browser/appcache/mock_appcache_storage.cc delegate_ref->delegate->OnCacheLoaded(cache, id); cache 260 webkit/browser/appcache/mock_appcache_storage.cc AppCache* cache, cache 287 webkit/browser/appcache/mock_appcache_storage.cc cache->GetFallbackEntryUrl(namespace_url); cache 290 webkit/browser/appcache/mock_appcache_storage.cc cache->GetInterceptEntryUrl(namespace_url); cache 293 webkit/browser/appcache/mock_appcache_storage.cc best_candidate->cache_id = cache->cache_id(); cache 337 webkit/browser/appcache/mock_appcache_storage.cc AppCache* cache = group->newest_complete_cache(); cache 338 webkit/browser/appcache/mock_appcache_storage.cc if (group->is_obsolete() || !cache || cache 348 webkit/browser/appcache/mock_appcache_storage.cc bool found = cache->FindResponseForRequest( cache 364 webkit/browser/appcache/mock_appcache_storage.cc bool is_in_use = IsCacheStored(cache) && !cache->HasOneRef(); cache 370 webkit/browser/appcache/mock_appcache_storage.cc found_candidate.cache_id = cache->cache_id(); cache 382 webkit/browser/appcache/mock_appcache_storage.cc cache, group); cache 389 webkit/browser/appcache/mock_appcache_storage.cc cache, group); cache 466 webkit/browser/appcache/mock_appcache_storage.cc void MockAppCacheStorage::AddStoredCache(AppCache* cache) { cache 467 webkit/browser/appcache/mock_appcache_storage.cc int64 cache_id = cache->cache_id(); cache 470 webkit/browser/appcache/mock_appcache_storage.cc StoredCacheMap::value_type(cache_id, make_scoped_refptr(cache))); cache 474 webkit/browser/appcache/mock_appcache_storage.cc void MockAppCacheStorage::RemoveStoredCache(AppCache* cache) { cache 477 webkit/browser/appcache/mock_appcache_storage.cc stored_caches_.erase(cache->cache_id()); cache 534 webkit/browser/appcache/mock_appcache_storage.cc bool MockAppCacheStorage::ShouldCacheLoadAppearAsync(const AppCache* cache) { cache 535 webkit/browser/appcache/mock_appcache_storage.cc if (!cache) cache 540 webkit/browser/appcache/mock_appcache_storage.cc return IsCacheStored(cache) && cache->HasOneRef(); cache 45 webkit/browser/appcache/mock_appcache_storage.h AppCache* cache, const GURL& url, cache 90 webkit/browser/appcache/mock_appcache_storage.h void AddStoredCache(AppCache* cache); cache 91 webkit/browser/appcache/mock_appcache_storage.h void RemoveStoredCache(AppCache* cache); cache 93 webkit/browser/appcache/mock_appcache_storage.h bool IsCacheStored(const AppCache* cache) { cache 94 webkit/browser/appcache/mock_appcache_storage.h return stored_caches_.find(cache->cache_id()) != stored_caches_.end(); cache 111 webkit/browser/appcache/mock_appcache_storage.h bool ShouldCacheLoadAppearAsync(const AppCache* cache); cache 24 webkit/browser/appcache/mock_appcache_storage_unittest.cc virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) OVERRIDE { cache 25 webkit/browser/appcache/mock_appcache_storage_unittest.cc loaded_cache_ = cache; cache 105 webkit/browser/appcache/mock_appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), cache_id)); cache 111 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_EQ(cache.get(), delegate.loaded_cache_.get()); cache 173 webkit/browser/appcache/mock_appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), cache_id)); cache 174 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->set_complete(true); cache 175 webkit/browser/appcache/mock_appcache_storage_unittest.cc group->AddCache(cache.get()); cache 177 webkit/browser/appcache/mock_appcache_storage_unittest.cc storage->AddStoredCache(cache.get()); cache 182 webkit/browser/appcache/mock_appcache_storage_unittest.cc AppCache* cache_ptr = cache.get(); cache 184 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache = NULL; cache 224 webkit/browser/appcache/mock_appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), cache_id)); cache 232 webkit/browser/appcache/mock_appcache_storage_unittest.cc storage->StoreGroupAndNewestCache(group.get(), cache.get(), &delegate); cache 240 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_EQ(cache, group->newest_complete_cache()); cache 241 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_TRUE(cache->is_complete()); cache 301 webkit/browser/appcache/mock_appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), cache_id)); cache 302 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->set_complete(true); cache 303 webkit/browser/appcache/mock_appcache_storage_unittest.cc group->AddCache(cache.get()); cache 305 webkit/browser/appcache/mock_appcache_storage_unittest.cc storage->AddStoredCache(cache.get()); cache 309 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_EQ(cache, group->newest_complete_cache()); cache 311 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->AddEntry(entry_url, AppCacheEntry(AppCacheEntry::MASTER)); cache 317 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_TRUE(storage->IsCacheStored(cache.get())); cache 318 webkit/browser/appcache/mock_appcache_storage_unittest.cc storage->StoreGroupAndNewestCache(group.get(), cache.get(), &delegate); cache 326 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_TRUE(storage->IsCacheStored(cache.get())); cache 327 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_EQ(cache, group->newest_complete_cache()); cache 328 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_TRUE(cache->GetEntry(entry_url)); cache 343 webkit/browser/appcache/mock_appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), cache_id)); cache 344 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->set_complete(true); cache 345 webkit/browser/appcache/mock_appcache_storage_unittest.cc group->AddCache(cache.get()); cache 347 webkit/browser/appcache/mock_appcache_storage_unittest.cc storage->AddStoredCache(cache.get()); cache 355 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_FALSE(cache->HasOneRef()); cache 361 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_FALSE(cache->HasOneRef()); cache 369 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_TRUE(cache->HasOneRef()); cache 372 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache = NULL; cache 385 webkit/browser/appcache/mock_appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), cache_id)); cache 386 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->AddEntry(entry_url, AppCacheEntry(AppCacheEntry::EXPLICIT)); cache 390 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_FALSE(cache->GetEntry(entry_url)->IsForeign()); cache 392 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_TRUE(cache->GetEntry(entry_url)->IsForeign()); cache 393 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_TRUE(cache->GetEntry(entry_url)->IsExplicit()); cache 430 webkit/browser/appcache/mock_appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), kCacheId)); cache 431 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->AddEntry( cache 433 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->set_complete(true); cache 436 webkit/browser/appcache/mock_appcache_storage_unittest.cc group->AddCache(cache.get()); cache 438 webkit/browser/appcache/mock_appcache_storage_unittest.cc storage->AddStoredCache(cache.get()); cache 479 webkit/browser/appcache/mock_appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), kCacheId)); cache 480 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->InitializeWithManifest(&manifest); cache 481 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->AddEntry(kFallbackEntryUrl1, cache 483 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->AddEntry(kFallbackEntryUrl2, cache 485 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->set_complete(true); cache 489 webkit/browser/appcache/mock_appcache_storage_unittest.cc group->AddCache(cache.get()); cache 491 webkit/browser/appcache/mock_appcache_storage_unittest.cc storage->AddStoredCache(cache.get()); cache 530 webkit/browser/appcache/mock_appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), kCacheId1)); cache 531 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->AddEntry( cache 533 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->set_complete(true); cache 536 webkit/browser/appcache/mock_appcache_storage_unittest.cc group->AddCache(cache.get()); cache 538 webkit/browser/appcache/mock_appcache_storage_unittest.cc storage->AddStoredCache(cache.get()); cache 540 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache = NULL; cache 544 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache = new AppCache(service.storage(), kCacheId2); cache 545 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->AddEntry( cache 547 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->set_complete(true); cache 549 webkit/browser/appcache/mock_appcache_storage_unittest.cc group->AddCache(cache.get()); cache 551 webkit/browser/appcache/mock_appcache_storage_unittest.cc storage->AddStoredCache(cache.get()); cache 587 webkit/browser/appcache/mock_appcache_storage_unittest.cc scoped_refptr<AppCache> cache(new AppCache(service.storage(), kCacheId)); cache 588 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->InitializeWithManifest(&manifest); cache 589 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->AddEntry( cache 593 webkit/browser/appcache/mock_appcache_storage_unittest.cc cache->set_complete(true); cache 596 webkit/browser/appcache/mock_appcache_storage_unittest.cc group->AddCache(cache.get()); cache 598 webkit/browser/appcache/mock_appcache_storage_unittest.cc storage->AddStoredCache(cache.get());