Use UsbIds::GetVendorName to retrieve USB vendor name.
[chromium-blink-merge.git] / media / base / cdm_factory.h
blob2a9b42d259b05eda793b65398faec99c057292a6
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_BASE_CDM_FACTORY_H_
6 #define MEDIA_BASE_CDM_FACTORY_H_
8 #include <string>
10 #include "base/memory/scoped_ptr.h"
11 #include "media/base/media_export.h"
12 #include "media/base/media_keys.h"
14 class GURL;
16 namespace media {
18 class MEDIA_EXPORT CdmFactory {
19 public:
20 CdmFactory();
21 virtual ~CdmFactory();
23 virtual scoped_ptr<MediaKeys> Create(
24 const std::string& key_system,
25 bool allow_distinctive_identifier,
26 bool allow_persistent_state,
27 const GURL& security_origin,
28 const SessionMessageCB& session_message_cb,
29 const SessionClosedCB& session_closed_cb,
30 const LegacySessionErrorCB& legacy_session_error_cb,
31 const SessionKeysChangeCB& session_keys_change_cb,
32 const SessionExpirationUpdateCB& session_expiration_update_cb) = 0;
34 private:
35 DISALLOW_COPY_AND_ASSIGN(CdmFactory);
38 } // namespace media
40 #endif // MEDIA_BASE_CDM_FACTORY_H_