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

Unified Diff: webkit/plugins/ppapi/plugin_delegate.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: webkit/plugins/ppapi/plugin_delegate.h
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index 985ff9864f7addef73a1226f688a1cfb7752a035..15ccbaa3f987a86fd88fc6406bba8a8cf9d11881 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -31,6 +31,7 @@
#include "webkit/quota/quota_types.h"
class GURL;
+struct PP_HostResolver_Private_Hint;
struct PP_NetAddress_Private;
class SkBitmap;
class TransportDIB;
@@ -53,6 +54,7 @@ class CommandBuffer;
}
namespace ppapi {
+class PPB_HostResolver_Shared;
struct DeviceRefData;
struct Preferences;
}
@@ -479,6 +481,17 @@ class PluginDelegate {
virtual void TCPServerSocketStopListening(uint32 real_socket_id,
uint32 temp_socket_id) = 0;
+ // For PPB_HostResolver_Private.
+ virtual void RegisterHostResolver(
+ ::ppapi::PPB_HostResolver_Shared* host_resolver,
+ uint32 host_resolver_id) = 0;
+ virtual void HostResolverResolve(
yzshen1 2012/02/28 08:29:00 Please use VerbNoun, say, ResolveHost.
ygorshenin1 2012/02/28 12:09:47 Why? As you can see below all names has the form I
+ uint32 host_resolver_id,
+ const std::string& host,
+ uint16_t port,
+ const PP_HostResolver_Private_Hint* hint) = 0;
+ virtual void UnregisterHostResolver(uint32 host_resolver_id) = 0;
+
// Show the given context menu at the given position (in the plugin's
// coordinates).
virtual int32_t ShowContextMenu(

Powered by Google App Engine
This is Rietveld 408576698