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

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

Issue 10534147: Allow platform apps to open links in the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move ConsoleMessageLevel to common_param_traits Created 8 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
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/view_type.h"
15 #include "chrome/common/web_apps.h" 15 #include "chrome/common/web_apps.h"
16 #include "content/public/common/common_param_traits.h"
17 #include "content/public/common/console_message_level.h"
jam 2012/06/14 03:59:55 nit: redundant, since you're including common_para
Mihai Parparita -not on Chrome 2012/06/14 23:10:08 Done (though then in theory it's not Include-What-
16 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
17 19
18 #define IPC_MESSAGE_START ExtensionMsgStart 20 #define IPC_MESSAGE_START ExtensionMsgStart
19 21
20 IPC_ENUM_TRAITS(chrome::ViewType) 22 IPC_ENUM_TRAITS(chrome::ViewType)
21 23
22 // Parameters structure for ExtensionHostMsg_Request. 24 // Parameters structure for ExtensionHostMsg_Request.
23 IPC_STRUCT_BEGIN(ExtensionHostMsg_Request_Params) 25 IPC_STRUCT_BEGIN(ExtensionHostMsg_Request_Params)
24 // Message name. 26 // Message name.
25 IPC_STRUCT_MEMBER(std::string, name) 27 IPC_STRUCT_MEMBER(std::string, name)
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 320
319 // Dispatch the Port.onDisconnect event for message channels. 321 // Dispatch the Port.onDisconnect event for message channels.
320 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect, 322 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect,
321 int /* port_id */, 323 int /* port_id */,
322 bool /* connection_error */) 324 bool /* connection_error */)
323 325
324 // Informs the renderer what channel (dev, beta, stable, etc) is running. 326 // Informs the renderer what channel (dev, beta, stable, etc) is running.
325 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetChannel, 327 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetChannel,
326 int /* channel */) 328 int /* channel */)
327 329
330 // Adds a logging message to the renderer's root frame DevTools console.
331 IPC_MESSAGE_ROUTED2(ExtensionMsg_AddMessageToConsole,
332 content::ConsoleMessageLevel /* level */,
333 std::string /* message */)
334
328 // Messages sent from the renderer to the browser. 335 // Messages sent from the renderer to the browser.
329 336
330 // A renderer sends this message when an extension process starts an API 337 // A renderer sends this message when an extension process starts an API
331 // request. The browser will always respond with a ExtensionMsg_Response. 338 // request. The browser will always respond with a ExtensionMsg_Response.
332 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, 339 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request,
333 ExtensionHostMsg_Request_Params) 340 ExtensionHostMsg_Request_Params)
334 341
335 // A renderer sends this message when an extension process starts an API 342 // A renderer sends this message when an extension process starts an API
336 // request. The browser will always respond with a ExtensionMsg_Response. 343 // request. The browser will always respond with a ExtensionMsg_Response.
337 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, 344 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount) 472 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount)
466 473
467 // Informs the browser there is one less thing keeping the lazy background page 474 // Informs the browser there is one less thing keeping the lazy background page
468 // alive. 475 // alive.
469 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) 476 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount)
470 477
471 // Fetches a globally unique ID (for the lifetime of the browser) from the 478 // Fetches a globally unique ID (for the lifetime of the browser) from the
472 // browser process. 479 // browser process.
473 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 480 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
474 int /* unique_id */) 481 int /* unique_id */)
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/shell_window.cc ('k') | chrome/renderer/extensions/extension_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698