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

Side by Side 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: CreateNetworkListFromAddrInfo marked as shared. Created 8 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 #include "ppapi/c/pp_errors.h" 24 #include "ppapi/c/pp_errors.h"
25 #include "ppapi/c/pp_instance.h" 25 #include "ppapi/c/pp_instance.h"
26 #include "ppapi/c/pp_stdint.h" 26 #include "ppapi/c/pp_stdint.h"
27 #include "ui/gfx/size.h" 27 #include "ui/gfx/size.h"
28 #include "webkit/fileapi/file_system_types.h" 28 #include "webkit/fileapi/file_system_types.h"
29 #include "webkit/glue/clipboard_client.h" 29 #include "webkit/glue/clipboard_client.h"
30 #include "webkit/plugins/ppapi/dir_contents.h" 30 #include "webkit/plugins/ppapi/dir_contents.h"
31 #include "webkit/quota/quota_types.h" 31 #include "webkit/quota/quota_types.h"
32 32
33 class GURL; 33 class GURL;
34 struct PP_HostResolver_Private_Hint;
34 struct PP_NetAddress_Private; 35 struct PP_NetAddress_Private;
35 class SkBitmap; 36 class SkBitmap;
36 class TransportDIB; 37 class TransportDIB;
37 38
38 namespace base { 39 namespace base {
39 class MessageLoopProxy; 40 class MessageLoopProxy;
40 class Time; 41 class Time;
41 } 42 }
42 43
43 namespace fileapi { 44 namespace fileapi {
44 class FileSystemCallbackDispatcher; 45 class FileSystemCallbackDispatcher;
45 } 46 }
46 47
47 namespace gfx { 48 namespace gfx {
48 class Point; 49 class Point;
49 } 50 }
50 51
51 namespace gpu { 52 namespace gpu {
52 class CommandBuffer; 53 class CommandBuffer;
53 } 54 }
54 55
55 namespace ppapi { 56 namespace ppapi {
57 class PPB_HostResolver_Shared;
56 struct DeviceRefData; 58 struct DeviceRefData;
57 struct Preferences; 59 struct Preferences;
58 } 60 }
59 61
60 namespace skia { 62 namespace skia {
61 class PlatformCanvas; 63 class PlatformCanvas;
62 } 64 }
63 65
64 namespace WebKit { 66 namespace WebKit {
65 class WebFileChooserCompletion; 67 class WebFileChooserCompletion;
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 474
473 // For PPB_TCPServerSocket_Private. 475 // For PPB_TCPServerSocket_Private.
474 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, 476 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket,
475 uint32 temp_socket_id, 477 uint32 temp_socket_id,
476 const PP_NetAddress_Private& addr, 478 const PP_NetAddress_Private& addr,
477 int32_t backlog) = 0; 479 int32_t backlog) = 0;
478 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0; 480 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0;
479 virtual void TCPServerSocketStopListening(uint32 real_socket_id, 481 virtual void TCPServerSocketStopListening(uint32 real_socket_id,
480 uint32 temp_socket_id) = 0; 482 uint32 temp_socket_id) = 0;
481 483
484 // For PPB_HostResolver_Private.
485 virtual void RegisterHostResolver(
486 ::ppapi::PPB_HostResolver_Shared* host_resolver,
487 uint32 host_resolver_id) = 0;
488 virtual void HostResolverResolve(
489 uint32 host_resolver_id,
490 const std::string& host,
491 uint16_t port,
492 const PP_HostResolver_Private_Hint* hint) = 0;
493 virtual void UnregisterHostResolver(uint32 host_resolver_id) = 0;
494
482 // Show the given context menu at the given position (in the plugin's 495 // Show the given context menu at the given position (in the plugin's
483 // coordinates). 496 // coordinates).
484 virtual int32_t ShowContextMenu( 497 virtual int32_t ShowContextMenu(
485 PluginInstance* instance, 498 PluginInstance* instance,
486 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 499 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
487 const gfx::Point& position) = 0; 500 const gfx::Point& position) = 0;
488 501
489 // Create a fullscreen container for a plugin instance. This effectively 502 // Create a fullscreen container for a plugin instance. This effectively
490 // switches the plugin to fullscreen. 503 // switches the plugin to fullscreen.
491 virtual FullscreenContainer* CreateFullscreenContainer( 504 virtual FullscreenContainer* CreateFullscreenContainer(
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 const EnumerateDevicesCallback& callback) = 0; 592 const EnumerateDevicesCallback& callback) = 0;
580 // Create a ClipboardClient for writing to the clipboard. The caller will own 593 // Create a ClipboardClient for writing to the clipboard. The caller will own
581 // the pointer to this. 594 // the pointer to this.
582 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 595 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
583 }; 596 };
584 597
585 } // namespace ppapi 598 } // namespace ppapi
586 } // namespace webkit 599 } // namespace webkit
587 600
588 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 601 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698