OLD | NEW |
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" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // Whether the code is JavaScript or CSS. | 61 // Whether the code is JavaScript or CSS. |
62 IPC_STRUCT_MEMBER(bool, is_javascript) | 62 IPC_STRUCT_MEMBER(bool, is_javascript) |
63 | 63 |
64 // String of code to execute. | 64 // String of code to execute. |
65 IPC_STRUCT_MEMBER(std::string, code) | 65 IPC_STRUCT_MEMBER(std::string, code) |
66 | 66 |
67 // Whether to inject into all frames, or only the root frame. | 67 // Whether to inject into all frames, or only the root frame. |
68 IPC_STRUCT_MEMBER(bool, all_frames) | 68 IPC_STRUCT_MEMBER(bool, all_frames) |
69 | 69 |
| 70 // When to inject the code. |
| 71 IPC_STRUCT_MEMBER(int, run_at) |
| 72 |
70 // Whether to execute code in the main world (as opposed to an isolated | 73 // Whether to execute code in the main world (as opposed to an isolated |
71 // world). | 74 // world). |
72 IPC_STRUCT_MEMBER(bool, in_main_world) | 75 IPC_STRUCT_MEMBER(bool, in_main_world) |
73 IPC_STRUCT_END() | 76 IPC_STRUCT_END() |
74 | 77 |
75 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) | 78 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) |
76 IPC_STRUCT_TRAITS_MEMBER(url) | 79 IPC_STRUCT_TRAITS_MEMBER(url) |
77 IPC_STRUCT_TRAITS_MEMBER(width) | 80 IPC_STRUCT_TRAITS_MEMBER(width) |
78 IPC_STRUCT_TRAITS_MEMBER(height) | 81 IPC_STRUCT_TRAITS_MEMBER(height) |
79 IPC_STRUCT_TRAITS_MEMBER(data) | 82 IPC_STRUCT_TRAITS_MEMBER(data) |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 // Response to the renderer for the above message. | 374 // Response to the renderer for the above message. |
372 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, | 375 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, |
373 std::string /* channel_id */, | 376 std::string /* channel_id */, |
374 std::string /* error */, | 377 std::string /* error */, |
375 int32 /* callback_id */) | 378 int32 /* callback_id */) |
376 | 379 |
377 // Deliver a message sent with ExtensionHostMsg_PostMessage. | 380 // Deliver a message sent with ExtensionHostMsg_PostMessage. |
378 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, | 381 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, |
379 int /* target_port_id */, | 382 int /* target_port_id */, |
380 std::string /* message */) | 383 std::string /* message */) |
OLD | NEW |