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

Side by Side Diff: chromecast/media/cdm/browser_cdm_cast.h

Issue 1124073006: Make BrowserCdmCast::Initialize() a virtual function so that a subclass can override the initializa… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Per review comments, create InitializeInternal instead of making Initialize virtual 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 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 CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ 5 #ifndef CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_
6 #define CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ 6 #define CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void OnSessionMessage(const std::string& session_id, 70 void OnSessionMessage(const std::string& session_id,
71 const std::vector<uint8_t>& message, 71 const std::vector<uint8_t>& message,
72 const GURL& destination_url); 72 const GURL& destination_url);
73 void OnSessionClosed(const std::string& session_id); 73 void OnSessionClosed(const std::string& session_id);
74 void OnSessionKeysChange(const std::string& session_id, 74 void OnSessionKeysChange(const std::string& session_id,
75 const ::media::KeyIdAndKeyPairs& keys); 75 const ::media::KeyIdAndKeyPairs& keys);
76 76
77 private: 77 private:
78 friend class BrowserCdmCastUi; 78 friend class BrowserCdmCastUi;
79 79
80 // Allow subclasses to override to provide key sysytem specific
81 // initialization.
82 virtual void InitializeInternal();
gunsch-google 2015/05/15 17:48:27 any particular reason it's private vs. protected?
lcwu1 2015/05/15 18:01:20 If this member doesn't need to be accessed by the
83
80 ::media::SessionMessageCB session_message_cb_; 84 ::media::SessionMessageCB session_message_cb_;
81 ::media::SessionClosedCB session_closed_cb_; 85 ::media::SessionClosedCB session_closed_cb_;
82 ::media::LegacySessionErrorCB legacy_session_error_cb_; 86 ::media::LegacySessionErrorCB legacy_session_error_cb_;
83 ::media::SessionKeysChangeCB session_keys_change_cb_; 87 ::media::SessionKeysChangeCB session_keys_change_cb_;
84 ::media::SessionExpirationUpdateCB session_expiration_update_cb_; 88 ::media::SessionExpirationUpdateCB session_expiration_update_cb_;
85 89
86 scoped_ptr<::media::PlayerTrackerImpl> player_tracker_impl_; 90 scoped_ptr<::media::PlayerTrackerImpl> player_tracker_impl_;
87 91
88 base::ThreadChecker thread_checker_; 92 base::ThreadChecker thread_checker_;
89 93
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 138
135 base::ThreadChecker thread_checker_; 139 base::ThreadChecker thread_checker_;
136 140
137 DISALLOW_COPY_AND_ASSIGN(BrowserCdmCastUi); 141 DISALLOW_COPY_AND_ASSIGN(BrowserCdmCastUi);
138 }; 142 };
139 143
140 } // namespace media 144 } // namespace media
141 } // namespace chromecast 145 } // namespace chromecast
142 146
143 #endif // CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ 147 #endif // CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/cdm/browser_cdm_cast.cc » ('j') | chromecast/media/cdm/browser_cdm_cast.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698