Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1646)

Unified Diff: extensions/browser/api/mime_handler_private/mime_handler_private.h

Issue 2080513002: Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/mime_handler_private/mime_handler_private.h
diff --git a/extensions/browser/api/mime_handler_private/mime_handler_private.h b/extensions/browser/api/mime_handler_private/mime_handler_private.h
index 15e34e8117af6e9049b1d1b0fa015ff9144be030..432c40dc9067bf670e95d5971531309759e1f45f 100644
--- a/extensions/browser/api/mime_handler_private/mime_handler_private.h
+++ b/extensions/browser/api/mime_handler_private/mime_handler_private.h
@@ -5,6 +5,7 @@
#ifndef EXTENSIONS_BROWSER_API_MIME_HANDLER_PRIVATE_MIME_HANDLER_PRIVATE_H_
#define EXTENSIONS_BROWSER_API_MIME_HANDLER_PRIVATE_MIME_HANDLER_PRIVATE_H_
+#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "extensions/common/api/mime_handler.mojom.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
@@ -28,12 +29,11 @@ class MimeHandlerServiceImpl : public mime_handler::MimeHandlerService {
~MimeHandlerServiceImpl() override;
// mime_handler::MimeHandlerService overrides.
- void GetStreamInfo(const mojo::Callback<void(mime_handler::StreamInfoPtr)>&
- callback) override;
- void AbortStream(const mojo::Callback<void()>& callback) override;
+ void GetStreamInfo(const GetStreamInfoCallback& callback) override;
+ void AbortStream(const AbortStreamCallback& callback) override;
// Invoked by the callback used to abort |stream_|.
- void OnStreamClosed(const mojo::Callback<void()>& callback);
+ void OnStreamClosed(const AbortStreamCallback& callback);
// A handle to the stream being handled by the MimeHandlerViewGuest.
base::WeakPtr<StreamContainer> stream_;
« no previous file with comments | « device/usb/mojo/device_manager_impl.h ('k') | extensions/browser/api/mime_handler_private/mime_handler_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698