| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 enum ReadyState { | 54 enum ReadyState { |
| 55 HaveNothing, | 55 HaveNothing, |
| 56 HaveMetadata, | 56 HaveMetadata, |
| 57 HaveCurrentData, | 57 HaveCurrentData, |
| 58 HaveFutureData, | 58 HaveFutureData, |
| 59 HaveEnoughData, | 59 HaveEnoughData, |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 enum MovieLoadType{ |
| 63 Unknown, |
| 64 Download, |
| 65 StoredStream, |
| 66 LiveStream, |
| 67 }; |
| 68 |
| 62 virtual ~WebMediaPlayer() {} | 69 virtual ~WebMediaPlayer() {} |
| 63 | 70 |
| 64 virtual void load(const WebURL&) = 0; | 71 virtual void load(const WebURL&) = 0; |
| 65 virtual void cancelLoad() = 0; | 72 virtual void cancelLoad() = 0; |
| 66 | 73 |
| 67 // Playback controls. | 74 // Playback controls. |
| 68 virtual void play() = 0; | 75 virtual void play() = 0; |
| 69 virtual void pause() = 0; | 76 virtual void pause() = 0; |
| 70 virtual bool supportsFullscreen() const = 0; | 77 virtual bool supportsFullscreen() const = 0; |
| 71 virtual bool supportsSave() const = 0; | 78 virtual bool supportsSave() const = 0; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 97 | 104 |
| 98 // Get rate of loading the resource. | 105 // Get rate of loading the resource. |
| 99 virtual int dataRate() const = 0; | 106 virtual int dataRate() const = 0; |
| 100 | 107 |
| 101 // Internal states of loading and network. | 108 // Internal states of loading and network. |
| 102 virtual NetworkState networkState() const = 0; | 109 virtual NetworkState networkState() const = 0; |
| 103 virtual ReadyState readyState() const = 0; | 110 virtual ReadyState readyState() const = 0; |
| 104 | 111 |
| 105 virtual unsigned long long bytesLoaded() const = 0; | 112 virtual unsigned long long bytesLoaded() const = 0; |
| 106 virtual unsigned long long totalBytes() const = 0; | 113 virtual unsigned long long totalBytes() const = 0; |
| 114 |
| 115 virtual bool hasSingleSecurityOrigin() const = 0; |
| 116 virtual MovieLoadType movieLoadType() const = 0; |
| 107 }; | 117 }; |
| 108 | 118 |
| 109 } // namespace WebKit | 119 } // namespace WebKit |
| 110 | 120 |
| 111 #endif | 121 #endif |
| OLD | NEW |