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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 class WebFrameClient { | 102 class WebFrameClient { |
103 public: | 103 public: |
104 // Factory methods ----------------------------------------------------- | 104 // Factory methods ----------------------------------------------------- |
105 | 105 |
106 // May return null. | 106 // May return null. |
107 virtual WebPluginPlaceholder* createPluginPlaceholder(WebLocalFrame*, const
WebPluginParams&) { return 0; } | 107 virtual WebPluginPlaceholder* createPluginPlaceholder(WebLocalFrame*, const
WebPluginParams&) { return 0; } |
108 | 108 |
109 // May return null. | 109 // May return null. |
110 virtual WebPlugin* createPlugin(WebLocalFrame*, const WebPluginParams&) { re
turn 0; } | 110 virtual WebPlugin* createPlugin(WebLocalFrame*, const WebPluginParams&) { re
turn 0; } |
111 | 111 |
112 // TODO(srirama): Remove this method once chromium updated. | |
113 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web
MediaPlayerClient*, WebContentDecryptionModule*) { return 0; } | |
114 | |
115 // May return null. | 112 // May return null. |
116 // WebContentDecryptionModule* may be null if one has not yet been set. | 113 // 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; } | 114 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web
MediaPlayerClient*, WebMediaPlayerEncryptedMediaClient*, WebContentDecryptionMod
ule*) { return 0; } |
118 | 115 |
119 // May return null. | 116 // May return null. |
120 virtual WebApplicationCacheHost* createApplicationCacheHost(WebLocalFrame*,
WebApplicationCacheHostClient*) { return 0; } | 117 virtual WebApplicationCacheHost* createApplicationCacheHost(WebLocalFrame*,
WebApplicationCacheHostClient*) { return 0; } |
121 | 118 |
122 // May return null. | 119 // May return null. |
123 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebLocalFrame*
frame) { return 0; } | 120 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebLocalFrame*
frame) { return 0; } |
124 | 121 |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 return WebCustomHandlersNew; | 666 return WebCustomHandlersNew; |
670 } | 667 } |
671 | 668 |
672 protected: | 669 protected: |
673 virtual ~WebFrameClient() { } | 670 virtual ~WebFrameClient() { } |
674 }; | 671 }; |
675 | 672 |
676 } // namespace blink | 673 } // namespace blink |
677 | 674 |
678 #endif | 675 #endif |
OLD | NEW |