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

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

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 7 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/HTMLSelectElement.cpp » ('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 19 matching lines...) Expand all
30 30
31 #ifndef HTMLMediaSource_h 31 #ifndef HTMLMediaSource_h
32 #define HTMLMediaSource_h 32 #define HTMLMediaSource_h
33 33
34 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "core/html/URLRegistry.h" 35 #include "core/html/URLRegistry.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "wtf/Forward.h" 37 #include "wtf/Forward.h"
38 38
39 namespace blink { 39 namespace blink {
40
40 class WebMediaSource; 41 class WebMediaSource;
41 }
42
43 namespace blink {
44
45 class HTMLMediaElement; 42 class HTMLMediaElement;
46 class TimeRanges; 43 class TimeRanges;
47 44
48 class CORE_EXPORT HTMLMediaSource : public URLRegistrable, public WillBeGarbageC ollectedMixin { 45 class CORE_EXPORT HTMLMediaSource : public URLRegistrable, public WillBeGarbageC ollectedMixin {
49 public: 46 public:
50 static void setRegistry(URLRegistry*); 47 static void setRegistry(URLRegistry*);
51 static HTMLMediaSource* lookup(const String& url) { return s_registry ? stat ic_cast<HTMLMediaSource*>(s_registry->lookup(url)) : 0; } 48 static HTMLMediaSource* lookup(const String& url) { return s_registry ? stat ic_cast<HTMLMediaSource*>(s_registry->lookup(url)) : 0; }
52 49
53 #if !ENABLE(OILPAN) 50 #if !ENABLE(OILPAN)
54 void ref() { refHTMLMediaSource(); } 51 void ref() { refHTMLMediaSource(); }
55 void deref() { derefHTMLMediaSource(); } 52 void deref() { derefHTMLMediaSource(); }
56 #endif 53 #endif
57 54
58 // Called when an HTMLMediaElement is attempting to attach to this object, 55 // Called when an HTMLMediaElement is attempting to attach to this object,
59 // and helps enforce attachment to at most one element at a time. 56 // and helps enforce attachment to at most one element at a time.
60 // If already attached, returns false. Otherwise, must be in 57 // If already attached, returns false. Otherwise, must be in
61 // 'closed' state, and returns true to indicate attachment success. 58 // 'closed' state, and returns true to indicate attachment success.
62 // Reattachment allowed by first calling close() (even if already in 'closed '). 59 // Reattachment allowed by first calling close() (even if already in 'closed ').
63 // Once attached, the source uses the element to synchronously service some 60 // Once attached, the source uses the element to synchronously service some
64 // API operations like duration change that may need to initiate seek. 61 // API operations like duration change that may need to initiate seek.
65 virtual bool attachToElement(HTMLMediaElement*) = 0; 62 virtual bool attachToElement(HTMLMediaElement*) = 0;
66 virtual void setWebMediaSourceAndOpen(PassOwnPtr<blink::WebMediaSource>) = 0 ; 63 virtual void setWebMediaSourceAndOpen(PassOwnPtr<WebMediaSource>) = 0;
67 virtual void close() = 0; 64 virtual void close() = 0;
68 virtual bool isClosed() const = 0; 65 virtual bool isClosed() const = 0;
69 virtual double duration() const = 0; 66 virtual double duration() const = 0;
70 virtual PassRefPtrWillBeRawPtr<TimeRanges> buffered() const = 0; 67 virtual PassRefPtrWillBeRawPtr<TimeRanges> buffered() const = 0;
71 virtual PassRefPtrWillBeRawPtr<TimeRanges> seekable() const = 0; 68 virtual PassRefPtrWillBeRawPtr<TimeRanges> seekable() const = 0;
72 #if !ENABLE(OILPAN) 69 #if !ENABLE(OILPAN)
73 virtual void refHTMLMediaSource() = 0; 70 virtual void refHTMLMediaSource() = 0;
74 virtual void derefHTMLMediaSource() = 0; 71 virtual void derefHTMLMediaSource() = 0;
75 #endif 72 #endif
76 73
77 // URLRegistrable 74 // URLRegistrable
78 virtual URLRegistry& registry() const override { return *s_registry; } 75 virtual URLRegistry& registry() const override { return *s_registry; }
79 76
80 private: 77 private:
81 static URLRegistry* s_registry; 78 static URLRegistry* s_registry;
82 }; 79 };
83 80
84 } 81 }
85 82
86 #endif 83 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698