/external/chromium_org/ppapi/thunk/ |
D | enter.cc | 60 callback_ = new TrackedCallback(resource_, callback); in EnterBase() 70 callback_ = new TrackedCallback(resource_, callback); in EnterBase() 78 DCHECK(!callback_.get()) in ~EnterBase() 84 if (!callback_.get()) { in SetResult() 92 if (callback_->is_blocking()) { in SetResult() 94 retval_ = callback_->BlockUntilComplete(); in SetResult() 102 if (callback_->is_required()) { in SetResult() 104 callback_->PostRun(result); in SetResult() 109 callback_->MarkAsCompleted(); in SetResult() 113 callback_ = NULL; in SetResult() [all …]
|
/external/chromium_org/base/ |
D | cancelable_callback.h | 66 callback_(callback) { in CancelableCallback() 77 callback_.Reset(); in Cancel() 82 return callback_.is_null(); in IsCancelled() 96 callback_ = callback; in Reset() 106 callback_.Run(); in Forward() 123 base::Callback<void(void)> callback_; variable 136 callback_(callback) { in CancelableCallback() 147 callback_.Reset(); in Cancel() 152 return callback_.is_null(); in IsCancelled() 166 callback_ = callback; in Reset() [all …]
|
/external/chromium_org/ppapi/shared_impl/ |
D | proxy_lock.h | 178 : callback_(new CallbackType(callback)) { in RunWhileLockedHelper() 194 scoped_ptr<CallbackType> temp_callback(callback_.Pass()); in CallWhileLocked() 215 if (callback_) { in ~RunWhileLockedHelper() 225 callback_.reset(); in ~RunWhileLockedHelper() 230 scoped_ptr<CallbackType> callback_; 241 : callback_(new CallbackType(callback)) { in RunWhileLockedHelper() 249 scoped_ptr<CallbackType> temp_callback(callback_.Pass()); in CallWhileLocked() 255 if (callback_) { in ~RunWhileLockedHelper() 257 callback_.reset(); in ~RunWhileLockedHelper() 262 scoped_ptr<CallbackType> callback_; [all …]
|
/external/chromium_org/chrome/browser/supervised_user/ |
D | supervised_user_registration_utility_stub.cc | 27 callback_ = callback; in Register() 35 if (callback_.is_null()) in RunSuccessCallback() 37 callback_.Run(GoogleServiceAuthError(GoogleServiceAuthError::NONE), token); in RunSuccessCallback() 38 callback_.Reset(); in RunSuccessCallback() 43 if (callback_.is_null()) in RunFailureCallback() 46 callback_.Run(error, std::string()); in RunFailureCallback() 47 callback_.Reset(); in RunFailureCallback()
|
/external/chromium_org/media/audio/cras/ |
D | cras_input.cc | 22 callback_(NULL), in CrasInputStream() 129 callback_ = callback; in Start() 139 callback_->OnError(this); in Start() 140 callback_ = NULL; in Start() 176 callback_->OnError(this); in Start() 177 callback_ = NULL; in Start() 189 callback_->OnError(this); in Start() 190 callback_ = NULL; in Start() 203 if (!callback_ || !started_) in Stop() 212 callback_ = NULL; in Stop() [all …]
|
/external/chromium_org/media/audio/ |
D | virtual_audio_output_stream.cc | 16 after_close_cb_(after_close_cb), callback_(NULL), volume_(1.0f) { in VirtualAudioOutputStream() 26 DCHECK(!callback_); in ~VirtualAudioOutputStream() 36 DCHECK(!callback_); in Start() 37 callback_ = callback; in Start() 43 if (callback_) { in Stop() 45 callback_ = NULL; in Stop() 78 DCHECK(callback_); in ProvideInput() 80 const int frames = callback_->OnMoreData(audio_bus, AudioBuffersState()); in ProvideInput()
|
D | fake_audio_output_stream.cc | 24 callback_(NULL), in FakeAudioOutputStream() 29 DCHECK(!callback_); in ~FakeAudioOutputStream() 39 callback_ = callback; in Start() 47 callback_ = NULL; in Stop() 51 DCHECK(!callback_); in Close() 64 callback_->OnMoreData(audio_bus, AudioBuffersState()); in CallOnMoreData()
|
/external/chromium_org/remoting/protocol/ |
D | message_reader_unittest.cc | 99 callback_.OnMessage(done_callback); in OnMessage() 105 MockMessageReceivedCallback callback_; member in remoting::protocol::MessageReaderTest 116 EXPECT_CALL(callback_, OnMessage(_)) in TEST_F() 123 Mock::VerifyAndClearExpectations(&callback_); in TEST_F() 141 EXPECT_CALL(callback_, OnMessage(_)) in TEST_F() 160 EXPECT_CALL(callback_, OnMessage(_)) in TEST_F() 168 Mock::VerifyAndClearExpectations(&callback_); in TEST_F() 197 EXPECT_CALL(callback_, OnMessage(_)) in TEST_F() 205 Mock::VerifyAndClearExpectations(&callback_); in TEST_F() 225 EXPECT_CALL(callback_, OnMessage(_)) in TEST_F() [all …]
|
/external/chromium_org/ppapi/tests/ |
D | test_utils.h | 194 : callback_(instance), in TestCompletionCallbackWithOutput() 200 : callback_(instance, force_async), in TestCompletionCallbackWithOutput() 207 : callback_(instance, callback_type), in TestCompletionCallbackWithOutput() 220 callback_.SetDelegate(delegate); in SetDelegate() 222 void WaitForResult(int32_t result) { callback_.WaitForResult(result); } in WaitForResult() 224 callback_.WaitForAbortResult(result); in WaitForAbortResult() 226 bool failed() { return callback_.failed(); } in failed() 227 const std::string& errors() { return callback_.errors(); } in errors() 228 int32_t result() const { return callback_.result(); } in result() 231 return callback_.Reset(); in Reset() [all …]
|
/external/chromium_org/net/quic/ |
D | quic_http_stream_test.cc | 320 TestCompletionCallback callback_; member in net::test::QuicHttpStreamTest 369 net_log_, callback_.callback())); in TEST_P() 371 callback_.callback())); in TEST_P() 377 stream_->ReadResponseHeaders(callback_.callback())); in TEST_P() 383 EXPECT_EQ(OK, callback_.WaitForResult()); in TEST_P() 393 callback_.callback())); in TEST_P() 408 net_log_, callback_.callback())); in TEST_P() 410 callback_.callback())); in TEST_P() 416 stream_->ReadResponseHeaders(callback_.callback())); in TEST_P() 430 EXPECT_EQ(OK, callback_.WaitForResult()); in TEST_P() [all …]
|
D | quic_stream_factory_test.cc | 163 callback_.callback())); in GetSourcePortForNewSessionInner() 165 EXPECT_EQ(OK, callback_.WaitForResult()); in GetSourcePortForNewSessionInner() 215 TestCompletionCallback callback_; member in net::test::QuicStreamFactoryTest 240 callback_.callback())); in TEST_P() 242 EXPECT_EQ(OK, callback_.WaitForResult()); in TEST_P() 259 callback_.callback())); in TEST_P() 288 callback_.callback())); in TEST_P() 318 callback_.callback())); in TEST_P() 324 EXPECT_EQ(OK, callback_.WaitForResult()); in TEST_P() 349 callback_.callback())); in TEST_P() [all …]
|
/external/chromium_org/media/base/ |
D | fake_audio_renderer_sink.cc | 13 callback_(NULL) { in FakeAudioRendererSink() 17 DCHECK(!callback_); in ~FakeAudioRendererSink() 23 DCHECK(!callback_); in Initialize() 26 callback_ = callback; in Initialize() 36 callback_ = NULL; in Stop() 60 *frames_written = callback_->Render(dest, audio_delay_milliseconds); in Render() 68 callback_->OnRenderError(); in OnRenderError()
|
/external/chromium_org/net/socket/ |
D | socks_client_socket_unittest.cc | 46 TestCompletionCallback callback_; member in net::SOCKSClientSocketTest 159 int rv = user_sock_->Connect(callback_.callback()); in TEST_F() 168 rv = callback_.WaitForResult(); in TEST_F() 178 buffer.get(), payload_write.size(), callback_.callback()); in TEST_F() 180 rv = callback_.WaitForResult(); in TEST_F() 185 user_sock_->Read(buffer.get(), payload_read.size(), callback_.callback()); in TEST_F() 187 rv = callback_.WaitForResult(); in TEST_F() 231 int rv = user_sock_->Connect(callback_.callback()); in TEST_F() 239 rv = callback_.WaitForResult(); in TEST_F() 268 int rv = user_sock_->Connect(callback_.callback()); in TEST_F() [all …]
|
/external/chromium_org/third_party/webrtc/modules/desktop_capture/ |
D | screen_capturer_unittest.cc | 41 MockScreenCapturerCallback callback_; member in webrtc::ScreenCapturerTest 73 capturer_->Start(&callback_); in TEST_F() 79 EXPECT_CALL(callback_, OnCaptureCompleted(_)) in TEST_F() 84 EXPECT_CALL(callback_, CreateSharedMemory(_)) in TEST_F() 88 capturer_->Start(&callback_); in TEST_F() 113 EXPECT_CALL(callback_, OnCaptureCompleted(_)) in TEST_F() 118 EXPECT_CALL(callback_, CreateSharedMemory(_)) in TEST_F() 122 capturer_->Start(&callback_); in TEST_F() 138 EXPECT_CALL(callback_, OnCaptureCompleted(_)).WillOnce(SaveArg<0>(&frame)); in TEST_F() 140 capturer_->Start(&callback_); in TEST_F()
|
D | window_capturer_win.cc | 86 Callback* callback_; member in webrtc::__anond4f44cb30111::WindowCapturerWin 102 : callback_(NULL), in WindowCapturerWin() 157 assert(!callback_); in Start() 160 callback_ = callback; in Start() 166 callback_->OnCaptureCompleted(NULL); in Capture() 172 callback_->OnCaptureCompleted(NULL); in Capture() 183 callback_->OnCaptureCompleted(frame); in Capture() 191 callback_->OnCaptureCompleted(NULL); in Capture() 198 callback_->OnCaptureCompleted(NULL); in Capture() 206 callback_->OnCaptureCompleted(NULL); in Capture() [all …]
|
/external/chromium_org/net/http/ |
D | http_auth_handler_mock.cc | 60 EXPECT_TRUE(callback_.is_null()); in ResolveCanonicalName() 62 callback_ = callback; in ResolveCanonicalName() 118 EXPECT_TRUE(callback_.is_null()); in GenerateAuthTokenImpl() 120 callback_ = callback; in GenerateAuthTokenImpl() 136 EXPECT_TRUE(!callback_.is_null()); in OnResolveCanonicalName() 138 CompletionCallback callback = callback_; in OnResolveCanonicalName() 139 callback_.Reset(); in OnResolveCanonicalName() 145 EXPECT_TRUE(!callback_.is_null()); in OnGenerateAuthToken() 149 CompletionCallback callback = callback_; in OnGenerateAuthToken() 150 callback_.Reset(); in OnGenerateAuthToken()
|
/external/chromium_org/base/memory/ |
D | singleton_unittest.cc | 55 if (instance->callback_) in Delete() 56 (instance->callback_)(); in Delete() 63 CallbackSingleton() : callback_(NULL) { } in CallbackSingleton() 64 CallbackFunc callback_; member in __anon87e14eda0111::CallbackSingleton 105 if (instance->callback_) in Delete() 106 (instance->callback_)(); in Delete() 127 CallbackSingletonWithNoLeakTrait::GetInstance()->callback_ = CallOnQuit; in SingletonNoLeak() 131 CallbackSingletonWithLeakTrait::GetInstance()->callback_ = CallOnQuit; in SingletonLeak() 135 return &CallbackSingletonWithLeakTrait::GetInstance()->callback_; in GetLeakySingleton() 144 CallbackSingletonWithStaticTrait::GetInstance()->callback_ = CallOnQuit; in SingletonStatic() [all …]
|
/external/chromium_org/content/browser/ |
D | pepper_flash_settings_helper_impl.cc | 32 if (!callback_.is_null()) in OpenChannelToBroker() 39 callback_ = callback; in OpenChannelToBroker() 56 DCHECK(!callback_.is_null()); in OnPpapiChannelOpened() 59 callback_.Run(true, channel_handle); in OnPpapiChannelOpened() 61 callback_.Run(false, IPC::ChannelHandle()); in OnPpapiChannelOpened() 63 callback_.Reset(); in OnPpapiChannelOpened()
|
/external/chromium_org/chrome/browser/ |
D | chrome_quota_permission_context.cc | 68 content::QuotaPermissionContext::PermissionCallback callback_; member in __anon0d46c1c90111::QuotaPermissionRequest 85 callback_(callback) {} in QuotaPermissionRequest() 120 callback_, in PermissionGranted() 122 callback_ = content::QuotaPermissionContext::PermissionCallback(); in PermissionGranted() 127 callback_, in PermissionDenied() 129 callback_ = content::QuotaPermissionContext::PermissionCallback(); in PermissionDenied() 136 if (!callback_.is_null()) { in RequestFinished() 138 callback_, in RequestFinished() 178 content::QuotaPermissionContext::PermissionCallback callback_; member in __anon0d46c1c90111::RequestQuotaInfoBarDelegate 207 callback_(callback) { in RequestQuotaInfoBarDelegate() [all …]
|
/external/chromium_org/chrome/browser/ui/views/ |
D | pdf_password_dialog.cc | 45 pdf::PasswordDialogClosedCallback callback_; member in __anoncffd8d5b0111::PDFPasswordDialogViews 54 : message_box_view_(NULL), callback_(callback) { in PDFPasswordDialogViews() 65 if (!callback_.is_null()) { in ~PDFPasswordDialogViews() 68 callback_.Run(false, base::string16()); in ~PDFPasswordDialogViews() 89 callback_.Run(false, base::string16()); in Cancel() 90 callback_.Reset(); in Cancel() 95 callback_.Run(true, message_box_view_->text_box()->text()); in Accept() 96 callback_.Reset(); in Accept()
|
/external/chromium_org/media/audio/android/ |
D | audio_record_input.cc | 18 callback_(NULL), in AudioRecordInputStream() 61 callback_->OnData(this, audio_bus_.get(), hardware_delay_bytes, 0.0); in OnData() 76 if (callback_) { in Start() 78 DCHECK_EQ(callback_, callback); in Start() 82 callback_ = callback; in Start() 91 if (!callback_) { in Stop() 101 callback_ = NULL; in Stop() 108 DCHECK(!callback_); in Close()
|
/external/chromium_org/third_party/webrtc/modules/pacing/ |
D | paced_sender_unittest.cc | 64 &clock_, &callback_, kPaceMultiplier * kTargetBitrate, 0)); in PacedSenderTest() 73 EXPECT_CALL(callback_, TimeToSendPacket( in SendAndExpectPacket() 80 MockPacedSenderCallback callback_; member in webrtc::test::PacedSenderTest 99 EXPECT_CALL(callback_, TimeToSendPadding(_)).Times(0); in TEST_F() 104 EXPECT_CALL(callback_, TimeToSendPacket( in TEST_F() 133 EXPECT_CALL(callback_, TimeToSendPadding(_)).Times(0); in TEST_F() 137 EXPECT_CALL(callback_, in TEST_F() 178 EXPECT_CALL(callback_, TimeToSendPadding(_)).Times(0); in TEST_F() 185 EXPECT_CALL(callback_, TimeToSendPacket(ssrc, queued_sequence_number++, in TEST_F() 245 EXPECT_CALL(callback_, TimeToSendPadding(_)).Times(0); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/chromeos/login/easy_unlock/ |
D | easy_unlock_create_keys_operation.cc | 107 ChallengeCreatedCallback callback_; member in chromeos::EasyUnlockCreateKeysOperation::ChallengeCreator 130 callback_(callback), in ChallengeCreator() 150 callback_.Run(false); in OnEcKeyPairGenerated() 157 callback_.Run(false); in OnEcKeyPairGenerated() 173 callback_.Run(false); in OnEskGenerated() 216 callback_.Run(false); in OnPayloadGenerated() 237 callback_.Run(false); in OnChallengeGenerated() 242 callback_.Run(true); in OnChallengeGenerated() 254 callback_(callback), in EasyUnlockCreateKeysOperation() 259 DCHECK(!callback_.is_null()); in EasyUnlockCreateKeysOperation() [all …]
|
/external/chromium_org/remoting/host/ |
D | ipc_audio_capturer.cc | 22 DCHECK(callback_.is_null()); in Start() 25 callback_ = callback; in Start() 31 callback_.Reset(); in Stop() 36 return !callback_.is_null(); in IsStarted() 40 callback_.Run(packet.Pass()); in OnAudioPacket()
|
/external/chromium_org/components/policy/core/common/cloud/ |
D | cloud_policy_client_registration_helper.cc | 53 StringCallback callback_; member in policy::CloudPolicyClientRegistrationHelper::TokenServiceHelper 70 callback_ = callback; in FetchAccessToken() 83 callback_.Run(access_token); in OnGetTokenSuccess() 90 callback_.Run(""); in OnGetTokenFailure() 115 StringCallback callback_; member in policy::CloudPolicyClientRegistrationHelper::LoginTokenHelper 126 callback_ = callback; in FetchAccessToken() 142 callback_.Run(access_token); in OnGetTokenSuccess() 147 callback_.Run(""); in OnGetTokenFailure() 176 callback_ = callback; in StartRegistration() 193 callback_ = callback; in StartRegistrationWithLoginToken() [all …]
|