OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 class WebContentDecryptionModule; | 66 class WebContentDecryptionModule; |
67 class WebCookieJar; | 67 class WebCookieJar; |
68 class WebDataSource; | 68 class WebDataSource; |
69 class WebEncryptedMediaClient; | 69 class WebEncryptedMediaClient; |
70 class WebExternalPopupMenu; | 70 class WebExternalPopupMenu; |
71 class WebExternalPopupMenuClient; | 71 class WebExternalPopupMenuClient; |
72 class WebFormElement; | 72 class WebFormElement; |
73 class WebGeolocationClient; | 73 class WebGeolocationClient; |
74 class WebMediaPlayer; | 74 class WebMediaPlayer; |
75 class WebMediaPlayerClient; | 75 class WebMediaPlayerClient; |
| 76 class WebMediaPlayerEncryptedMediaClient; |
76 class WebMIDIClient; | 77 class WebMIDIClient; |
77 class WebNotificationPermissionCallback; | 78 class WebNotificationPermissionCallback; |
78 class WebPermissionClient; | 79 class WebPermissionClient; |
79 class WebServiceWorkerProvider; | 80 class WebServiceWorkerProvider; |
80 class WebSocketHandle; | 81 class WebSocketHandle; |
81 class WebPlugin; | 82 class WebPlugin; |
82 class WebPluginPlaceholder; | 83 class WebPluginPlaceholder; |
83 class WebPresentationClient; | 84 class WebPresentationClient; |
84 class WebPushClient; | 85 class WebPushClient; |
85 class WebRTCPeerConnectionHandler; | 86 class WebRTCPeerConnectionHandler; |
(...skipping 15 matching lines...) Expand all Loading... |
101 class WebFrameClient { | 102 class WebFrameClient { |
102 public: | 103 public: |
103 // Factory methods ----------------------------------------------------- | 104 // Factory methods ----------------------------------------------------- |
104 | 105 |
105 // May return null. | 106 // May return null. |
106 virtual WebPluginPlaceholder* createPluginPlaceholder(WebLocalFrame*, const
WebPluginParams&) { return 0; } | 107 virtual WebPluginPlaceholder* createPluginPlaceholder(WebLocalFrame*, const
WebPluginParams&) { return 0; } |
107 | 108 |
108 // May return null. | 109 // May return null. |
109 virtual WebPlugin* createPlugin(WebLocalFrame*, const WebPluginParams&) { re
turn 0; } | 110 virtual WebPlugin* createPlugin(WebLocalFrame*, const WebPluginParams&) { re
turn 0; } |
110 | 111 |
111 // May return null. | 112 // TODO(srirama): Remove this method once chromium updated. |
112 // WebContentDecryptionModule* may be null if one has not yet been set. | |
113 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web
MediaPlayerClient*, WebContentDecryptionModule*) { return 0; } | 113 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web
MediaPlayerClient*, WebContentDecryptionModule*) { return 0; } |
114 | 114 |
115 // May return null. | 115 // May return null. |
| 116 // WebContentDecryptionModule* may be null if one has not yet been set. |
| 117 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web
MediaPlayerClient*, WebMediaPlayerEncryptedMediaClient*, WebContentDecryptionMod
ule*) { return 0; } |
| 118 |
| 119 // May return null. |
116 virtual WebApplicationCacheHost* createApplicationCacheHost(WebLocalFrame*,
WebApplicationCacheHostClient*) { return 0; } | 120 virtual WebApplicationCacheHost* createApplicationCacheHost(WebLocalFrame*,
WebApplicationCacheHostClient*) { return 0; } |
117 | 121 |
118 // May return null. | 122 // May return null. |
119 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebLocalFrame*
frame) { return 0; } | 123 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebLocalFrame*
frame) { return 0; } |
120 | 124 |
121 // May return null. | 125 // May return null. |
122 virtual WebWorkerContentSettingsClientProxy* createWorkerContentSettingsClie
ntProxy(WebLocalFrame* frame) { return 0; } | 126 virtual WebWorkerContentSettingsClientProxy* createWorkerContentSettingsClie
ntProxy(WebLocalFrame* frame) { return 0; } |
123 | 127 |
124 // Create a new WebPopupMenu. In the "createExternalPopupMenu" form, the | 128 // Create a new WebPopupMenu. In the "createExternalPopupMenu" form, the |
125 // client is responsible for rendering the contents of the popup menu. | 129 // client is responsible for rendering the contents of the popup menu. |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 return WebCustomHandlersNew; | 667 return WebCustomHandlersNew; |
664 } | 668 } |
665 | 669 |
666 protected: | 670 protected: |
667 virtual ~WebFrameClient() { } | 671 virtual ~WebFrameClient() { } |
668 }; | 672 }; |
669 | 673 |
670 } // namespace blink | 674 } // namespace blink |
671 | 675 |
672 #endif | 676 #endif |
OLD | NEW |