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

Side by Side Diff: content/renderer/media/crypto/render_cdm_factory.h

Issue 1102363005: Initialize the CDM asynchronously (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + Android compile changes Created 5 years, 7 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 CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_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"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void Create( 43 void Create(
44 const std::string& key_system, 44 const std::string& key_system,
45 bool allow_distinctive_identifier, 45 bool allow_distinctive_identifier,
46 bool allow_persistent_state, 46 bool allow_persistent_state,
47 const GURL& security_origin, 47 const GURL& security_origin,
48 const media::SessionMessageCB& session_message_cb, 48 const media::SessionMessageCB& session_message_cb,
49 const media::SessionClosedCB& session_closed_cb, 49 const media::SessionClosedCB& session_closed_cb,
50 const media::LegacySessionErrorCB& legacy_session_error_cb, 50 const media::LegacySessionErrorCB& legacy_session_error_cb,
51 const media::SessionKeysChangeCB& session_keys_change_cb, 51 const media::SessionKeysChangeCB& session_keys_change_cb,
52 const media::SessionExpirationUpdateCB& session_expiration_update_cb, 52 const media::SessionExpirationUpdateCB& session_expiration_update_cb,
53 const CdmCreatedCB& cdm_created_cb) override; 53 const media::CdmCreatedCB& cdm_created_cb) override;
54 54
55 private: 55 private:
56 #if defined(ENABLE_PEPPER_CDMS) 56 #if defined(ENABLE_PEPPER_CDMS)
57 CreatePepperCdmCB create_pepper_cdm_cb_; 57 CreatePepperCdmCB create_pepper_cdm_cb_;
58 #elif defined(ENABLE_BROWSER_CDMS) 58 #elif defined(ENABLE_BROWSER_CDMS)
59 // The |manager_| is a per render frame object owned by RenderFrameImpl. 59 // The |manager_| is a per render frame object owned by RenderFrameImpl.
60 RendererCdmManager* manager_; 60 RendererCdmManager* manager_;
61 #endif 61 #endif
62 62
63 base::ThreadChecker thread_checker_; 63 base::ThreadChecker thread_checker_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(RenderCdmFactory); 65 DISALLOW_COPY_AND_ASSIGN(RenderCdmFactory);
66 }; 66 };
67 67
68 } // namespace content 68 } // namespace content
69 69
70 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_ 70 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/proxy_media_keys.cc ('k') | content/renderer/media/crypto/render_cdm_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698