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

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

Issue 61553006: Rename WebKit namespace to blink (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « cc/trees/layer_tree_host_unittest_context.cc ('k') | ppapi/proxy/websocket_resource.cc » ('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 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 MEDIA_BASE_MEDIA_KEYS_H_ 5 #ifndef MEDIA_BASE_MEDIA_KEYS_H_
6 #define MEDIA_BASE_MEDIA_KEYS_H_ 6 #define MEDIA_BASE_MEDIA_KEYS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "media/base/media_export.h" 14 #include "media/base/media_export.h"
15 15
16 namespace media { 16 namespace media {
17 17
18 class Decryptor; 18 class Decryptor;
19 19
20 // Performs media key operations. 20 // Performs media key operations.
21 // 21 //
22 // All key operations are called on the renderer thread. Therefore, these calls 22 // All key operations are called on the renderer thread. Therefore, these calls
23 // should be fast and nonblocking; key events should be fired asynchronously. 23 // should be fast and nonblocking; key events should be fired asynchronously.
24 class MEDIA_EXPORT MediaKeys { 24 class MEDIA_EXPORT MediaKeys {
25 public: 25 public:
26 // Reported to UMA, so never reuse a value! 26 // Reported to UMA, so never reuse a value!
27 // Must be kept in sync with WebKit::WebMediaPlayerClient::MediaKeyErrorCode 27 // Must be kept in sync with blink::WebMediaPlayerClient::MediaKeyErrorCode
28 // (enforced in webmediaplayer_impl.cc). 28 // (enforced in webmediaplayer_impl.cc).
29 enum KeyError { 29 enum KeyError {
30 kUnknownError = 1, 30 kUnknownError = 1,
31 kClientError, 31 kClientError,
32 // The commented v0.1b values below have never been used. 32 // The commented v0.1b values below have never been used.
33 // kServiceError, 33 // kServiceError,
34 kOutputError = 4, 34 kOutputError = 4,
35 // kHardwareChangeError, 35 // kHardwareChangeError,
36 // kDomainError, 36 // kDomainError,
37 kMaxKeyError // Must be last and greater than any legit value. 37 kMaxKeyError // Must be last and greater than any legit value.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 typedef base::Callback<void(const std::string& session_id, 75 typedef base::Callback<void(const std::string& session_id,
76 media::MediaKeys::KeyError error_code, 76 media::MediaKeys::KeyError error_code,
77 int system_code)> KeyErrorCB; 77 int system_code)> KeyErrorCB;
78 78
79 typedef base::Callback<void(const std::string& session_id, 79 typedef base::Callback<void(const std::string& session_id,
80 const std::vector<uint8>& message, 80 const std::vector<uint8>& message,
81 const std::string& default_url)> KeyMessageCB; 81 const std::string& default_url)> KeyMessageCB;
82 } // namespace media 82 } // namespace media
83 83
84 #endif // MEDIA_BASE_MEDIA_KEYS_H_ 84 #endif // MEDIA_BASE_MEDIA_KEYS_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_context.cc ('k') | ppapi/proxy/websocket_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698