/external/chromium_org/base/memory/ |
scoped_ptr_unittest.cc | 5 #include "base/memory/scoped_ptr.h" 81 scoped_ptr<ConDecLogger> PassThru(scoped_ptr<ConDecLogger> logger) { 85 void GrabAndDrop(scoped_ptr<ConDecLogger> logger) { 90 scoped_ptr<ConDecLogger> TestReturnOfType(int* constructed) { 91 return scoped_ptr<ConDecLogger>(new ConDecLogger(constructed)); 94 scoped_ptr<ConDecLoggerParent> UpcastUsingPassAs( 95 scoped_ptr<ConDecLogger> object) { 104 // Ensure size of scoped_ptr<> doesn't increase unexpectedly. 105 COMPILE_ASSERT(sizeof(int*) >= sizeof(scoped_ptr<int>) [all...] |
discardable_memory_allocator_android_unittest.cc | 11 #include "base/memory/scoped_ptr.h" 43 scoped_ptr<DiscardableMemory> memory(allocator_.Allocate(size)); 52 scoped_ptr<DiscardableMemory> memory(allocator_.Allocate(size)); 58 scoped_ptr<DiscardableMemory> memory(allocator_.Allocate(kPageSize)); 65 scoped_ptr<DiscardableMemory> memory(allocator_.Allocate(kPageSize)); 68 scoped_ptr<DiscardableMemory> memory_lock(allocator_.Allocate(kPageSize)); 81 scoped_ptr<DiscardableMemory> memory(allocator_.Allocate(kPageSize)); 94 scoped_ptr<DiscardableMemory> memory1(allocator_.Allocate(3 * kPageSize)); 96 scoped_ptr<DiscardableMemory> memory2(allocator_.Allocate(2 * kPageSize)); 98 scoped_ptr<DiscardableMemory> memory3(allocator_.Allocate(1 * kPageSize)) [all...] |
/external/chromium_org/remoting/protocol/ |
channel_multiplexer_unittest.cc | 48 void OnConnected(scoped_ptr<net::StreamSocket> socket) { 93 scoped_ptr<net::StreamSocket>* host_socket, 94 scoped_ptr<net::StreamSocket>* client_socket) { 110 scoped_ptr<net::StreamSocket>* storage, 112 scoped_ptr<net::StreamSocket> socket) { 134 scoped_ptr<ChannelMultiplexer> host_mux_; 135 scoped_ptr<ChannelMultiplexer> client_mux_; 137 scoped_ptr<net::StreamSocket> host_socket1_; 138 scoped_ptr<net::StreamSocket> client_socket1_; 139 scoped_ptr<net::StreamSocket> host_socket2_ [all...] |
me2me_host_authenticator_factory.h | 13 #include "base/memory/scoped_ptr.h" 29 static scoped_ptr<AuthenticatorFactory> CreateWithSharedSecret( 38 static scoped_ptr<AuthenticatorFactory> CreateWithThirdPartyAuth( 43 scoped_ptr<ThirdPartyHostAuthenticator::TokenValidatorFactory> 48 static scoped_ptr<AuthenticatorFactory> CreateRejecting(); 54 virtual scoped_ptr<Authenticator> CreateAuthenticator( 70 scoped_ptr<ThirdPartyHostAuthenticator::TokenValidatorFactory>
|
/external/chromium_org/chrome/browser/value_store/ |
value_store.h | 11 #include "base/memory/scoped_ptr.h" 46 scoped_ptr<std::string> key); 49 static scoped_ptr<Error> Create(ErrorCode code, 51 scoped_ptr<std::string> key) { 61 // The key associated with the error, if any. Use a scoped_ptr here 65 const scoped_ptr<std::string> key; 74 explicit ReadResultType(scoped_ptr<base::DictionaryValue> settings); 75 explicit ReadResultType(scoped_ptr<Error> error); 86 scoped_ptr<base::DictionaryValue> PassSettings() { 92 scoped_ptr<Error> PassError() { return error_.Pass(); [all...] |
/external/ceres-solver/include/ceres/internal/ |
scoped_ptr.h | 32 // implementation of the scoped_ptr class, and its closely-related brethren, 46 template <class C> class scoped_ptr; 51 scoped_ptr<C> make_scoped_ptr(C *); 53 // A scoped_ptr<T> is like a T*, except that the destructor of 54 // scoped_ptr<T> automatically deletes the pointer it holds (if 55 // any). That is, scoped_ptr<T> owns the T object that it points 56 // to. Like a T*, a scoped_ptr<T> may hold either NULL or a pointer to 57 // a T object. Also like T*, scoped_ptr<T> is thread-compatible, and 60 // The size of a scoped_ptr is small: sizeof(scoped_ptr<C>) == sizeof(C* 62 class scoped_ptr { class in namespace:ceres::internal 70 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } function in class:ceres::internal::scoped_ptr [all...] |
/external/chromium_org/chrome/browser/chromeos/drive/ |
async_file_util.h | 32 scoped_ptr<fileapi::FileSystemOperationContext> context, 37 scoped_ptr<fileapi::FileSystemOperationContext> context, 41 scoped_ptr<fileapi::FileSystemOperationContext> context, 47 scoped_ptr<fileapi::FileSystemOperationContext> context, 51 scoped_ptr<fileapi::FileSystemOperationContext> context, 55 scoped_ptr<fileapi::FileSystemOperationContext> context, 61 scoped_ptr<fileapi::FileSystemOperationContext> context, 66 scoped_ptr<fileapi::FileSystemOperationContext> context, 73 scoped_ptr<fileapi::FileSystemOperationContext> context, 79 scoped_ptr<fileapi::FileSystemOperationContext> context [all...] |
/external/chromium_org/chrome/browser/extensions/api/sockets_udp/ |
sockets_udp_api.h | 24 virtual scoped_ptr<SocketResourceManagerInterface> 35 virtual scoped_ptr<SocketResourceManagerInterface> 56 scoped_ptr<sockets_udp::Create::Params> params_; 73 scoped_ptr<sockets_udp::Update::Params> params_; 91 scoped_ptr<sockets_udp::SetPaused::Params> params_; 109 scoped_ptr<sockets_udp::Bind::Params> params_; 134 scoped_ptr<sockets_udp::Send::Params> params_; 153 scoped_ptr<sockets_udp::Close::Params> params_; 170 scoped_ptr<sockets_udp::GetInfo::Params> params_; 201 scoped_ptr<sockets_udp::JoinGroup::Params> params_ [all...] |
/external/chromium_org/chrome/browser/renderer_host/pepper/ |
chrome_browser_pepper_host_factory.cc | 38 scoped_ptr<ResourceHost> ChromeBrowserPepperHostFactory::CreateResourceHost( 47 return scoped_ptr<ResourceHost>(); 57 return scoped_ptr<ResourceHost>(); 58 return scoped_ptr<ResourceHost>(new MessageFilterHost( 72 return scoped_ptr<ResourceHost>(new MessageFilterHost( 80 return scoped_ptr<ResourceHost>(new MessageFilterHost( 85 return scoped_ptr<ResourceHost>(new PepperTalkHost( 91 return scoped_ptr<ResourceHost>(new MessageFilterHost( 104 return scoped_ptr<ResourceHost>(new PepperFlashBrowserHost( 109 return scoped_ptr<ResourceHost>(new MessageFilterHost [all...] |
/external/chromium_org/tools/android/forwarder2/ |
device_listener.h | 13 #include "base/memory/scoped_ptr.h" 47 typedef base::Callback<void (scoped_ptr<DeviceListener>)> ErrorCallback; 49 static scoped_ptr<DeviceListener> Create(scoped_ptr<Socket> host_socket, 57 void SetAdbDataSocket(scoped_ptr<Socket> adb_data_socket); 62 DeviceListener(scoped_ptr<PipeNotifier> pipe_notifier, 63 scoped_ptr<Socket> listener_socket, 64 scoped_ptr<Socket> host_socket, 75 scoped_ptr<Socket> adb_data_socket); 87 const scoped_ptr<PipeNotifier> exit_notifier_ [all...] |
/external/chromium/chrome/browser/policy/ |
profile_policy_connector.h | 10 #include "base/memory/scoped_ptr.h" 44 scoped_ptr<UserPolicyIdentityStrategy> identity_strategy_; 45 scoped_ptr<CloudPolicySubsystem> cloud_policy_subsystem_; 47 scoped_ptr<ConfigurationPolicyProvider> managed_cloud_provider_; 48 scoped_ptr<ConfigurationPolicyProvider> recommended_cloud_provider_; 83 scoped_ptr<ConfigurationPolicyObserverRegistrar> browser_registrar_; 84 scoped_ptr<ConfigurationPolicyObserverRegistrar> profile_registrar_;
|
/external/chromium_org/cc/test/ |
test_context_provider.h | 9 #include "base/memory/scoped_ptr.h" 25 typedef base::Callback<scoped_ptr<TestWebGraphicsContext3D>(void)> 30 scoped_ptr<TestWebGraphicsContext3D> context); 61 explicit TestContextProvider(scoped_ptr<TestWebGraphicsContext3D> context); 69 scoped_ptr<TestWebGraphicsContext3D> context3d_; 70 scoped_ptr<TestGLES2Interface> context_gl_; 83 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
|
/external/chromium_org/chrome/browser/dom_distiller/ |
dom_distiller_service_factory.cc | 18 scoped_ptr<DomDistillerStoreInterface> store, 19 scoped_ptr<DistillerFactory> distiller_factory) 49 scoped_ptr<DomDistillerDatabase> db( 55 scoped_ptr<DomDistillerStore> dom_distiller_store( 59 scoped_ptr<DistillerPageFactory> distiller_page_factory( 61 scoped_ptr<DistillerURLFetcherFactory> distiller_url_fetcher_factory( 63 scoped_ptr<DistillerFactory> distiller_factory(
|
/external/chromium_org/content/public/test/ |
test_file_system_backend.h | 10 #include "base/memory/scoped_ptr.h" 50 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( 55 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( 64 scoped_ptr<CopyOrMoveFileValidatorFactory> factory); 81 scoped_ptr<AsyncFileUtilAdapter> file_util_; 82 scoped_ptr<QuotaUtil> quota_util_; 85 scoped_ptr<CopyOrMoveFileValidatorFactory>
|
/external/chromium_org/sync/internal_api/ |
internal_components_factory_impl.cc | 23 scoped_ptr<SyncScheduler> InternalComponentsFactoryImpl::BuildScheduler( 28 scoped_ptr<BackoffDelayProvider> delay(BackoffDelayProvider::FromDefaults()); 33 return scoped_ptr<SyncScheduler>(new SyncSchedulerImpl( 40 scoped_ptr<sessions::SyncSessionContext> 50 return scoped_ptr<sessions::SyncSessionContext>( 61 scoped_ptr<syncable::DirectoryBackingStore> 64 return scoped_ptr<syncable::DirectoryBackingStore>(
|
/external/chromium_org/tools/json_schema_compiler/test/ |
choices_unittest.cc | 21 scoped_ptr<TakesIntegers::Params> params(TakesIntegers::Params::Create( 26 scoped_ptr<TakesIntegers::Params> params(TakesIntegers::Params::Create( 33 scoped_ptr<TakesIntegers::Params> params(TakesIntegers::Params::Create( 45 scoped_ptr<ObjectWithChoices::Params> params( 54 scoped_ptr<ObjectWithChoices::Params> params( 72 scoped_ptr<DictionaryValue> object_param(new DictionaryValue()); 75 scoped_ptr<ListValue> params_value(new ListValue()); 77 scoped_ptr<ObjectWithChoices::Params> params( 82 scoped_ptr<DictionaryValue> object_param(new DictionaryValue()); 87 scoped_ptr<ListValue> params_value(new ListValue()) [all...] |
arrays_unittest.cc | 14 static scoped_ptr<DictionaryValue> CreateBasicArrayTypeDictionary() { 34 return scoped_ptr<DictionaryValue>(value); 47 scoped_ptr<DictionaryValue> value = CreateBasicArrayTypeDictionary(); 48 scoped_ptr<BasicArrayType> basic_array_type(new BasicArrayType()); 60 scoped_ptr<ListValue> types(new ListValue()); 79 scoped_ptr<ListValue> types(new ListValue()); 94 scoped_ptr<ListValue> enum_array(new ListValue()); 106 scoped_ptr<DictionaryValue> value(new DictionaryValue()); 107 scoped_ptr<ListValue> ref_array(new ListValue()); 112 scoped_ptr<RefArrayType> ref_array_type(new RefArrayType()) [all...] |
/external/chromium_org/ui/events/test/ |
test_event_target.cc | 18 void TestEventTarget::AddChild(scoped_ptr<TestEventTarget> child) { 28 scoped_ptr<TestEventTarget> TestEventTarget::RemoveChild(TestEventTarget *c) { 35 return scoped_ptr<TestEventTarget>(c); 37 return scoped_ptr<TestEventTarget>(); 40 void TestEventTarget::SetEventTargeter(scoped_ptr<EventTargeter> targeter) { 63 scoped_ptr<EventTargetIterator> TestEventTarget::GetChildIterator() const { 64 return scoped_ptr<EventTargetIterator>(
|
/external/chromium_org/chrome/browser/chromeos/contacts/ |
contact_database_unittest.cc | 14 #include "base/memory/scoped_ptr.h" 81 void SaveContacts(scoped_ptr<ContactPointers> contacts_to_save, 82 scoped_ptr<ContactDatabaseInterface::ContactIds> 84 scoped_ptr<UpdateMetadata> metadata, 98 void LoadContacts(scoped_ptr<ScopedVector<Contact> >* contacts_out, 99 scoped_ptr<UpdateMetadata>* metadata_out) { 124 scoped_ptr<ScopedVector<Contact> > contacts, 125 scoped_ptr<UpdateMetadata> metadata) { 145 scoped_ptr<ScopedVector<Contact> > loaded_contacts_; 146 scoped_ptr<UpdateMetadata> loaded_metadata_ [all...] |
/external/chromium/chrome/common/ |
json_schema_validator_unittest_base.cc | 13 #include "base/memory/scoped_ptr.h" 40 scoped_ptr<Value> result(LoadValue(filename)); 85 scoped_ptr<DictionaryValue> schema(LoadDictionary("complex_schema.json")); 86 scoped_ptr<ListValue> instance(LoadList("complex_instance.json")); 115 scoped_ptr<DictionaryValue> schema(new DictionaryValue()); 120 scoped_ptr<Value>(Value::CreateStringValue("foo")).get(), 123 scoped_ptr<Value>(Value::CreateStringValue("foooooo")).get(), 126 scoped_ptr<Value>(Value::CreateStringValue("bar")).get(), 133 scoped_ptr<DictionaryValue> schema(LoadDictionary("enum_schema.json")); 136 scoped_ptr<Value>(Value::CreateStringValue("foo")).get() [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
scoped_ptr.h | 11 // Example usage (scoped_ptr<T>): 13 // scoped_ptr<Foo> foo(new Foo("wee")); 17 // scoped_ptr<Foo> foo; // No pointer managed. 30 // Example usage (scoped_ptr<T[]>): 32 // scoped_ptr<Foo[]> foo(new Foo[100]); 43 // passing by copy will NOT work. Here is an example using scoped_ptr: 45 // void TakesOwnership(scoped_ptr<Foo> arg) { 48 // scoped_ptr<Foo> CreateFoo() { 51 // return scoped_ptr<Foo>(new Foo("new")); 53 // scoped_ptr<Foo> PassThru(scoped_ptr<Foo> arg) 306 class scoped_ptr { class in namespace:talk_base 315 scoped_ptr() : impl_(NULL) { } function in class:talk_base::scoped_ptr 318 explicit scoped_ptr(element_type* p) : impl_(p) { } function in class:talk_base::scoped_ptr 321 scoped_ptr(element_type* p, const D& d) : impl_(p, d) { } function in class:talk_base::scoped_ptr 334 scoped_ptr(scoped_ptr<U, V> other) : impl_(&other.impl_) { function in class:talk_base::scoped_ptr 339 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:talk_base::scoped_ptr 451 class scoped_ptr<T[], D> { class in namespace:talk_base 460 scoped_ptr() : impl_(NULL) { } function in class:talk_base::scoped_ptr 478 explicit scoped_ptr(element_type* array) : impl_(array) { } function in class:talk_base::scoped_ptr 481 scoped_ptr(RValue rvalue) : impl_(&rvalue.object->impl_) { } function in class:talk_base::scoped_ptr [all...] |
/external/chromium_org/cc/resources/ |
managed_tile_state.cc | 13 scoped_ptr<base::Value> ManagedTileBinAsValue(ManagedTileBin bin) { 16 return scoped_ptr<base::Value>( 19 return scoped_ptr<base::Value>( 22 return scoped_ptr<base::Value>( 25 return scoped_ptr<base::Value>( 28 return scoped_ptr<base::Value>( 31 return scoped_ptr<base::Value>( 34 return scoped_ptr<base::Value>( 37 return scoped_ptr<base::Value>( 41 return scoped_ptr<base::Value> [all...] |
scoped_resource_unittest.cc | 18 scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d()); 21 scoped_ptr<ResourceProvider> resource_provider( 23 scoped_ptr<ScopedResource> texture = 36 scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d()); 39 scoped_ptr<ResourceProvider> resource_provider( 41 scoped_ptr<ScopedResource> texture = 58 scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d()); 61 scoped_ptr<ResourceProvider> resource_provider( 64 scoped_ptr<ScopedResource> texture = 77 scoped_ptr<ScopedResource> texture [all...] |
/external/chromium_org/chrome/browser/performance_monitor/ |
performance_monitor_util.cc | 8 #include "base/memory/scoped_ptr.h" 29 scoped_ptr<Event> CreateExtensionEvent(const EventType type, 46 scoped_ptr<base::DictionaryValue> value = event.ToValue(); 47 return scoped_ptr<Event>(new Event( 51 scoped_ptr<Event> CreateRendererFailureEvent(const base::Time& time, 58 scoped_ptr<base::DictionaryValue> value = event.ToValue(); 59 return scoped_ptr<Event>(new Event(type, time, value.Pass())); 62 scoped_ptr<Event> CreateUncleanExitEvent(const base::Time& time, 68 scoped_ptr<base::DictionaryValue> value = event.ToValue(); 69 return scoped_ptr<Event>(new Event [all...] |
/external/chromium_org/remoting/client/ |
audio_decode_scheduler.cc | 20 scoped_ptr<AudioPlayer> audio_player); 23 void ProcessAudioPacket(scoped_ptr<AudioPacket> packet, 35 void DecodePacket(scoped_ptr<AudioPacket> packet, const base::Closure& done); 38 void ProcessDecodedPacket(scoped_ptr<AudioPacket> packet, 43 scoped_ptr<AudioDecoder> decoder_; 44 scoped_ptr<AudioPlayer> audio_player_; 52 scoped_ptr<AudioPlayer> audio_player) 68 scoped_ptr<AudioPacket> packet, 82 scoped_ptr<AudioPacket> packet, 85 scoped_ptr<AudioPacket> decoded_packet = decoder_->Decode(packet.Pass()) [all...] |