Home
last modified time | relevance | path

Searched refs:scoped_refptr (Results 1 – 25 of 421) sorted by relevance

12345678910>>...17

/external/libchrome/base/memory/
Dref_counted.h270 class scoped_refptr {
274 scoped_refptr() : ptr_(NULL) {
277 scoped_refptr(T* p) : ptr_(p) {
283 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {
292 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) {
299 scoped_refptr(scoped_refptr&& r) : ptr_(r.get()) { r.ptr_ = nullptr; }
305 scoped_refptr(scoped_refptr<U>&& r) : ptr_(r.get()) {
309 ~scoped_refptr() {
326 scoped_refptr<T>& operator=(T* p) {
337 scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
[all …]
Dref_counted_unittest.cc28 class CheckDerivedMemberAccess : public scoped_refptr<SelfAssign> {
45 scoped_refptr<ScopedRefPtrToSelf> self_ptr_;
115 scoped_refptr<Other> Overloaded(scoped_refptr<Other> other) { in Overloaded()
119 scoped_refptr<SelfAssign> Overloaded(scoped_refptr<SelfAssign> self_assign) { in Overloaded()
128 scoped_refptr<SelfAssign> var(p); in TEST()
154 check->self_ptr_ = scoped_refptr<ScopedRefPtrToSelf>(); in TEST()
159 scoped_refptr<base::OpaqueRefCounted> p = base::MakeOpaqueRefCounted(); in TEST()
162 scoped_refptr<base::OpaqueRefCounted> q; in TEST()
169 scoped_refptr<SelfAssign> ptr_to_an_instance = new SelfAssign; in TEST()
182 scoped_refptr<SelfAssign> null_ptr; in TEST()
[all …]
Dref_counted_memory_unittest.cc14 scoped_refptr<RefCountedMemory> mem = new RefCountedStaticMemory( in TEST()
25 scoped_refptr<RefCountedMemory> mem = RefCountedBytes::TakeVector(&data); in TEST()
33 scoped_refptr<RefCountedMemory> mem2; in TEST()
46 scoped_refptr<RefCountedMemory> mem = RefCountedString::TakeString(&s); in TEST()
57 scoped_refptr<RefCountedMemory> mem1 = RefCountedString::TakeString(&s1); in TEST()
64 scoped_refptr<RefCountedMemory> mem2 = RefCountedBytes::TakeVector(&d2); in TEST()
69 scoped_refptr<RefCountedMemory> mem3 = RefCountedString::TakeString(&s3); in TEST()
77 scoped_refptr<RefCountedMemory> mem = RefCountedString::TakeString(&s); in TEST()
/external/v8/tools/clang/rewrite_scoped_refptr/tests/
Dscoped_refptr.h10 class scoped_refptr {
13 scoped_refptr() : ptr_(0) {} in scoped_refptr() function
14 scoped_refptr(T* p) : ptr_(p) {} in scoped_refptr() function
15 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) {} in scoped_refptr() function
18 scoped_refptr(const scoped_refptr<U>& r) in scoped_refptr() function
21 ~scoped_refptr() {} in ~scoped_refptr()
27 scoped_refptr<T>& operator=(T* p) {
31 scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
35 scoped_refptr<T>& operator=(const scoped_refptr<U>& r) {
/external/webrtc/webrtc/base/
Dscoped_ref_ptr.h71 class scoped_refptr {
73 scoped_refptr() : ptr_(NULL) { in scoped_refptr() function
76 scoped_refptr(T* p) : ptr_(p) { in scoped_refptr() function
81 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { in scoped_refptr() function
87 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { in scoped_refptr() function
92 ~scoped_refptr() { in ~scoped_refptr()
112 scoped_refptr<T>& operator=(T* p) {
122 scoped_refptr<T>& operator=(const scoped_refptr<T>& r) {
127 scoped_refptr<T>& operator=(const scoped_refptr<U>& r) {
137 void swap(scoped_refptr<T>& r) { in swap()
/external/libchrome/base/trace_event/
Dmemory_dump_manager.h79 scoped_refptr<SingleThreadTaskRunner> task_runner);
82 scoped_refptr<SingleThreadTaskRunner> task_runner,
87 scoped_refptr<SequencedTaskRunner> task_runner,
125 const scoped_refptr<MemoryDumpSessionState>& session_state_for_testing() in session_state_for_testing()
175 bool operator()(const scoped_refptr<MemoryDumpProviderInfo>& a,
176 const scoped_refptr<MemoryDumpProviderInfo>& b) const;
179 std::set<scoped_refptr<MemoryDumpProviderInfo>, Comparator>;
183 scoped_refptr<SequencedTaskRunner> task_runner,
198 const scoped_refptr<SequencedTaskRunner> task_runner;
227 scoped_refptr<MemoryDumpSessionState> session_state,
[all …]
/external/libmojo/ipc/
Dipc_message_attachment_set.cc29 const std::vector<scoped_refptr<MessageAttachment>>& attachments, in count_attachments_of_type()
32 for (const scoped_refptr<MessageAttachment>& attachment : attachments) { in count_attachments_of_type()
85 scoped_refptr<MessageAttachment> attachment, in AddAttachment()
106 scoped_refptr<BrokerableAttachment> a(brokerable_attachment); in AddAttachment()
116 scoped_refptr<MessageAttachment> attachment) { in AddAttachment()
122 scoped_refptr<MessageAttachment>
127 return scoped_refptr<MessageAttachment>(); in GetNonBrokerableAttachmentAt()
157 return scoped_refptr<MessageAttachment>(); in GetNonBrokerableAttachmentAt()
164 scoped_refptr<MessageAttachment>
169 return scoped_refptr<MessageAttachment>(); in GetBrokerableAttachmentAt()
[all …]
Dipc_message_attachment_set.h67 bool AddAttachment(scoped_refptr<MessageAttachment> attachment,
72 bool AddAttachment(scoped_refptr<MessageAttachment> attachment);
81 scoped_refptr<MessageAttachment> GetNonBrokerableAttachmentAt(unsigned index);
85 scoped_refptr<MessageAttachment> GetBrokerableAttachmentAt(unsigned index);
93 std::vector<scoped_refptr<IPC::BrokerableAttachment>>
99 const scoped_refptr<BrokerableAttachment>& attachment);
147 std::vector<scoped_refptr<MessageAttachment>> attachments_;
150 std::vector<scoped_refptr<BrokerableAttachment>> brokerable_attachments_;
Dattachment_broker.h77 const scoped_refptr<BrokerableAttachment>& attachment,
83 scoped_refptr<BrokerableAttachment>* attachment);
89 const scoped_refptr<base::SequencedTaskRunner>& runner);
102 scoped_refptr<base::SingleThreadTaskRunner> runner);
118 using AttachmentVector = std::vector<scoped_refptr<BrokerableAttachment>>;
122 const scoped_refptr<BrokerableAttachment>& attachment);
161 scoped_refptr<base::SequencedTaskRunner> runner;
/external/libmojo/mojo/edk/system/
Dshared_buffer_dispatcher.h50 scoped_refptr<SharedBufferDispatcher>* result);
54 const scoped_refptr<PlatformSharedBuffer>& shared_buffer,
55 scoped_refptr<SharedBufferDispatcher>* result);
58 static scoped_refptr<SharedBufferDispatcher> Deserialize(
68 scoped_refptr<PlatformSharedBuffer> PassPlatformSharedBuffer();
75 scoped_refptr<Dispatcher>* new_dispatcher) override;
92 static scoped_refptr<SharedBufferDispatcher> CreateInternal( in CreateInternal()
93 scoped_refptr<PlatformSharedBuffer> shared_buffer) { in CreateInternal()
99 scoped_refptr<PlatformSharedBuffer> shared_buffer);
120 scoped_refptr<PlatformSharedBuffer> shared_buffer_;
Dwait_set_dispatcher_unittest.cc42 const scoped_refptr<WaitSetDispatcher>& wait_set, in GetOneReadyDispatcher()
43 scoped_refptr<Dispatcher>* ready_dispatcher, in GetOneReadyDispatcher()
58 void CreateMessagePipe(scoped_refptr<MessagePipeDispatcher>* d0, in CreateMessagePipe()
59 scoped_refptr<MessagePipeDispatcher>* d1) { in CreateMessagePipe()
64 *d0 = scoped_refptr<MessagePipeDispatcher>( in CreateMessagePipe()
66 *d1 = scoped_refptr<MessagePipeDispatcher>( in CreateMessagePipe()
74 void CloseOnShutdown(const scoped_refptr<Dispatcher>& dispatcher) { in CloseOnShutdown()
108 scoped_refptr<MessagePipeDispatcher> dispatcher0_;
109 scoped_refptr<MessagePipeDispatcher> dispatcher1_;
126 scoped_refptr<WaitSetDispatcher> wait_set = new WaitSetDispatcher(); in TEST_F()
[all …]
Dcore.cc145 scoped_refptr<base::TaskRunner> io_task_runner = in ~Core()
153 void Core::SetIOTaskRunner(scoped_refptr<base::TaskRunner> io_task_runner) { in SetIOTaskRunner()
164 scoped_refptr<Dispatcher> Core::GetDispatcher(MojoHandle handle) { in GetDispatcher()
194 MojoHandle Core::AddDispatcher(scoped_refptr<Dispatcher> dispatcher) { in AddDispatcher()
231 scoped_refptr<Dispatcher> d; in PassWrappedPlatformHandle()
252 scoped_refptr<PlatformSharedBuffer> platform_buffer = in CreateSharedBufferWrapper()
258 scoped_refptr<SharedBufferDispatcher> dispatcher; in CreateSharedBufferWrapper()
278 scoped_refptr<Dispatcher> dispatcher; in PassSharedMemoryHandle()
296 scoped_refptr<PlatformSharedBuffer> platform_shared_buffer = in PassSharedMemoryHandle()
364 scoped_refptr<Dispatcher> dispatcher; in Close()
[all …]
Dshared_buffer_dispatcher.cc81 scoped_refptr<SharedBufferDispatcher>* result) { in Create()
87 scoped_refptr<PlatformSharedBuffer> shared_buffer; in Create()
104 const scoped_refptr<PlatformSharedBuffer>& shared_buffer, in CreateFromPlatformSharedBuffer()
105 scoped_refptr<SharedBufferDispatcher>* result) { in CreateFromPlatformSharedBuffer()
114 scoped_refptr<SharedBufferDispatcher> SharedBufferDispatcher::Deserialize( in Deserialize()
149 scoped_refptr<PlatformSharedBuffer> shared_buffer( in Deserialize()
162 scoped_refptr<PlatformSharedBuffer>
168 scoped_refptr<PlatformSharedBuffer> retval = shared_buffer_; in PassPlatformSharedBuffer()
188 scoped_refptr<Dispatcher>* new_dispatcher) { in DuplicateBufferHandle()
204 scoped_refptr<PlatformSharedBuffer> read_only_buffer = in DuplicateBufferHandle()
[all …]
/external/webrtc/talk/app/webrtc/
Dpeerconnectionfactory.cc59 const rtc::scoped_refptr<RefCountedDtlsIdentityStore>& store) in DtlsIdentityStoreWrapper()
66 const rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>& in RequestIdentity()
72 rtc::scoped_refptr<RefCountedDtlsIdentityStore> store_;
77 rtc::scoped_refptr<PeerConnectionFactoryInterface>
79 rtc::scoped_refptr<PeerConnectionFactory> pc_factory( in CreatePeerConnectionFactory()
97 rtc::scoped_refptr<PeerConnectionFactoryInterface>
104 rtc::scoped_refptr<PeerConnectionFactory> pc_factory( in CreatePeerConnectionFactory()
209 rtc::scoped_refptr<AudioSourceInterface>
213 rtc::scoped_refptr<LocalAudioSource> source( in CreateAudioSource()
218 rtc::scoped_refptr<VideoSourceInterface>
[all …]
Dpeerconnectioninterface.h260 std::vector<rtc::scoped_refptr<rtc::RTCCertificate>> certificates;
317 virtual rtc::scoped_refptr<StreamCollectionInterface>
321 virtual rtc::scoped_refptr<StreamCollectionInterface>
336 virtual rtc::scoped_refptr<DtmfSenderInterface> CreateDtmfSender(
343 virtual rtc::scoped_refptr<RtpSenderInterface> CreateSender( in CreateSender()
346 return rtc::scoped_refptr<RtpSenderInterface>(); in CreateSender()
349 virtual std::vector<rtc::scoped_refptr<RtpSenderInterface>> GetSenders() in GetSenders()
351 return std::vector<rtc::scoped_refptr<RtpSenderInterface>>(); in GetSenders()
354 virtual std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers() in GetReceivers()
356 return std::vector<rtc::scoped_refptr<RtpReceiverInterface>>(); in GetReceivers()
[all …]
Drtpsenderreceiver_unittest.cc100 static rtc::scoped_refptr<FakeVideoSource> Create(bool remote) { in Create()
131 rtc::scoped_refptr<VideoSourceInterface> source( in AddVideoTrack()
201 rtc::scoped_refptr<AudioRtpSender> audio_rtp_sender_;
202 rtc::scoped_refptr<VideoRtpSender> video_rtp_sender_;
203 rtc::scoped_refptr<AudioRtpReceiver> audio_rtp_receiver_;
204 rtc::scoped_refptr<VideoRtpReceiver> video_rtp_receiver_;
205 rtc::scoped_refptr<MediaStreamInterface> stream_;
206 rtc::scoped_refptr<VideoTrackInterface> video_track_;
207 rtc::scoped_refptr<AudioTrackInterface> audio_track_;
308 rtc::scoped_refptr<AudioRtpSender> sender = in TEST_F()
[all …]
Dpeerconnection.h81 rtc::scoped_refptr<StreamCollectionInterface> local_streams() override;
82 rtc::scoped_refptr<StreamCollectionInterface> remote_streams() override;
88 rtc::scoped_refptr<DtmfSenderInterface> CreateDtmfSender(
91 rtc::scoped_refptr<RtpSenderInterface> CreateSender(
95 std::vector<rtc::scoped_refptr<RtpSenderInterface>> GetSenders()
97 std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers()
100 rtc::scoped_refptr<DataChannelInterface> CreateDataChannel(
137 virtual const std::vector<rtc::scoped_refptr<DataChannel>>&
305 rtc::scoped_refptr<DataChannel> InternalCreateDataChannel(
327 std::vector<rtc::scoped_refptr<RtpSenderInterface>>::iterator
[all …]
Dpeerconnectionfactoryproxy.h44 rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( in PROXY_METHOD1()
50 return owner_thread_->Invoke<rtc::scoped_refptr<PeerConnectionInterface>>( in PROXY_METHOD1()
54 PROXY_METHOD1(rtc::scoped_refptr<MediaStreamInterface>, in PROXY_METHOD1()
56 PROXY_METHOD1(rtc::scoped_refptr<AudioSourceInterface>, in PROXY_METHOD1()
58 PROXY_METHOD2(rtc::scoped_refptr<VideoSourceInterface>, in PROXY_METHOD1()
61 PROXY_METHOD2(rtc::scoped_refptr<VideoTrackInterface>, in PROXY_METHOD1()
63 PROXY_METHOD2(rtc::scoped_refptr<AudioTrackInterface>, in PROXY_METHOD1()
71 rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection_ot( in PROXY_METHOD1()
Dpeerconnectionendtoend_unittest.cc62 typedef std::vector<rtc::scoped_refptr<DataChannelInterface> >
170 rtc::scoped_refptr<PeerConnectionTestWrapper> caller_;
171 rtc::scoped_refptr<PeerConnectionTestWrapper> callee_;
207 rtc::scoped_refptr<DataChannelInterface> caller_dc( in TEST_F()
209 rtc::scoped_refptr<DataChannelInterface> callee_dc( in TEST_F()
242 rtc::scoped_refptr<DataChannelInterface> dummy( in TEST_F()
248 rtc::scoped_refptr<DataChannelInterface> caller_dc( in TEST_F()
250 rtc::scoped_refptr<DataChannelInterface> callee_dc( in TEST_F()
270 rtc::scoped_refptr<DataChannelInterface> caller_dc_1( in TEST_F()
272 rtc::scoped_refptr<DataChannelInterface> callee_dc_1( in TEST_F()
[all …]
Dpeerconnectionproxy.h38 PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>,
40 PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>,
44 PROXY_METHOD1(rtc::scoped_refptr<DtmfSenderInterface>,
46 PROXY_METHOD2(rtc::scoped_refptr<RtpSenderInterface>,
50 PROXY_CONSTMETHOD0(std::vector<rtc::scoped_refptr<RtpSenderInterface>>,
52 PROXY_CONSTMETHOD0(std::vector<rtc::scoped_refptr<RtpReceiverInterface>>,
57 PROXY_METHOD2(rtc::scoped_refptr<DataChannelInterface>,
Dpeerconnectionfactory.h58 rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection(
67 rtc::scoped_refptr<MediaStreamInterface>
70 rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource(
73 rtc::scoped_refptr<VideoSourceInterface> CreateVideoSource(
77 rtc::scoped_refptr<VideoTrackInterface>
81 rtc::scoped_refptr<AudioTrackInterface>
114 rtc::scoped_refptr<AudioDeviceModule> default_adm_;
127 rtc::scoped_refptr<RefCountedDtlsIdentityStore> dtls_identity_store_;
/external/libmojo/mojo/public/cpp/bindings/tests/
Dbind_task_runner_unittest.cc123 scoped_refptr<base::SingleThreadTaskRunner> runner) in IntegerSenderImpl()
154 scoped_refptr<base::SingleThreadTaskRunner> runner, in IntegerSenderConnectionImpl()
155 scoped_refptr<base::SingleThreadTaskRunner> sender_runner) in IntegerSenderConnectionImpl()
180 scoped_refptr<base::SingleThreadTaskRunner> sender_runner_;
187 binding_task_runner_ = scoped_refptr<TestTaskRunner>(new TestTaskRunner); in SetUp()
188 ptr_task_runner_ = scoped_refptr<TestTaskRunner>(new TestTaskRunner); in SetUp()
195 scoped_refptr<TestTaskRunner> binding_task_runner_;
196 scoped_refptr<TestTaskRunner> ptr_task_runner_;
208 scoped_refptr<TestTaskRunner>(new TestTaskRunner); in SetUp()
210 scoped_refptr<TestTaskRunner>(new TestTaskRunner); in SetUp()
[all …]
/external/libchrome/base/metrics/
Dfield_trial_unittest.cc26 scoped_refptr<base::FieldTrial> CreateFieldTrial( in CreateFieldTrial()
90 scoped_refptr<FieldTrial> trial1 = in TEST_F()
101 scoped_refptr<FieldTrial> trial2 = in TEST_F()
127 scoped_refptr<FieldTrial> trial_true = in TEST_F()
135 scoped_refptr<FieldTrial> trial_false = in TEST_F()
147 scoped_refptr<FieldTrial> trial; in TEST_F()
176 scoped_refptr<FieldTrial> trial = in TEST_F()
201 scoped_refptr<FieldTrial> trial = in TEST_F()
225 scoped_refptr<FieldTrial> trial = in TEST_F()
272 scoped_refptr<FieldTrial> trial = in TEST_F()
[all …]
/external/webrtc/webrtc/modules/desktop_capture/
Ddesktop_capture_options.h42 void set_x_display(rtc::scoped_refptr<SharedXDisplay> x_display) { in set_x_display()
52 rtc::scoped_refptr<DesktopConfigurationMonitor> m) { in set_configuration_monitor()
60 rtc::scoped_refptr<FullScreenChromeWindowDetector> detector) { in set_full_screen_chrome_window_detector()
90 rtc::scoped_refptr<SharedXDisplay> x_display_;
94 rtc::scoped_refptr<DesktopConfigurationMonitor> configuration_monitor_;
95 rtc::scoped_refptr<FullScreenChromeWindowDetector>
/external/libchrome/base/message_loop/
Dmessage_loop_task_runner_unittest.cc80 static void RecordLoop(scoped_refptr<LoopRecorder> recorder) { in RecordLoop()
84 static void RecordLoopAndQuit(scoped_refptr<LoopRecorder> recorder) { in RecordLoopAndQuit()
112 scoped_refptr<LoopRecorder> task_recoder = in TEST_F()
114 scoped_refptr<LoopRecorder> reply_recoder = in TEST_F()
145 scoped_refptr<LoopRecorder> task_recoder = in TEST_F()
147 scoped_refptr<LoopRecorder> reply_recoder = in TEST_F()
151 scoped_refptr<SingleThreadTaskRunner> task_runner = in TEST_F()
179 scoped_refptr<LoopRecorder> task_recoder = in TEST_F()
181 scoped_refptr<LoopRecorder> reply_recoder = in TEST_F()
214 scoped_refptr<LoopRecorder> task_recoder = in TEST_F()
[all …]

12345678910>>...17