~thomas-voss/media-hub/add-auto-formatting

« back to all changes in this revision

Viewing changes to src/core/media/apparmor/ubuntu.h

  • Committer: Thomas Voß
  • Date: 2015-04-17 14:12:57 UTC
  • Revision ID: thomas.voss@canonical.com-20150417141257-uaiu195uexb16aob
Apply make format to the entire source tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
{
52
52
// The unconfined profile, unconditionally trusted
53
53
// by the system.
54
 
static constexpr const char* unconfined
55
 
{
56
 
    "unconfined"
57
 
};
 
54
static constexpr const char* unconfined{"unconfined"};
58
55
 
59
56
class Context : public apparmor::Context
60
57
{
109
106
    typedef std::shared_ptr<DBusDaemonRequestContextResolver> Ptr;
110
107
 
111
108
    // Constructs a new instance for the given bus connection.
112
 
    DBusDaemonRequestContextResolver(const core::dbus::Bus::Ptr &);
 
109
    DBusDaemonRequestContextResolver(const core::dbus::Bus::Ptr&);
113
110
 
114
111
    // From RequestContextResolver
115
112
    void resolve_context_for_dbus_name_async(const std::string& name, ResolveCallback) override;
127
124
    typedef std::shared_ptr<RequestAuthenticator> Ptr;
128
125
 
129
126
    // Return type of an authentication call.
130
 
    typedef std::tuple
131
 
    <
132
 
        bool,       // True if authenticated, false if not.
133
 
        std::string // Reason for the result.
134
 
    > Result;
 
127
    typedef std::tuple<bool,        // True if authenticated, false if not.
 
128
                       std::string  // Reason for the result.
 
129
                       > Result;
135
130
 
136
131
    virtual ~RequestAuthenticator() = default;
137
132
 
141
136
 
142
137
protected:
143
138
    RequestAuthenticator() = default;
144
 
    RequestAuthenticator(const RequestAuthenticator&) = default;   
 
139
    RequestAuthenticator(const RequestAuthenticator&) = default;
145
140
    RequestAuthenticator& operator=(const RequestAuthenticator&) = default;
146
141
};
147
142
 
164
159
}
165
160
}
166
161
 
167
 
#endif // CORE_UBUNTU_MEDIA_APPARMOR_UBUNTU_H_
 
162
#endif  // CORE_UBUNTU_MEDIA_APPARMOR_UBUNTU_H_