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

Unified Diff: content/browser/renderer_host/pepper_udp_socket.h

Issue 9212047: Add GetBoundAddress to PPB_UDPSocket_Private (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix unit tests that were crashing on windows Created 8 years, 10 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: content/browser/renderer_host/pepper_udp_socket.h
diff --git a/content/browser/renderer_host/pepper_udp_socket.h b/content/browser/renderer_host/pepper_udp_socket.h
index ff3e6e819878e714eb24eb0507e775b7fae6a412..8918bee38505cd7cc24ca88cd176fddd702f36e8 100644
--- a/content/browser/renderer_host/pepper_udp_socket.h
+++ b/content/browser/renderer_host/pepper_udp_socket.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -38,10 +38,11 @@ class PepperUDPSocket {
void SendTo(const std::string& data, const PP_NetAddress_Private& addr);
private:
- void SendBindACK(bool result);
+ void SendBindACKError();
void SendRecvFromACKError();
void SendSendToACKError();
+ void OnBindCompleted(int result);
void OnRecvFromCompleted(int result);
void OnSendToCompleted(int result);
@@ -56,6 +57,7 @@ class PepperUDPSocket {
scoped_refptr<net::IOBuffer> sendto_buffer_;
net::IPEndPoint recvfrom_address_;
+ net::IPEndPoint bound_address_;
DISALLOW_COPY_AND_ASSIGN(PepperUDPSocket);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper_udp_socket.cc » ('j') | content/browser/renderer_host/pepper_udp_socket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698