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

Unified Diff: chrome/browser/extensions/api/socket/socket_api.h

Issue 15039012: Add the ability to use AllowAddressReuse for UDP sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged with master Created 7 years, 7 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: chrome/browser/extensions/api/socket/socket_api.h
diff --git a/chrome/browser/extensions/api/socket/socket_api.h b/chrome/browser/extensions/api/socket/socket_api.h
index 99a7ef2ec171c6dc98eb83e08566916b92a36f86..0afc7819456bc73ce5d3e48697bf6203e36d736b 100644
--- a/chrome/browser/extensions/api/socket/socket_api.h
+++ b/chrome/browser/extensions/api/socket/socket_api.h
@@ -436,6 +436,24 @@ class SocketGetJoinedGroupsFunction : public SocketAsyncApiFunction {
private:
scoped_ptr<api::socket::GetJoinedGroups::Params> params_;
};
+
+class SocketAllowAddressReuseFunction : public SocketAsyncApiFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("socket.allowAddressReuse",
+ SOCKET_ALLOW_ADDRESS_REUSE)
+
+ SocketAllowAddressReuseFunction();
+
+ protected:
+ virtual ~SocketAllowAddressReuseFunction();
+
+ // AsyncApiFunction
+ virtual bool Prepare() OVERRIDE;
+ virtual void Work() OVERRIDE;
+
+ private:
+ scoped_ptr<api::socket::AllowAddressReuse::Params> params_;
+};
miket_OOO 2013/05/24 20:53:48 add vertical whitespace (this was an error before
Noam Samuel 2013/05/24 21:43:53 Done.
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/socket/socket_api.cc » ('j') | chrome/browser/extensions/api/socket/socket_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698