HasOneRef 31 base/callback_internal.cc DCHECK(!bind_state_.get() || bind_state_->HasOneRef()); HasOneRef 97 base/cancelable_callback_unittest.cc EXPECT_TRUE(ref_counted->HasOneRef()); HasOneRef 102 base/cancelable_callback_unittest.cc EXPECT_FALSE(ref_counted->HasOneRef()); HasOneRef 108 base/cancelable_callback_unittest.cc EXPECT_TRUE(ref_counted->HasOneRef()); HasOneRef 24 base/memory/ref_counted.h bool HasOneRef() const { return ref_count_ == 1; } HasOneRef 84 base/memory/ref_counted.h bool HasOneRef() const; HasOneRef 20 base/memory/weak_ptr.cc DCHECK(sequence_checker_.CalledOnValidSequencedThread() || HasOneRef()) HasOneRef 120 base/memory/weak_ptr.h return flag_.get() && !flag_->HasOneRef(); HasOneRef 170 base/message_loop/message_loop_proxy_unittest.cc ASSERT_TRUE(task_recoder->HasOneRef()); HasOneRef 171 base/message_loop/message_loop_proxy_unittest.cc ASSERT_TRUE(reply_recoder->HasOneRef()); HasOneRef 784 base/threading/sequenced_worker_pool_unittest.cc EXPECT_FALSE(tracker()->HasOneRef()); HasOneRef 786 base/threading/sequenced_worker_pool_unittest.cc EXPECT_TRUE(tracker()->HasOneRef()); HasOneRef 72 cc/layers/delegated_frame_resource_collection_unittest.cc EXPECT_TRUE(resource_collection_->HasOneRef()); HasOneRef 78 cc/layers/delegated_frame_resource_collection_unittest.cc EXPECT_TRUE(resource_collection_->HasOneRef()); HasOneRef 27 cc/resources/texture_mailbox_deleter_unittest.cc EXPECT_TRUE(context_provider->HasOneRef()); HasOneRef 32 cc/resources/texture_mailbox_deleter_unittest.cc EXPECT_FALSE(context_provider->HasOneRef()); HasOneRef 38 cc/resources/texture_mailbox_deleter_unittest.cc EXPECT_TRUE(context_provider->HasOneRef()); HasOneRef 37 cc/trees/blocking_task_runner.cc if (task_runners->pairs[i].first->HasOneRef()) { HasOneRef 5788 cc/trees/layer_tree_host_impl_unittest.cc EXPECT_FALSE(context_provider->HasOneRef()); HasOneRef 5795 cc/trees/layer_tree_host_impl_unittest.cc EXPECT_TRUE(context_provider->HasOneRef()); HasOneRef 43 chrome/browser/chromeos/policy/device_local_account_external_data_service.cc DCHECK(it->second->HasOneRef()); HasOneRef 57 chrome/browser/chromeos/policy/device_local_account_external_data_service.cc if (it->second->HasOneRef()) { HasOneRef 435 chrome/browser/devtools/adb/android_usb_device.cc if (!initial && HasOneRef()) HasOneRef 554 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(delegate()->loaded_group_->HasOneRef()); HasOneRef 589 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(delegate()->loaded_cache_->HasOneRef()); HasOneRef 594 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(delegate()->loaded_cache_->owning_group()->HasOneRef()); HasOneRef 616 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(delegate()->loaded_group_->HasOneRef()); HasOneRef 935 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(cache_->HasOneRef()); HasOneRef 1013 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(cache_->HasOneRef()); HasOneRef 1015 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(group_->HasOneRef()); HasOneRef 1083 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(cache_->HasOneRef()); HasOneRef 1085 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(group_->HasOneRef()); HasOneRef 1157 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(cache_->HasOneRef()); HasOneRef 1159 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(group_->HasOneRef()); HasOneRef 1223 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(cache_->HasOneRef()); HasOneRef 1225 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(group_->HasOneRef()); HasOneRef 1309 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(cache_->HasOneRef()); HasOneRef 1311 content/browser/appcache/appcache_storage_impl_unittest.cc EXPECT_TRUE(group_->HasOneRef()); HasOneRef 137 content/browser/dom_storage/dom_storage_area.cc if (!map_->HasOneRef()) HasOneRef 152 content/browser/dom_storage/dom_storage_area.cc if (!map_->HasOneRef()) HasOneRef 274 content/browser/dom_storage/dom_storage_area_unittest.cc EXPECT_TRUE(area->HasOneRef()); HasOneRef 305 content/browser/dom_storage/dom_storage_area_unittest.cc EXPECT_TRUE(area->HasOneRef()); HasOneRef 35 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_TRUE(backing_store->HasOneRef()); HasOneRef 43 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(backing_store->HasOneRef()); // local and db HasOneRef 45 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_TRUE(backing_store->HasOneRef()); // local HasOneRef 51 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_TRUE(backing_store->HasOneRef()); // local HasOneRef 60 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(backing_store->HasOneRef()); // local and db HasOneRef 74 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(backing_store->HasOneRef()); // db, connection count > 0 HasOneRef 88 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(backing_store->HasOneRef()); // local and connection HasOneRef 93 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(backing_store->HasOneRef()); // local and connection HasOneRef 98 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_TRUE(backing_store->HasOneRef()); HasOneRef 107 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_TRUE(backing_store->HasOneRef()); HasOneRef 116 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(backing_store->HasOneRef()); // local and db HasOneRef 140 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_TRUE(backing_store->HasOneRef()); // local HasOneRef 168 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_TRUE(backing_store->HasOneRef()); // local HasOneRef 177 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(backing_store->HasOneRef()); // local and db HasOneRef 191 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(backing_store->HasOneRef()); // local and db HasOneRef 197 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_FALSE(backing_store->HasOneRef()); // local and db HasOneRef 202 content/browser/indexed_db/indexed_db_database_unittest.cc EXPECT_TRUE(backing_store->HasOneRef()); // local HasOneRef 119 content/browser/indexed_db/indexed_db_factory.cc return ptr->HasOneRef(); HasOneRef 110 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_FALSE(disk_store1->HasOneRef()); HasOneRef 111 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_FALSE(disk_store2->HasOneRef()); HasOneRef 112 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_TRUE(disk_store3->HasOneRef()); HasOneRef 115 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_TRUE(disk_store1->HasOneRef()); HasOneRef 163 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_FALSE(mem_store1->HasOneRef()); HasOneRef 164 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_FALSE(mem_store2->HasOneRef()); HasOneRef 165 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_FALSE(mem_store3->HasOneRef()); HasOneRef 168 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_FALSE(mem_store1->HasOneRef()); // mem_store1 and 2 HasOneRef 169 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_FALSE(mem_store2->HasOneRef()); // mem_store1 and 2 HasOneRef 170 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_TRUE(mem_store3->HasOneRef()); HasOneRef 173 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_TRUE(mem_store1->HasOneRef()); HasOneRef 298 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_FALSE(store->HasOneRef()); // Factory and database. HasOneRef 302 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_TRUE(store->HasOneRef()); // Factory. HasOneRef 311 content/browser/indexed_db/indexed_db_factory_unittest.cc EXPECT_TRUE(store->HasOneRef()); // Local. HasOneRef 201 content/browser/service_worker/service_worker_dispatcher_host_unittest.cc EXPECT_TRUE(dispatcher_host->HasOneRef()); HasOneRef 266 content/browser/service_worker/service_worker_job_unittest.cc ASSERT_TRUE(registration->HasOneRef()); HasOneRef 321 content/browser/service_worker/service_worker_job_unittest.cc ASSERT_TRUE(old_registration->HasOneRef()); HasOneRef 380 content/browser/service_worker/service_worker_job_unittest.cc ASSERT_FALSE(old_registration->HasOneRef()); HasOneRef 53 content/browser/service_worker/service_worker_registration_unittest.cc DCHECK(registration->HasOneRef()); HasOneRef 54 content/browser/service_worker/service_worker_registration_unittest.cc DCHECK(active_version->HasOneRef()); HasOneRef 81 content/browser/service_worker/service_worker_registration_unittest.cc DCHECK(version_1->HasOneRef()); HasOneRef 85 content/browser/service_worker/service_worker_registration_unittest.cc DCHECK(!version_2->HasOneRef()); HasOneRef 91 content/browser/service_worker/service_worker_registration_unittest.cc DCHECK(registration->HasOneRef()); HasOneRef 92 content/browser/service_worker/service_worker_registration_unittest.cc DCHECK(version_2->HasOneRef()); HasOneRef 166 content/renderer/dom_storage/dom_storage_cached_area_unittest.cc EXPECT_TRUE(mock_proxy_->HasOneRef()); HasOneRef 171 content/renderer/dom_storage/dom_storage_cached_area_unittest.cc EXPECT_FALSE(mock_proxy_->HasOneRef()); HasOneRef 243 content/renderer/media/video_capture_impl.cc DCHECK(!iter->second || iter->second->HasOneRef()) HasOneRef 107 content/test/ppapi_unittest.cc DCHECK(instance_->HasOneRef()); HasOneRef 109 content/test/ppapi_unittest.cc DCHECK(module_->HasOneRef()); HasOneRef 88 extensions/browser/info_map_unittest.cc EXPECT_TRUE(extension1->HasOneRef()); HasOneRef 89 extensions/browser/info_map_unittest.cc EXPECT_TRUE(extension2->HasOneRef()); HasOneRef 90 extensions/browser/info_map_unittest.cc EXPECT_TRUE(extension3->HasOneRef()); HasOneRef 100 extensions/browser/info_map_unittest.cc EXPECT_TRUE(weak_extension1->HasOneRef()); HasOneRef 105 extensions/browser/info_map_unittest.cc EXPECT_TRUE(extension2->HasOneRef()); HasOneRef 109 extensions/browser/info_map_unittest.cc EXPECT_TRUE(extension3->HasOneRef()); HasOneRef 130 media/audio/audio_output_dispatcher_impl.cc DCHECK(HasOneRef()) << "Only the AudioManager should hold a reference"; HasOneRef 295 media/audio/audio_output_resampler.cc DCHECK(HasOneRef()) << "Only the AudioManager should hold a reference"; HasOneRef 401 mojo/system/dispatcher.cc DCHECK(HasOneRef()); HasOneRef 414 mojo/system/dispatcher.cc DCHECK(HasOneRef()); HasOneRef 157 mojo/system/message_in_transit.cc DCHECK((*dispatchers_)[i]->HasOneRef()); HasOneRef 205 mojo/system/message_in_transit.cc DCHECK(!(*dispatchers_)[i] || (*dispatchers_)[i]->HasOneRef()); HasOneRef 467 mojo/system/remote_message_pipe_unittest.cc EXPECT_TRUE(dispatcher->HasOneRef()); HasOneRef 489 mojo/system/remote_message_pipe_unittest.cc EXPECT_TRUE(read_dispatchers[0]->HasOneRef()); HasOneRef 64 net/base/test_completion_callback.cc if (!buffer_->HasOneRef()) HasOneRef 99 net/disk_cache/blockfile/in_flight_io.cc DCHECK(!operation->HasOneRef()); HasOneRef 2808 net/disk_cache/entry_unittest.cc static_cast<disk_cache::SimpleEntryImpl*>(entry)->HasOneRef()); HasOneRef 2846 net/disk_cache/entry_unittest.cc static_cast<disk_cache::SimpleEntryImpl*>(entry)->HasOneRef()); HasOneRef 2875 net/disk_cache/entry_unittest.cc static_cast<disk_cache::SimpleEntryImpl*>(entry2)->HasOneRef()); HasOneRef 2940 net/disk_cache/entry_unittest.cc static_cast<disk_cache::SimpleEntryImpl*>(entry2)->HasOneRef()); HasOneRef 2975 net/disk_cache/entry_unittest.cc static_cast<disk_cache::SimpleEntryImpl*>(entry)->HasOneRef()); HasOneRef 3032 net/disk_cache/entry_unittest.cc EXPECT_TRUE(buffer1->HasOneRef()); HasOneRef 3040 net/disk_cache/entry_unittest.cc EXPECT_TRUE(buffer1->HasOneRef()); HasOneRef 3048 net/disk_cache/entry_unittest.cc EXPECT_TRUE(buffer1->HasOneRef()); HasOneRef 3203 net/disk_cache/entry_unittest.cc static_cast<disk_cache::SimpleEntryImpl*>(entry)->HasOneRef()); HasOneRef 3497 net/disk_cache/entry_unittest.cc static_cast<disk_cache::SimpleEntryImpl*>(entry)->HasOneRef()); HasOneRef 3546 net/disk_cache/entry_unittest.cc EXPECT_TRUE(static_cast<disk_cache::SimpleEntryImpl*>(entry)->HasOneRef()); HasOneRef 302 net/disk_cache/simple/simple_entry_impl.cc DCHECK(!HasOneRef()); HasOneRef 308 net/disk_cache/simple/simple_entry_impl.cc DCHECK(!HasOneRef()); HasOneRef 131 net/url_request/url_request_throttler_entry.cc if (!HasOneRef()) HasOneRef 96 ppapi/proxy/plugin_globals.cc DCHECK(!loop_for_main_thread_.get() || loop_for_main_thread_->HasOneRef()); HasOneRef 479 sync/internal_api/http_bridge_unittest.cc EXPECT_TRUE(baseline_context_getter->HasOneRef()); HasOneRef 72 ui/gfx/animation/animation_container_unittest.cc EXPECT_FALSE(container->HasOneRef()); HasOneRef 77 ui/gfx/animation/animation_container_unittest.cc EXPECT_TRUE(container->HasOneRef()); HasOneRef 91 webkit/browser/appcache/appcache_storage_unittest.cc EXPECT_TRUE(delegate_reference1->HasOneRef()); HasOneRef 104 webkit/browser/appcache/appcache_storage_unittest.cc EXPECT_TRUE(delegate_reference1->HasOneRef()); HasOneRef 111 webkit/browser/appcache/appcache_storage_unittest.cc EXPECT_TRUE(delegate_reference2->HasOneRef()); HasOneRef 364 webkit/browser/appcache/mock_appcache_storage.cc bool is_in_use = IsCacheStored(cache) && !cache->HasOneRef(); HasOneRef 540 webkit/browser/appcache/mock_appcache_storage.cc return IsCacheStored(cache) && cache->HasOneRef(); HasOneRef 128 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_TRUE(delegate.loaded_group_->HasOneRef()); HasOneRef 355 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_FALSE(cache->HasOneRef()); HasOneRef 356 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_FALSE(group->HasOneRef()); HasOneRef 361 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_FALSE(cache->HasOneRef()); HasOneRef 362 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_FALSE(group->HasOneRef()); HasOneRef 369 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_TRUE(cache->HasOneRef()); HasOneRef 370 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_FALSE(group->HasOneRef()); HasOneRef 373 webkit/browser/appcache/mock_appcache_storage_unittest.cc EXPECT_TRUE(group->HasOneRef());