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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 class WebFrameClient { | 111 class WebFrameClient { |
112 public: | 112 public: |
113 // Factory methods ----------------------------------------------------- | 113 // Factory methods ----------------------------------------------------- |
114 | 114 |
115 // May return null. | 115 // May return null. |
116 virtual WebPlugin* createPlugin(WebLocalFrame*, const WebPluginParams&) { re
turn 0; } | 116 virtual WebPlugin* createPlugin(WebLocalFrame*, const WebPluginParams&) { re
turn 0; } |
117 | 117 |
118 // May return null. | 118 // May return null. |
119 // WebContentDecryptionModule* may be null if one has not yet been set. | 119 // WebContentDecryptionModule* may be null if one has not yet been set. |
120 virtual WebMediaPlayer* createMediaPlayer(const WebMediaPlayerSource&, WebMe
diaPlayerClient*, WebMediaPlayerEncryptedMediaClient*, WebContentDecryptionModul
e*, const WebString& sinkId, WebMediaSession*) { return 0; } | 120 virtual WebMediaPlayer* createMediaPlayer(const WebMediaPlayerSource&, WebMe
diaPlayerClient*, WebMediaPlayerEncryptedMediaClient*, WebContentDecryptionModul
e*, const WebString& sinkId) { return 0; } |
121 | 121 |
122 // May return null. | 122 // May return null. |
123 virtual WebMediaSession* createMediaSession() { return 0; } | 123 virtual WebMediaSession* createMediaSession() { return 0; } |
124 | 124 |
125 // May return null. | 125 // May return null. |
126 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCa
cheHostClient*) { return 0; } | 126 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCa
cheHostClient*) { return 0; } |
127 | 127 |
128 // May return null. | 128 // May return null. |
129 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { return 0;
} | 129 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { return 0;
} |
130 | 130 |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 return WebURL(); | 694 return WebURL(); |
695 } | 695 } |
696 | 696 |
697 protected: | 697 protected: |
698 virtual ~WebFrameClient() { } | 698 virtual ~WebFrameClient() { } |
699 }; | 699 }; |
700 | 700 |
701 } // namespace blink | 701 } // namespace blink |
702 | 702 |
703 #endif | 703 #endif |
OLD | NEW |