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

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

Issue 10826141: Formalise a CHECK for the NULL NavigationEntry in ScriptBadgeController, and (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: win compile fix Created 8 years, 4 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
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/permissions/permission_set.h" 11 #include "chrome/common/extensions/permissions/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" 16 #include "content/public/common/common_param_traits.h"
17 #include "googleurl/src/gurl.h"
17 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
18 19
19 #define IPC_MESSAGE_START ExtensionMsgStart 20 #define IPC_MESSAGE_START ExtensionMsgStart
20 21
21 IPC_ENUM_TRAITS(chrome::ViewType) 22 IPC_ENUM_TRAITS(chrome::ViewType)
22 23
23 // Parameters structure for ExtensionHostMsg_Request. 24 // Parameters structure for ExtensionHostMsg_Request.
24 IPC_STRUCT_BEGIN(ExtensionHostMsg_Request_Params) 25 IPC_STRUCT_BEGIN(ExtensionHostMsg_Request_Params)
25 // Message name. 26 // Message name.
26 IPC_STRUCT_MEMBER(std::string, name) 27 IPC_STRUCT_MEMBER(std::string, name)
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 bool /* connection_error */) 425 bool /* connection_error */)
425 426
426 // Used to get the extension message bundle. 427 // Used to get the extension message bundle.
427 IPC_SYNC_MESSAGE_CONTROL1_1(ExtensionHostMsg_GetMessageBundle, 428 IPC_SYNC_MESSAGE_CONTROL1_1(ExtensionHostMsg_GetMessageBundle,
428 std::string /* extension id */, 429 std::string /* extension id */,
429 SubstitutionMap /* message bundle */) 430 SubstitutionMap /* message bundle */)
430 431
431 // Sent from the renderer to the browser to return the script running result. 432 // Sent from the renderer to the browser to return the script running result.
432 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_ExecuteCodeFinished, 433 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_ExecuteCodeFinished,
433 int /* request id */, 434 int /* request id */,
434 bool /* whether the script ran successfully */, 435 std::string /* error; empty implies success */,
435 int32 /* page_id the code executed on, if successful */, 436 int32 /* page_id the code executed on, if successful */,
436 std::string /* error message, if unsuccessful */, 437 GURL /* URL of the code executed on, if successful */,
437 ListValue /* result of the script */) 438 ListValue /* result of the script */)
438 439
439 // Sent from the renderer to the browser to notify that content scripts are 440 // Sent from the renderer to the browser to notify that content scripts are
440 // running in the renderer that the IPC originated from. 441 // running in the renderer that the IPC originated from.
441 // Note that the page_id is for the parent (or more accurately the topmost) 442 // Note that the page_id is for the parent (or more accurately the topmost)
442 // frame (e.g. if executing in an iframe this is the page ID of the parent, 443 // frame (e.g. if executing in an iframe this is the page ID of the parent,
443 // unless the parent is an iframe... etc). 444 // unless the parent is an iframe... etc).
444 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_ContentScriptsExecuting, 445 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_ContentScriptsExecuting,
445 std::set<std::string> /* extensions that have scripts */, 446 std::set<std::string> /* extensions that have scripts */,
446 int32 /* page_id of the _topmost_ frame */) 447 int32 /* page_id of the _topmost_ frame */,
448 GURL /* url of the _topmost_ frame */)
447 449
448 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_DidGetApplicationInfo, 450 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_DidGetApplicationInfo,
449 int32 /* page_id */, 451 int32 /* page_id */,
450 WebApplicationInfo) 452 WebApplicationInfo)
451 453
452 // Sent by the renderer to implement chrome.app.install(). 454 // Sent by the renderer to implement chrome.app.install().
453 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_InstallApplication, 455 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_InstallApplication,
454 WebApplicationInfo) 456 WebApplicationInfo)
455 457
456 // Sent by the renderer to implement chrome.webstore.install(). 458 // Sent by the renderer to implement chrome.webstore.install().
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 // alive. 498 // alive.
497 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) 499 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount)
498 500
499 // Fetches a globally unique ID (for the lifetime of the browser) from the 501 // Fetches a globally unique ID (for the lifetime of the browser) from the
500 // browser process. 502 // browser process.
501 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 503 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
502 int /* unique_id */) 504 int /* unique_id */)
503 505
504 // Resumes resource requests for a newly created app window. 506 // Resumes resource requests for a newly created app window.
505 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) 507 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */)
OLDNEW
« no previous file with comments | « chrome/browser/extensions/script_executor.cc ('k') | chrome/renderer/extensions/extension_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698