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

Side by Side Diff: chrome/common/extensions/extension_messages.h

Issue 10409088: Get rid of the RenderViewType concept in content, since it was only used by Chrome. Store the enum… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 extensions. 5 // IPC messages for extensions.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 #include "chrome/common/extensions/extension_permission_set.h" 11 #include "chrome/common/extensions/extension_permission_set.h"
12 #include "chrome/common/extensions/url_pattern.h" 12 #include "chrome/common/extensions/url_pattern.h"
13 #include "chrome/common/extensions/url_pattern_set.h" 13 #include "chrome/common/extensions/url_pattern_set.h"
14 #include "chrome/common/view_type.h"
14 #include "chrome/common/web_apps.h" 15 #include "chrome/common/web_apps.h"
15 #include "content/public/common/view_type.h"
16 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
17 17
18 #define IPC_MESSAGE_START ExtensionMsgStart 18 #define IPC_MESSAGE_START ExtensionMsgStart
19 19
20 IPC_ENUM_TRAITS(chrome::ViewType)
21
20 // Parameters structure for ExtensionHostMsg_Request. 22 // Parameters structure for ExtensionHostMsg_Request.
21 IPC_STRUCT_BEGIN(ExtensionHostMsg_Request_Params) 23 IPC_STRUCT_BEGIN(ExtensionHostMsg_Request_Params)
22 // Message name. 24 // Message name.
23 IPC_STRUCT_MEMBER(std::string, name) 25 IPC_STRUCT_MEMBER(std::string, name)
24 26
25 // List of message arguments. 27 // List of message arguments.
26 IPC_STRUCT_MEMBER(ListValue, arguments) 28 IPC_STRUCT_MEMBER(ListValue, arguments)
27 29
28 // Extension ID this request was sent from. This can be empty, in the case 30 // Extension ID this request was sent from. This can be empty, in the case
29 // where we expose APIs to normal web pages using the extension function 31 // where we expose APIs to normal web pages using the extension function
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // Tell the renderer to update an extension's permission set. 241 // Tell the renderer to update an extension's permission set.
240 IPC_MESSAGE_CONTROL5(ExtensionMsg_UpdatePermissions, 242 IPC_MESSAGE_CONTROL5(ExtensionMsg_UpdatePermissions,
241 int /* UpdateExtensionPermissionsInfo::REASON */, 243 int /* UpdateExtensionPermissionsInfo::REASON */,
242 std::string /* extension_id */, 244 std::string /* extension_id */,
243 ExtensionAPIPermissionSet /* permissions */, 245 ExtensionAPIPermissionSet /* permissions */,
244 URLPatternSet /* explicit_hosts */, 246 URLPatternSet /* explicit_hosts */,
245 URLPatternSet /* scriptable_hosts */) 247 URLPatternSet /* scriptable_hosts */)
246 248
247 // Tell the renderer which type this view is. 249 // Tell the renderer which type this view is.
248 IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType, 250 IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType,
249 content::ViewType /* view_type */) 251 chrome::ViewType /* view_type */)
250 252
251 // Deliver a message sent with ExtensionHostMsg_PostMessage. 253 // Deliver a message sent with ExtensionHostMsg_PostMessage.
252 IPC_MESSAGE_CONTROL3(ExtensionMsg_UsingWebRequestAPI, 254 IPC_MESSAGE_CONTROL3(ExtensionMsg_UsingWebRequestAPI,
253 bool /* adblock */, 255 bool /* adblock */,
254 bool /* adblock_plus */, 256 bool /* adblock_plus */,
255 bool /* other_webrequest */) 257 bool /* other_webrequest */)
256 258
257 // Ask the lazy background page if it is ready to unload. This is sent when the 259 // Ask the lazy background page if it is ready to unload. This is sent when the
258 // page is considered idle. The renderer will reply with the same sequence_id 260 // page is considered idle. The renderer will reply with the same sequence_id
259 // so that we can tell which message it is responding to. 261 // so that we can tell which message it is responding to.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount) 439 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount)
438 440
439 // Informs the browser there is one less thing keeping the lazy background page 441 // Informs the browser there is one less thing keeping the lazy background page
440 // alive. 442 // alive.
441 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) 443 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount)
442 444
443 // Fetches a globally unique ID (for the lifetime of the browser) from the 445 // Fetches a globally unique ID (for the lifetime of the browser) from the
444 // browser process. 446 // browser process.
445 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 447 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
446 int /* unique_id */) 448 int /* unique_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698