~thomas-voss/media-hub/externalize-all-dependencies

« back to all changes in this revision

Viewing changes to src/core/media/player.cpp

  • Committer: thomas-voss
  • Date: 2014-11-26 16:23:19 UTC
  • Revision ID: thomas.voss@canonical.com-20141126162319-4xid440c3q26av1c
Add an interface apparmor::ubuntu::RequestAuthenticator that is used to authenticate incoming open uri requests.
Add an interface apparmor::ubuntu::RequestContextResolver that is used to resolve a dbus name to an apparmor::ubuntu::Context.
Provide an implementation apparmor::ubuntu::ExistingAuthenticator that takes the impl. from player_skeleton.cpp and uses it to implement the interface.
Provide an implementation apparmor::ubuntu::RequestContextResolver that reaches out to the dbus daemon to resolve a given bus name to an apparmor profile.
Remove obsolete query for the apparmor profile in ServiceSkeleton.
Adjust the implementation in media::PlayerSkeleton to rely on Request{Authenticator, ContextResolver}.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
{
32
32
    static const media::Player::Configuration config
33
33
    {
34
 
        std::string{""},
35
34
        0,
36
35
        nullptr,
37
36
        nullptr