| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/presentation/presentation_service_impl.h" | 5 #include "content/browser/presentation/presentation_service_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 ::~NewSessionMojoCallbackWrapper() { | 599 ::~NewSessionMojoCallbackWrapper() { |
| 600 if (!callback_.is_null()) | 600 if (!callback_.is_null()) |
| 601 InvokeNewSessionMojoCallbackWithError(callback_); | 601 InvokeNewSessionMojoCallbackWithError(callback_); |
| 602 } | 602 } |
| 603 | 603 |
| 604 void PresentationServiceImpl::NewSessionMojoCallbackWrapper::Run( | 604 void PresentationServiceImpl::NewSessionMojoCallbackWrapper::Run( |
| 605 blink::mojom::PresentationSessionInfoPtr session, | 605 blink::mojom::PresentationSessionInfoPtr session, |
| 606 blink::mojom::PresentationErrorPtr error) { | 606 blink::mojom::PresentationErrorPtr error) { |
| 607 DCHECK(!callback_.is_null()); | 607 DCHECK(!callback_.is_null()); |
| 608 callback_.Run(std::move(session), std::move(error)); | 608 callback_.Run(std::move(session), std::move(error)); |
| 609 callback_.reset(); | 609 callback_.Reset(); |
| 610 } | 610 } |
| 611 | 611 |
| 612 } // namespace content | 612 } // namespace content |
| OLD | NEW |