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

Side by Side Diff: public/platform/WebContentDecryptionModuleSession.h

Issue 621903003: Add MediaKeySession.expiration attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 MediaKeyErrorCodeClient, 49 MediaKeyErrorCodeClient,
50 }; 50 };
51 51
52 virtual void message(const unsigned char* message, size_t messageLength, const WebURL& destinationURL) = 0; 52 virtual void message(const unsigned char* message, size_t messageLength, const WebURL& destinationURL) = 0;
53 virtual void ready() = 0; 53 virtual void ready() = 0;
54 virtual void close() = 0; 54 virtual void close() = 0;
55 // FIXME: Remove this method once Chromium updated to use the new parame ters. 55 // FIXME: Remove this method once Chromium updated to use the new parame ters.
56 virtual void error(MediaKeyErrorCode, unsigned long systemCode) = 0; 56 virtual void error(MediaKeyErrorCode, unsigned long systemCode) = 0;
57 virtual void error(WebContentDecryptionModuleException, unsigned long sy stemCode, const WebString& message) = 0; 57 virtual void error(WebContentDecryptionModuleException, unsigned long sy stemCode, const WebString& message) = 0;
58 58
59 // Called when the expiration time for the session changes. |time| is
60 // specified as the number of milliseconds since 01 January, 1970 UTC.
61 virtual void expirationChanged(double updatedExpiryTimeInMS) = 0;
62
59 protected: 63 protected:
60 virtual ~Client(); 64 virtual ~Client();
61 }; 65 };
62 66
63 virtual ~WebContentDecryptionModuleSession(); 67 virtual ~WebContentDecryptionModuleSession();
64 68
65 virtual void setClientInterface(Client*) = 0; 69 virtual void setClientInterface(Client*) = 0;
66 virtual WebString sessionId() const = 0; 70 virtual WebString sessionId() const = 0;
67 71
68 // FIXME: Remove these methods once the new methods are implemented in Chrom ium. 72 // FIXME: Remove these methods once the new methods are implemented in Chrom ium.
69 virtual void initializeNewSession(const WebString& mimeType, const unsigned char* initData, size_t initDataLength) = 0; 73 virtual void initializeNewSession(const WebString& mimeType, const unsigned char* initData, size_t initDataLength) = 0;
70 virtual void update(const unsigned char* response, size_t responseLength) = 0; 74 virtual void update(const unsigned char* response, size_t responseLength) = 0;
71 virtual void release() = 0; 75 virtual void release() = 0;
72 76
73 virtual void initializeNewSession(const WebString& initDataType, const unsig ned char* initData, size_t initDataLength, const WebString& sessionType, WebCont entDecryptionModuleResult); 77 virtual void initializeNewSession(const WebString& initDataType, const unsig ned char* initData, size_t initDataLength, const WebString& sessionType, WebCont entDecryptionModuleResult);
74 virtual void update(const unsigned char* response, size_t responseLength, We bContentDecryptionModuleResult); 78 virtual void update(const unsigned char* response, size_t responseLength, We bContentDecryptionModuleResult);
75 virtual void release(WebContentDecryptionModuleResult); 79 virtual void release(WebContentDecryptionModuleResult);
76 }; 80 };
77 81
78 } // namespace blink 82 } // namespace blink
79 83
80 #endif // WebContentDecryptionModuleSession_h 84 #endif // WebContentDecryptionModuleSession_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698