| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 | 417 |
| 415 // Informs the browser there is one less thing keeping the lazy background page | 418 // Informs the browser there is one less thing keeping the lazy background page |
| 416 // alive. | 419 // alive. |
| 417 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_DecrementLazyKeepaliveCount, | 420 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_DecrementLazyKeepaliveCount, |
| 418 std::string /* extension_id */) | 421 std::string /* extension_id */) |
| 419 | 422 |
| 420 // Fetches a globally unique ID (for the lifetime of the browser) from the | 423 // Fetches a globally unique ID (for the lifetime of the browser) from the |
| 421 // browser process. | 424 // browser process. |
| 422 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 425 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
| 423 int /* unique_id */) | 426 int /* unique_id */) |
| OLD | NEW |