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/draggable_region.h" | 10 #include "chrome/common/extensions/draggable_region.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 // Whether to inject into all frames, or only the root frame. | 77 // Whether to inject into all frames, or only the root frame. |
78 IPC_STRUCT_MEMBER(bool, all_frames) | 78 IPC_STRUCT_MEMBER(bool, all_frames) |
79 | 79 |
80 // When to inject the code. | 80 // When to inject the code. |
81 IPC_STRUCT_MEMBER(int, run_at) | 81 IPC_STRUCT_MEMBER(int, run_at) |
82 | 82 |
83 // Whether to execute code in the main world (as opposed to an isolated | 83 // Whether to execute code in the main world (as opposed to an isolated |
84 // world). | 84 // world). |
85 IPC_STRUCT_MEMBER(bool, in_main_world) | 85 IPC_STRUCT_MEMBER(bool, in_main_world) |
| 86 |
| 87 // Whether the request is coming from a <webview>. |
| 88 IPC_STRUCT_MEMBER(bool, is_web_view) |
86 IPC_STRUCT_END() | 89 IPC_STRUCT_END() |
87 | 90 |
88 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) | 91 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) |
89 IPC_STRUCT_TRAITS_MEMBER(url) | 92 IPC_STRUCT_TRAITS_MEMBER(url) |
90 IPC_STRUCT_TRAITS_MEMBER(width) | 93 IPC_STRUCT_TRAITS_MEMBER(width) |
91 IPC_STRUCT_TRAITS_MEMBER(height) | 94 IPC_STRUCT_TRAITS_MEMBER(height) |
92 IPC_STRUCT_TRAITS_MEMBER(data) | 95 IPC_STRUCT_TRAITS_MEMBER(data) |
93 IPC_STRUCT_TRAITS_END() | 96 IPC_STRUCT_TRAITS_END() |
94 | 97 |
95 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) | 98 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 // browser process. | 570 // browser process. |
568 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 571 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
569 int /* unique_id */) | 572 int /* unique_id */) |
570 | 573 |
571 // Resumes resource requests for a newly created app window. | 574 // Resumes resource requests for a newly created app window. |
572 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 575 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
573 | 576 |
574 // Sent by the renderer when the draggable regions are updated. | 577 // Sent by the renderer when the draggable regions are updated. |
575 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 578 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, |
576 std::vector<extensions::DraggableRegion> /* regions */) | 579 std::vector<extensions::DraggableRegion> /* regions */) |
OLD | NEW |