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

Side by Side Diff: media/base/browser_cdm.h

Issue 318753010: Introduce the ENABLE_BROWSER_CDMS macro. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MEDIA_EXPORT Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/media.gyp » ('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 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 MEDIA_BASE_BROWSER_CDM_H_ 5 #ifndef MEDIA_BASE_BROWSER_CDM_H_
6 #define MEDIA_BASE_BROWSER_CDM_H_ 6 #define MEDIA_BASE_BROWSER_CDM_H_
7 7
8 #include "media/base/media_export.h"
8 #include "media/base/media_keys.h" 9 #include "media/base/media_keys.h"
9 #include "media/base/player_tracker.h" 10 #include "media/base/player_tracker.h"
10 11
11 namespace media { 12 namespace media {
12 13
13 // Interface for browser side CDMs. 14 // Interface for browser side CDMs.
14 class BrowserCdm : public PlayerTracker { 15 class MEDIA_EXPORT BrowserCdm : public PlayerTracker {
15 public: 16 public:
16 // TODO(jrummell): Update this to actually derive from MediaKeys 17 // TODO(jrummell): Update this to actually derive from MediaKeys
17 // (Use web_session_id rather than session_id). 18 // (Use web_session_id rather than session_id).
18 typedef base::Callback< 19 typedef base::Callback<
19 void(uint32 session_id, const std::string& web_session_id)> 20 void(uint32 session_id, const std::string& web_session_id)>
20 SessionCreatedCB; 21 SessionCreatedCB;
21 22
22 typedef base::Callback<void(uint32 session_id, 23 typedef base::Callback<void(uint32 session_id,
23 const std::vector<uint8>& message, 24 const std::vector<uint8>& message,
24 const GURL& destination_url)> SessionMessageCB; 25 const GURL& destination_url)> SessionMessageCB;
(...skipping 28 matching lines...) Expand all
53 protected: 54 protected:
54 BrowserCdm(); 55 BrowserCdm();
55 56
56 private: 57 private:
57 DISALLOW_COPY_AND_ASSIGN(BrowserCdm); 58 DISALLOW_COPY_AND_ASSIGN(BrowserCdm);
58 }; 59 };
59 60
60 } // namespace media 61 } // namespace media
61 62
62 #endif // MEDIA_BASE_BROWSER_CDM_H_ 63 #endif // MEDIA_BASE_BROWSER_CDM_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698