Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Side by Side Diff: Source/core/html/HTMLMediaSource.h

Issue 1306613002: Keep auxilliary media objects on the heap always. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/MediaController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // If already attached, returns false. Otherwise, must be in 57 // If already attached, returns false. Otherwise, must be in
58 // 'closed' state, and returns true to indicate attachment success. 58 // 'closed' state, and returns true to indicate attachment success.
59 // Reattachment allowed by first calling close() (even if already in 'closed '). 59 // Reattachment allowed by first calling close() (even if already in 'closed ').
60 // Once attached, the source uses the element to synchronously service some 60 // Once attached, the source uses the element to synchronously service some
61 // API operations like duration change that may need to initiate seek. 61 // API operations like duration change that may need to initiate seek.
62 virtual bool attachToElement(HTMLMediaElement*) = 0; 62 virtual bool attachToElement(HTMLMediaElement*) = 0;
63 virtual void setWebMediaSourceAndOpen(PassOwnPtr<WebMediaSource>) = 0; 63 virtual void setWebMediaSourceAndOpen(PassOwnPtr<WebMediaSource>) = 0;
64 virtual void close() = 0; 64 virtual void close() = 0;
65 virtual bool isClosed() const = 0; 65 virtual bool isClosed() const = 0;
66 virtual double duration() const = 0; 66 virtual double duration() const = 0;
67 virtual PassRefPtrWillBeRawPtr<TimeRanges> buffered() const = 0; 67 virtual TimeRanges* buffered() const = 0;
68 virtual PassRefPtrWillBeRawPtr<TimeRanges> seekable() const = 0; 68 virtual TimeRanges* seekable() const = 0;
69 #if !ENABLE(OILPAN) 69 #if !ENABLE(OILPAN)
70 virtual void refHTMLMediaSource() = 0; 70 virtual void refHTMLMediaSource() = 0;
71 virtual void derefHTMLMediaSource() = 0; 71 virtual void derefHTMLMediaSource() = 0;
72 #endif 72 #endif
73 73
74 // URLRegistrable 74 // URLRegistrable
75 URLRegistry& registry() const override { return *s_registry; } 75 URLRegistry& registry() const override { return *s_registry; }
76 76
77 private: 77 private:
78 static URLRegistry* s_registry; 78 static URLRegistry* s_registry;
79 }; 79 };
80 80
81 } 81 }
82 82
83 #endif 83 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/MediaController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698