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

Unified Diff: content/child/navigator_connect/navigator_connect_provider.h

Issue 810953007: Make use of blink::WebNavigatorConnectCallbacks typedef (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | content/child/navigator_connect/navigator_connect_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/navigator_connect/navigator_connect_provider.h
diff --git a/content/child/navigator_connect/navigator_connect_provider.h b/content/child/navigator_connect/navigator_connect_provider.h
index 8bbea30b8aa56cc6f264104dea0757d57e255191..c8807238bcecc78dc46da9cb7a25211dc665aa7a 100644
--- a/content/child/navigator_connect/navigator_connect_provider.h
+++ b/content/child/navigator_connect/navigator_connect_provider.h
@@ -18,8 +18,6 @@ class SingleThreadTaskRunner;
}
namespace blink {
-template <typename T1, typename T2>
-class WebCallbacks;
class WebMessagePortChannel;
class WebString;
}
@@ -50,7 +48,7 @@ class NavigatorConnectProvider : public blink::WebNavigatorConnectProvider,
virtual void connect(const blink::WebURL& target_url,
const blink::WebString& origin,
blink::WebMessagePortChannel* port,
- blink::WebCallbacks<void, void>* callbacks);
+ blink::WebNavigatorConnectCallbacks* callbacks);
void OnMessageReceived(const IPC::Message& msg);
@@ -68,7 +66,7 @@ class NavigatorConnectProvider : public blink::WebNavigatorConnectProvider,
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
scoped_refptr<base::SingleThreadTaskRunner> main_loop_;
- typedef blink::WebCallbacks<void, void> ConnectCallback;
+ typedef blink::WebNavigatorConnectCallbacks ConnectCallback;
IDMap<ConnectCallback, IDMapOwnPointer> requests_;
DISALLOW_COPY_AND_ASSIGN(NavigatorConnectProvider);
« no previous file with comments | « no previous file | content/child/navigator_connect/navigator_connect_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698