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

Side by Side Diff: content/common/media/cdm_messages.h

Issue 640663005: Apply automatic range checks to content enum types across IPC [content/common/media] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
« no previous file with comments | « no previous file | content/common/media/cdm_messages_enums.h » ('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 // IPC messages for content decryption module (CDM) implementation. 5 // IPC messages for content decryption module (CDM) implementation.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
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 "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/media/cdm_messages_enums.h" 13 #include "content/common/media/cdm_messages_enums.h"
14 #include "ipc/ipc_message_macros.h" 14 #include "ipc/ipc_message_macros.h"
15 #include "media/base/media_keys.h" 15 #include "media/base/media_keys.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 #undef IPC_MESSAGE_EXPORT 18 #undef IPC_MESSAGE_EXPORT
19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
20 #define IPC_MESSAGE_START CdmMsgStart 20 #define IPC_MESSAGE_START CdmMsgStart
21 21
22 IPC_ENUM_TRAITS(media::MediaKeys::KeyError) 22 IPC_ENUM_TRAITS(media::MediaKeys::KeyError)
23 IPC_ENUM_TRAITS(CdmHostMsg_CreateSession_ContentType) 23 IPC_ENUM_TRAITS_MAX_VALUE(CdmHostMsg_CreateSession_ContentType,
24 CREATE_SESSION_TYPE_LAST)
24 25
25 // Messages from render to browser. 26 // Messages from render to browser.
26 27
27 IPC_MESSAGE_CONTROL4(CdmHostMsg_InitializeCdm, 28 IPC_MESSAGE_CONTROL4(CdmHostMsg_InitializeCdm,
28 int /* render_frame_id */, 29 int /* render_frame_id */,
29 int /* cdm_id */, 30 int /* cdm_id */,
30 std::string /* key_system */, 31 std::string /* key_system */,
31 GURL /* security_origin */) 32 GURL /* security_origin */)
32 33
33 IPC_MESSAGE_CONTROL5(CdmHostMsg_CreateSession, 34 IPC_MESSAGE_CONTROL5(CdmHostMsg_CreateSession,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 72
72 IPC_MESSAGE_ROUTED2(CdmMsg_SessionClosed, 73 IPC_MESSAGE_ROUTED2(CdmMsg_SessionClosed,
73 int /* cdm_id */, 74 int /* cdm_id */,
74 uint32_t /* session_id */) 75 uint32_t /* session_id */)
75 76
76 IPC_MESSAGE_ROUTED4(CdmMsg_SessionError, 77 IPC_MESSAGE_ROUTED4(CdmMsg_SessionError,
77 int /* cdm_id */, 78 int /* cdm_id */,
78 uint32_t /* session_id */, 79 uint32_t /* session_id */,
79 media::MediaKeys::KeyError /* error_code */, 80 media::MediaKeys::KeyError /* error_code */,
80 uint32_t /* system_code */) 81 uint32_t /* system_code */)
OLDNEW
« no previous file with comments | « no previous file | content/common/media/cdm_messages_enums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698