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

Side by Side Diff: media/blink/webcontentdecryptionmodulesession_impl.h

Issue 955993004: Use blink::initDataType and blink::sessionType as enums (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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_
6 #define MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ 6 #define MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 WebContentDecryptionModuleSessionImpl( 27 WebContentDecryptionModuleSessionImpl(
28 const scoped_refptr<CdmSessionAdapter>& adapter); 28 const scoped_refptr<CdmSessionAdapter>& adapter);
29 virtual ~WebContentDecryptionModuleSessionImpl(); 29 virtual ~WebContentDecryptionModuleSessionImpl();
30 30
31 // blink::WebContentDecryptionModuleSession implementation. 31 // blink::WebContentDecryptionModuleSession implementation.
32 virtual void setClientInterface(Client* client); 32 virtual void setClientInterface(Client* client);
33 virtual blink::WebString sessionId() const; 33 virtual blink::WebString sessionId() const;
34 34
35 virtual void initializeNewSession( 35 virtual void initializeNewSession(
36 blink::WebEncryptedMediaInitDataType init_data_type,
37 const unsigned char* initData,
38 size_t initDataLength,
39 blink::WebEncryptedMediaSessionType session_type,
40 blink::WebContentDecryptionModuleResult result);
41 virtual void initializeNewSession(
36 const blink::WebString& init_data_type, 42 const blink::WebString& init_data_type,
37 const uint8* init_data, 43 const uint8* init_data,
38 size_t init_data_length, 44 size_t init_data_length,
39 const blink::WebString& session_type, 45 const blink::WebString& session_type,
40 blink::WebContentDecryptionModuleResult result); 46 blink::WebContentDecryptionModuleResult result);
41 virtual void load(const blink::WebString& session_id, 47 virtual void load(const blink::WebString& session_id,
42 blink::WebContentDecryptionModuleResult result); 48 blink::WebContentDecryptionModuleResult result);
43 virtual void update(const uint8* response, 49 virtual void update(const uint8* response,
44 size_t response_length, 50 size_t response_length,
45 blink::WebContentDecryptionModuleResult result); 51 blink::WebContentDecryptionModuleResult result);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // creating a promise in case this class disappears before the promise 84 // creating a promise in case this class disappears before the promise
79 // actually fires. 85 // actually fires.
80 base::WeakPtrFactory<WebContentDecryptionModuleSessionImpl> weak_ptr_factory_; 86 base::WeakPtrFactory<WebContentDecryptionModuleSessionImpl> weak_ptr_factory_;
81 87
82 DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleSessionImpl); 88 DISALLOW_COPY_AND_ASSIGN(WebContentDecryptionModuleSessionImpl);
83 }; 89 };
84 90
85 } // namespace media 91 } // namespace media
86 92
87 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_ 93 #endif // MEDIA_BLINK_WEBCONTENTDECRYPTIONMODULESESSION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698