Chromium Code Reviews| Index: media/base/media_keys.h |
| diff --git a/media/base/media_keys.h b/media/base/media_keys.h |
| index 0d86948564e32a350ebbed804292cd85f5787c36..de9ee5c52709af581984cde8d6e95db2ecd29bcc 100644 |
| --- a/media/base/media_keys.h |
| +++ b/media/base/media_keys.h |
| @@ -42,16 +42,23 @@ class MEDIA_EXPORT MediaKeys { |
| MediaKeys(); |
| virtual ~MediaKeys(); |
| - // Generates a key request with the |type| and |init_data| provided. |
| - // Returns true if generating key request succeeded, false otherwise. |
| + // Creates a session with the |content_type| and |init_data| provided. |
| + // Returns true if a session is successfully created, false otherwise. |
| // Note: UpdateSession() and ReleaseSession() should only be called after |
| - // CreateSession() returns true. |
| + // SessionCreatedCB is fired. |
| // TODO(jrummell): Remove return value when prefixed API is removed. |
|
ddorwin
2014/02/10 19:05:25
Looking at the code, I'm not sure we actually need
xhwang
2014/02/10 22:30:55
Created bug 342510 to track this.
|
| virtual bool CreateSession(uint32 session_id, |
| - const std::string& type, |
| + const std::string& content_type, |
| const uint8* init_data, |
| int init_data_length) = 0; |
| + // Loads a session with the |web_session_id| provided. |
| + // Returns true if a session is successfully loaded, false otherwise. |
| + // Note: UpdateSession() and ReleaseSession() should only be called after |
| + // SessionCreatedCB is fired. |
| + virtual bool LoadSession(uint32 session_id, |
|
ddorwin
2014/02/10 19:05:25
Similar TODO about removing the return value.
Cur
xhwang
2014/02/10 22:30:55
Removed "bool" return value in this CL for LoadSes
|
| + const std::string& web_session_id) = 0; |
| + |
| // Updates a session specified by |session_id| with |response|. |
| virtual void UpdateSession(uint32 session_id, |
| const uint8* response, |