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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.h

Issue 9455092: HostResolver is exposed to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added shared declaration of GetPPB_HostResolver_Private_0_1_Thunk. 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/renderer/pepper/pepper_plugin_delegate_impl.h
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.h b/content/renderer/pepper/pepper_plugin_delegate_impl.h
index e5b6ad40c9f762ebf93262ea8c6f055d6dd80b13..c10279b3053a1d4e7a9fee98b11e26aa5523d1fa 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.h
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.h
@@ -19,6 +19,7 @@
#include "content/public/renderer/render_view_observer.h"
#include "content/renderer/mouse_lock_dispatcher.h"
#include "content/renderer/pepper/pepper_parent_context_provider.h"
+#include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
#include "ppapi/shared_impl/private/tcp_socket_private_impl.h"
#include "ppapi/shared_impl/private/udp_socket_private_impl.h"
#include "ui/base/ime/text_input_type.h"
@@ -44,6 +45,10 @@ namespace IPC {
struct ChannelHandle;
}
+namespace ppapi {
+class NetworkList;
+}
+
namespace webkit {
struct WebPluginInfo;
namespace ppapi {
@@ -299,6 +304,16 @@ class PepperPluginDelegateImpl
virtual void TCPServerSocketStopListening(uint32 real_socket_id,
uint32 temp_socket_id) OVERRIDE;
+ virtual void RegisterHostResolver(
+ ppapi::PPB_HostResolver_Shared* host_resolver,
+ uint32 host_resolver_id) OVERRIDE;
+ virtual void HostResolverResolve(
+ uint32 host_resolver_id,
+ const std::string& host,
+ uint16_t port,
+ const PP_HostResolver_Private_Hint* hint) OVERRIDE;
+ virtual void UnregisterHostResolver(uint32 host_resolver_id) OVERRIDE;
+
virtual int32_t ShowContextMenu(
webkit::ppapi::PluginInstance* instance,
webkit::ppapi::PPB_Flash_Menu_Impl* menu,
@@ -386,6 +401,9 @@ class PepperPluginDelegateImpl
uint32 accepted_socket_id,
const PP_NetAddress_Private& local_addr,
const PP_NetAddress_Private& remote_addr);
+ void OnHostResolverResolveACK(uint32 host_resolver_id,
+ bool succeeded,
+ const ppapi::NetworkList& network_list);
CONTENT_EXPORT int GetRoutingId() const;
@@ -445,6 +463,8 @@ class PepperPluginDelegateImpl
IDMap<webkit::ppapi::PPB_TCPServerSocket_Private_Impl>
uninitialized_tcp_server_sockets_;
+ IDMap<ppapi::PPB_HostResolver_Shared> host_resolvers_;
+
IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_Menu_Impl>,
IDMapOwnPointer> pending_context_menus_;

Powered by Google App Engine
This is Rietveld 408576698