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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 IPC_STRUCT_TRAITS_MEMBER(data) | 85 IPC_STRUCT_TRAITS_MEMBER(data) |
86 IPC_STRUCT_TRAITS_END() | 86 IPC_STRUCT_TRAITS_END() |
87 | 87 |
88 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) | 88 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) |
89 IPC_STRUCT_TRAITS_MEMBER(title) | 89 IPC_STRUCT_TRAITS_MEMBER(title) |
90 IPC_STRUCT_TRAITS_MEMBER(description) | 90 IPC_STRUCT_TRAITS_MEMBER(description) |
91 IPC_STRUCT_TRAITS_MEMBER(app_url) | 91 IPC_STRUCT_TRAITS_MEMBER(app_url) |
92 IPC_STRUCT_TRAITS_MEMBER(icons) | 92 IPC_STRUCT_TRAITS_MEMBER(icons) |
93 IPC_STRUCT_TRAITS_MEMBER(permissions) | 93 IPC_STRUCT_TRAITS_MEMBER(permissions) |
94 IPC_STRUCT_TRAITS_MEMBER(launch_container) | 94 IPC_STRUCT_TRAITS_MEMBER(launch_container) |
| 95 IPC_STRUCT_TRAITS_MEMBER(is_offline_enabled) |
95 IPC_STRUCT_TRAITS_END() | 96 IPC_STRUCT_TRAITS_END() |
96 | 97 |
97 // Singly-included section for custom IPC traits. | 98 // Singly-included section for custom IPC traits. |
98 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ | 99 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ |
99 #define CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ | 100 #define CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ |
100 | 101 |
101 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need | 102 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need |
102 // to typedef it to avoid that. | 103 // to typedef it to avoid that. |
103 // Substitution map for l10n messages. | 104 // Substitution map for l10n messages. |
104 typedef std::map<std::string, std::string> SubstitutionMap; | 105 typedef std::map<std::string, std::string> SubstitutionMap; |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 // alive. | 476 // alive. |
476 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) | 477 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) |
477 | 478 |
478 // Fetches a globally unique ID (for the lifetime of the browser) from the | 479 // Fetches a globally unique ID (for the lifetime of the browser) from the |
479 // browser process. | 480 // browser process. |
480 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 481 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
481 int /* unique_id */) | 482 int /* unique_id */) |
482 | 483 |
483 // Resumes resource requests for a newly created app window. | 484 // Resumes resource requests for a newly created app window. |
484 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 485 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
OLD | NEW |