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

Side by Side Diff: content/renderer/media/webcontentdecryptionmodule_impl.h

Issue 211473005: Remove unused createContentDecryptionModule() code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | content/renderer/media/webcontentdecryptionmodule_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 namespace content { 25 namespace content {
26 26
27 class CdmSessionAdapter; 27 class CdmSessionAdapter;
28 class WebContentDecryptionModuleSessionImpl; 28 class WebContentDecryptionModuleSessionImpl;
29 29
30 class WebContentDecryptionModuleImpl 30 class WebContentDecryptionModuleImpl
31 : public blink::WebContentDecryptionModule { 31 : public blink::WebContentDecryptionModule {
32 public: 32 public:
33 // TODO(jrummell): Remove this method once all callers have updated to pass
34 // |frame| and |securityOrigin|.
35 static WebContentDecryptionModuleImpl* Create(
36 const base::string16& key_system);
37 static WebContentDecryptionModuleImpl* Create( 33 static WebContentDecryptionModuleImpl* Create(
38 blink::WebFrame* frame, 34 blink::WebFrame* frame,
39 const blink::WebSecurityOrigin& security_origin, 35 const blink::WebSecurityOrigin& security_origin,
40 const base::string16& key_system); 36 const base::string16& key_system);
41 37
42 virtual ~WebContentDecryptionModuleImpl(); 38 virtual ~WebContentDecryptionModuleImpl();
43 39
44 // Returns the Decryptor associated with this CDM. May be NULL if no 40 // Returns the Decryptor associated with this CDM. May be NULL if no
45 // Decryptor associated with the MediaKeys object. 41 // Decryptor associated with the MediaKeys object.
46 // TODO(jrummell): Figure out lifetimes, as WMPI may still use the decryptor 42 // TODO(jrummell): Figure out lifetimes, as WMPI may still use the decryptor
(...skipping 15 matching lines...) Expand all
62 58
63 // Allow typecasting from blink type as this is the only implementation. 59 // Allow typecasting from blink type as this is the only implementation.
64 inline WebContentDecryptionModuleImpl* ToWebContentDecryptionModuleImpl( 60 inline WebContentDecryptionModuleImpl* ToWebContentDecryptionModuleImpl(
65 blink::WebContentDecryptionModule* cdm) { 61 blink::WebContentDecryptionModule* cdm) {
66 return static_cast<WebContentDecryptionModuleImpl*>(cdm); 62 return static_cast<WebContentDecryptionModuleImpl*>(cdm);
67 } 63 }
68 64
69 } // namespace content 65 } // namespace content
70 66
71 #endif // CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULE_IMPL_H_ 67 #endif // CONTENT_RENDERER_MEDIA_WEBCONTENTDECRYPTIONMODULE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webcontentdecryptionmodule_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698