WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
129164
Make a generic CDMPrivateMediaPlayer and move its CDMSession into platform/.
https://bugs.webkit.org/show_bug.cgi?id=129164
Summary
Make a generic CDMPrivateMediaPlayer and move its CDMSession into platform/.
Jer Noble
Reported
2014-02-21 12:56:29 PST
Make a generic CDMPrivateMediaPlayer and move its CDMSession into platform/.
Attachments
Patch
(47.72 KB, patch)
2014-02-21 13:10 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(52.76 KB, patch)
2014-02-21 13:17 PST
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(55.12 KB, patch)
2014-02-21 13:20 PST
,
Jer Noble
eric.carlson
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Jer Noble
Comment 1
2014-02-21 13:10:08 PST
Created
attachment 224895
[details]
Patch
WebKit Commit Bot
Comment 2
2014-02-21 13:12:28 PST
Attachment 224895
[details]
did not pass style-queue: ERROR: Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.h:54: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 1 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Jer Noble
Comment 3
2014-02-21 13:17:30 PST
Created
attachment 224896
[details]
Patch
WebKit Commit Bot
Comment 4
2014-02-21 13:19:20 PST
Attachment 224896
[details]
did not pass style-queue: ERROR: Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.h:54: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 1 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Jer Noble
Comment 5
2014-02-21 13:20:26 PST
Created
attachment 224897
[details]
Patch More PassRefPtr -> std::unique_ptr changes.
WebKit Commit Bot
Comment 6
2014-02-21 13:22:19 PST
Attachment 224897
[details]
did not pass style-queue: ERROR: Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.h:54: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 1 in 19 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Carlson
Comment 7
2014-02-21 13:43:51 PST
Comment on
attachment 224897
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=224897&action=review
> Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.cpp:2 > + * Copyright (C) 2012 Apple Inc. All rights reserved.
Nit: you might as well update this.
> Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.h:2 > + * Copyright (C) 2012 Apple Inc. All rights reserved.
Ditto.
> Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.h:41 > + // CDMFactory support:
Nit: this isn't terribly informative.
> Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.h:42 > + static PassOwnPtr<CDMPrivateInterface> create(CDM* cdm) { return adoptPtr(new CDMPrivateMediaPlayer(cdm)); }
Can be converted to std::unique_ptr as well?
> Source/WebCore/platform/graphics/CDMSession.h:2 > + * Copyright (C) 2013]4 Apple Inc. All rights reserved.
2013]4 - when was/is :-) ?
> Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:49 > + > +
Nit: extra blank line.
> Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:66 > + return 0;
nullptr.
> Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:84 > + return 0;
Ditto.
> Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:89 > + errorCode = MediaPlayer::NoError; > + systemCode = 0; > + destinationURL = String();
These don't seem to be used.
> Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:106 > + errorCode = MediaPlayer::NoError; > + systemCode = 0; > + nextMessage = nullptr;
Ditto.
Jer Noble
Comment 8
2014-02-21 14:52:08 PST
(In reply to
comment #7
)
> (From update of
attachment 224897
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=224897&action=review
> > > Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.cpp:2 > > + * Copyright (C) 2012 Apple Inc. All rights reserved. > > Nit: you might as well update this.
Ok.
> > Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.h:2 > > + * Copyright (C) 2012 Apple Inc. All rights reserved. > > Ditto.
Ok.
> > Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.h:41 > > + // CDMFactory support: > > Nit: this isn't terribly informative.
Removed.
> > Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.h:42 > > + static PassOwnPtr<CDMPrivateInterface> create(CDM* cdm) { return adoptPtr(new CDMPrivateMediaPlayer(cdm)); } > > Can be converted to std::unique_ptr as well?
Yep!
> > Source/WebCore/platform/graphics/CDMSession.h:2 > > + * Copyright (C) 2013]4 Apple Inc. All rights reserved. > > 2013]4 - when was/is :-) ?
The future!
> > Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:49 > > + > > + > > Nit: extra blank line.
Deleted.
> > Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:66 > > + return 0; > > nullptr.
Changed.
> > Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:84 > > + return 0; > > Ditto.
Ditto.
> > Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:89 > > + errorCode = MediaPlayer::NoError; > > + systemCode = 0; > > + destinationURL = String(); > > These don't seem to be used.
These are out parameters.
> > Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm:106 > > + errorCode = MediaPlayer::NoError; > > + systemCode = 0; > > + nextMessage = nullptr; > > Ditto.
Ditto.
Jer Noble
Comment 9
2014-02-21 16:09:30 PST
Committed
r164514
: <
http://trac.webkit.org/changeset/164514
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug