| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 class WebFrameClient { | 107 class WebFrameClient { |
| 108 public: | 108 public: |
| 109 // Factory methods ----------------------------------------------------- | 109 // Factory methods ----------------------------------------------------- |
| 110 | 110 |
| 111 // May return null. | 111 // May return null. |
| 112 virtual WebPlugin* createPlugin(WebLocalFrame*, const WebPluginParams&) { re
turn 0; } | 112 virtual WebPlugin* createPlugin(WebLocalFrame*, const WebPluginParams&) { re
turn 0; } |
| 113 | 113 |
| 114 // May return null. | 114 // May return null. |
| 115 // WebContentDecryptionModule* may be null if one has not yet been set. | 115 // WebContentDecryptionModule* may be null if one has not yet been set. |
| 116 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web
MediaPlayerClient*, WebMediaPlayerEncryptedMediaClient*, WebContentDecryptionMod
ule*, const WebString& sinkId) { return 0; } | 116 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web
MediaPlayerClient*, WebMediaPlayerEncryptedMediaClient*, WebContentDecryptionMod
ule*, const WebString& sinkId, WebMediaSession*) { return 0; } |
| 117 | 117 |
| 118 // May return null. | 118 // May return null. |
| 119 virtual WebMediaSession* createMediaSession() { return 0; } | 119 virtual WebMediaSession* createMediaSession() { return 0; } |
| 120 | 120 |
| 121 // May return null. | 121 // May return null. |
| 122 virtual WebApplicationCacheHost* createApplicationCacheHost(WebLocalFrame*,
WebApplicationCacheHostClient*) { return 0; } | 122 virtual WebApplicationCacheHost* createApplicationCacheHost(WebLocalFrame*,
WebApplicationCacheHostClient*) { return 0; } |
| 123 | 123 |
| 124 // May return null. | 124 // May return null. |
| 125 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebLocalFrame*
frame) { return 0; } | 125 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebLocalFrame*
frame) { return 0; } |
| 126 | 126 |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 // This method takes ownership of the callbacks pointer. | 698 // This method takes ownership of the callbacks pointer. |
| 699 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId,
const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED();
} | 699 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId,
const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED();
} |
| 700 | 700 |
| 701 protected: | 701 protected: |
| 702 virtual ~WebFrameClient() { } | 702 virtual ~WebFrameClient() { } |
| 703 }; | 703 }; |
| 704 | 704 |
| 705 } // namespace blink | 705 } // namespace blink |
| 706 | 706 |
| 707 #endif | 707 #endif |
| OLD | NEW |