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

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: Sync. 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;
59 struct HostPortPair;
57 struct Preferences; 60 struct Preferences;
58 } 61 }
59 62
60 namespace skia { 63 namespace skia {
61 class PlatformCanvas; 64 class PlatformCanvas;
62 } 65 }
63 66
64 namespace WebKit { 67 namespace WebKit {
65 class WebFileChooserCompletion; 68 class WebFileChooserCompletion;
66 class WebGamepads; 69 class WebGamepads;
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 479
477 // For PPB_TCPServerSocket_Private. 480 // For PPB_TCPServerSocket_Private.
478 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, 481 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket,
479 uint32 temp_socket_id, 482 uint32 temp_socket_id,
480 const PP_NetAddress_Private& addr, 483 const PP_NetAddress_Private& addr,
481 int32_t backlog) = 0; 484 int32_t backlog) = 0;
482 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0; 485 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0;
483 virtual void TCPServerSocketStopListening(uint32 real_socket_id, 486 virtual void TCPServerSocketStopListening(uint32 real_socket_id,
484 uint32 temp_socket_id) = 0; 487 uint32 temp_socket_id) = 0;
485 488
489 // For PPB_HostResolver_Private.
490 virtual void RegisterHostResolver(
491 ::ppapi::PPB_HostResolver_Shared* host_resolver,
492 uint32 host_resolver_id) = 0;
493 virtual void HostResolverResolve(
494 uint32 host_resolver_id,
495 const ::ppapi::HostPortPair& host_port,
496 const PP_HostResolver_Private_Hint* hint) = 0;
497 virtual void UnregisterHostResolver(uint32 host_resolver_id) = 0;
498
486 // Add/remove a network list observer. 499 // Add/remove a network list observer.
487 virtual bool AddNetworkListObserver( 500 virtual bool AddNetworkListObserver(
488 webkit_glue::NetworkListObserver* observer) = 0; 501 webkit_glue::NetworkListObserver* observer) = 0;
489 virtual void RemoveNetworkListObserver( 502 virtual void RemoveNetworkListObserver(
490 webkit_glue::NetworkListObserver* observer) = 0; 503 webkit_glue::NetworkListObserver* observer) = 0;
491 504
492 // Show the given context menu at the given position (in the plugin's 505 // Show the given context menu at the given position (in the plugin's
493 // coordinates). 506 // coordinates).
494 virtual int32_t ShowContextMenu( 507 virtual int32_t ShowContextMenu(
495 PluginInstance* instance, 508 PluginInstance* instance,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 const EnumerateDevicesCallback& callback) = 0; 602 const EnumerateDevicesCallback& callback) = 0;
590 // Create a ClipboardClient for writing to the clipboard. The caller will own 603 // Create a ClipboardClient for writing to the clipboard. The caller will own
591 // the pointer to this. 604 // the pointer to this.
592 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 605 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
593 }; 606 };
594 607
595 } // namespace ppapi 608 } // namespace ppapi
596 } // namespace webkit 609 } // namespace webkit
597 610
598 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 611 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698