Bug 129164 - Make a generic CDMPrivateMediaPlayer and move its CDMSession into platform/.
Summary: Make a generic CDMPrivateMediaPlayer and move its CDMSession into platform/.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-21 12:56 PST by Jer Noble
Modified: 2014-02-21 16:09 PST (History)
5 users (show)

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2014-02-21 12:56:29 PST
Make a generic CDMPrivateMediaPlayer and move its CDMSession into platform/.
Comment 1 Jer Noble 2014-02-21 13:10:08 PST
Created attachment 224895 [details]
Patch
Comment 2 WebKit Commit Bot 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.
Comment 3 Jer Noble 2014-02-21 13:17:30 PST
Created attachment 224896 [details]
Patch
Comment 4 WebKit Commit Bot 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.
Comment 5 Jer Noble 2014-02-21 13:20:26 PST
Created attachment 224897 [details]
Patch

More PassRefPtr -> std::unique_ptr changes.
Comment 6 WebKit Commit Bot 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.
Comment 7 Eric Carlson 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.
Comment 8 Jer Noble 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.
Comment 9 Jer Noble 2014-02-21 16:09:30 PST
Committed r164514: <http://trac.webkit.org/changeset/164514>