Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: media/base/cdm_factory.h

Issue 985113003: Block platform verification and file IO in the CDM adapter if the CDM configuration disallows them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_CDM_FACTORY_H_ 5 #ifndef MEDIA_BASE_CDM_FACTORY_H_
6 #define MEDIA_BASE_CDM_FACTORY_H_ 6 #define MEDIA_BASE_CDM_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "media/base/media_export.h" 11 #include "media/base/media_export.h"
12 #include "media/base/media_keys.h" 12 #include "media/base/media_keys.h"
13 13
14 class GURL; 14 class GURL;
15 15
16 namespace media { 16 namespace media {
17 17
18 class MEDIA_EXPORT CdmFactory { 18 class MEDIA_EXPORT CdmFactory {
19 public: 19 public:
20 CdmFactory(); 20 CdmFactory();
21 virtual ~CdmFactory(); 21 virtual ~CdmFactory();
22 22
23 virtual scoped_ptr<MediaKeys> Create( 23 virtual scoped_ptr<MediaKeys> Create(
24 const std::string& key_system, 24 const std::string& key_system,
25 bool allow_distinctive_identifier,
26 bool allow_persistent_state,
25 const GURL& security_origin, 27 const GURL& security_origin,
26 const SessionMessageCB& session_message_cb, 28 const SessionMessageCB& session_message_cb,
27 const SessionClosedCB& session_closed_cb, 29 const SessionClosedCB& session_closed_cb,
28 const SessionErrorCB& session_error_cb, 30 const SessionErrorCB& session_error_cb,
29 const SessionKeysChangeCB& session_keys_change_cb, 31 const SessionKeysChangeCB& session_keys_change_cb,
30 const SessionExpirationUpdateCB& session_expiration_update_cb) = 0; 32 const SessionExpirationUpdateCB& session_expiration_update_cb) = 0;
31 33
32 private: 34 private:
33 DISALLOW_COPY_AND_ASSIGN(CdmFactory); 35 DISALLOW_COPY_AND_ASSIGN(CdmFactory);
34 }; 36 };
35 37
36 } // namespace media 38 } // namespace media
37 39
38 #endif // MEDIA_BASE_CDM_FACTORY_H_ 40 #endif // MEDIA_BASE_CDM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698