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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
14 #include "base/process/process.h" | 14 #include "base/process/process.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "chrome/common/common_param_traits.h" | 19 #include "chrome/common/common_param_traits.h" |
20 #include "chrome/common/instant_types.h" | 20 #include "chrome/common/instant_types.h" |
21 #include "chrome/common/ntp_logging_events.h" | 21 #include "chrome/common/ntp_logging_events.h" |
22 #include "chrome/common/omnibox_focus_state.h" | 22 #include "chrome/common/omnibox_focus_state.h" |
23 #include "chrome/common/search_provider.h" | 23 #include "chrome/common/search_provider.h" |
| 24 #include "chrome/common/web_application_info.h" |
24 #include "components/content_settings/core/common/content_settings.h" | 25 #include "components/content_settings/core/common/content_settings.h" |
25 #include "components/content_settings/core/common/content_settings_pattern.h" | 26 #include "components/content_settings/core/common/content_settings_pattern.h" |
26 #include "components/content_settings/core/common/content_settings_types.h" | 27 #include "components/content_settings/core/common/content_settings_types.h" |
27 #include "components/nacl/common/nacl_types.h" | 28 #include "components/nacl/common/nacl_types.h" |
28 #include "content/public/common/common_param_traits.h" | 29 #include "content/public/common/common_param_traits.h" |
29 #include "content/public/common/referrer.h" | 30 #include "content/public/common/referrer.h" |
30 #include "content/public/common/top_controls_state.h" | 31 #include "content/public/common/top_controls_state.h" |
31 #include "ipc/ipc_channel_handle.h" | 32 #include "ipc/ipc_channel_handle.h" |
32 #include "ipc/ipc_message_macros.h" | 33 #include "ipc/ipc_message_macros.h" |
33 #include "ipc/ipc_platform_file.h" | 34 #include "ipc/ipc_platform_file.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) | 181 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) |
181 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) | 182 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) |
182 IPC_STRUCT_TRAITS_MEMBER(capacity) | 183 IPC_STRUCT_TRAITS_MEMBER(capacity) |
183 IPC_STRUCT_TRAITS_MEMBER(liveSize) | 184 IPC_STRUCT_TRAITS_MEMBER(liveSize) |
184 IPC_STRUCT_TRAITS_MEMBER(deadSize) | 185 IPC_STRUCT_TRAITS_MEMBER(deadSize) |
185 IPC_STRUCT_TRAITS_END() | 186 IPC_STRUCT_TRAITS_END() |
186 | 187 |
187 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType, | 188 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType, |
188 NTP_NUM_EVENT_TYPES) | 189 NTP_NUM_EVENT_TYPES) |
189 | 190 |
| 191 IPC_ENUM_TRAITS_MAX_VALUE(WebApplicationInfo::MobileCapable, |
| 192 WebApplicationInfo::MOBILE_CAPABLE_APPLE) |
| 193 |
| 194 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) |
| 195 IPC_STRUCT_TRAITS_MEMBER(url) |
| 196 IPC_STRUCT_TRAITS_MEMBER(width) |
| 197 IPC_STRUCT_TRAITS_MEMBER(height) |
| 198 IPC_STRUCT_TRAITS_MEMBER(data) |
| 199 IPC_STRUCT_TRAITS_END() |
| 200 |
| 201 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) |
| 202 IPC_STRUCT_TRAITS_MEMBER(title) |
| 203 IPC_STRUCT_TRAITS_MEMBER(description) |
| 204 IPC_STRUCT_TRAITS_MEMBER(app_url) |
| 205 IPC_STRUCT_TRAITS_MEMBER(icons) |
| 206 IPC_STRUCT_TRAITS_MEMBER(mobile_capable) |
| 207 IPC_STRUCT_TRAITS_END() |
| 208 |
190 //----------------------------------------------------------------------------- | 209 //----------------------------------------------------------------------------- |
191 // RenderView messages | 210 // RenderView messages |
192 // These are messages sent from the browser to the renderer process. | 211 // These are messages sent from the browser to the renderer process. |
193 | 212 |
194 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 213 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
195 // For WebUI testing, this message requests JavaScript to be executed at a time | 214 // For WebUI testing, this message requests JavaScript to be executed at a time |
196 // which is late enough to not be thrown out, and early enough to be before | 215 // which is late enough to not be thrown out, and early enough to be before |
197 // onload events are fired. | 216 // onload events are fired. |
198 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, | 217 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, |
199 base::string16 /* javascript */) | 218 base::string16 /* javascript */) |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 320 |
302 | 321 |
303 // Updates the window features of the render view. | 322 // Updates the window features of the render view. |
304 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, | 323 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, |
305 blink::WebWindowFeatures /* window_features */) | 324 blink::WebWindowFeatures /* window_features */) |
306 | 325 |
307 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK, | 326 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK, |
308 SkBitmap /* thumbnail */, | 327 SkBitmap /* thumbnail */, |
309 gfx::Size /* original size of the image */) | 328 gfx::Size /* original size of the image */) |
310 | 329 |
| 330 // Requests application info for the page. The renderer responds back with |
| 331 // ChromeViewHostMsg_DidGetWebApplicationInfo. |
| 332 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo) |
| 333 |
311 #if defined(OS_ANDROID) | 334 #if defined(OS_ANDROID) |
312 // Asks the renderer to return information about whether the current page can | |
313 // be treated as a webapp. | |
314 IPC_MESSAGE_ROUTED1(ChromeViewMsg_RetrieveWebappInformation, | |
315 GURL /* expected_url */) | |
316 | |
317 // Asks the renderer to return information about the given meta tag. | 335 // Asks the renderer to return information about the given meta tag. |
318 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent, | 336 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent, |
319 GURL /* expected_url */, | 337 GURL /* expected_url */, |
320 std::string /* tag_name */ ) | 338 std::string /* tag_name */ ) |
321 #endif // defined(OS_ANDROID) | 339 #endif // defined(OS_ANDROID) |
322 | 340 |
323 // chrome.principals messages ------------------------------------------------ | 341 // chrome.principals messages ------------------------------------------------ |
324 | 342 |
325 // Message sent from the renderer to the browser to get the list of browser | 343 // Message sent from the renderer to the browser to get the list of browser |
326 // managed accounts for the given origin. | 344 // managed accounts for the given origin. |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) | 558 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) |
541 | 559 |
542 // Sent when the renderer was prevented from displaying insecure content in | 560 // Sent when the renderer was prevented from displaying insecure content in |
543 // a secure page by a security policy. The page may appear incomplete. | 561 // a secure page by a security policy. The page may appear incomplete. |
544 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) | 562 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) |
545 | 563 |
546 // Sent when the renderer was prevented from running insecure content in | 564 // Sent when the renderer was prevented from running insecure content in |
547 // a secure origin by a security policy. The page may appear incomplete. | 565 // a secure origin by a security policy. The page may appear incomplete. |
548 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) | 566 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) |
549 | 567 |
| 568 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo, |
| 569 WebApplicationInfo) |
| 570 |
550 #if defined(OS_ANDROID) | 571 #if defined(OS_ANDROID) |
551 // Contains info about whether the current page can be treated as a webapp. | |
552 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveWebappInformation, | |
553 bool /* success */, | |
554 bool /* is_mobile_webapp_capable */, | |
555 bool /* is_apple_mobile_webapp_capable */, | |
556 GURL /* expected_url */) | |
557 | |
558 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent, | 572 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent, |
559 bool /* success */, | 573 bool /* success */, |
560 std::string /* tag_name */, | 574 std::string /* tag_name */, |
561 std::string /* tag_content */, | 575 std::string /* tag_content */, |
562 GURL /* expected_url */) | 576 GURL /* expected_url */) |
563 #endif // defined(OS_ANDROID) | 577 #endif // defined(OS_ANDROID) |
564 | 578 |
565 // Logs events from InstantExtended New Tab Pages. | 579 // Logs events from InstantExtended New Tab Pages. |
566 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent, | 580 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent, |
567 int /* page_seq_no */, | 581 int /* page_seq_no */, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 // process so that they can be assigned to an Instant renderer. | 649 // process so that they can be assigned to an Instant renderer. |
636 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, | 650 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, |
637 std::vector<GURL> /* search_urls */, | 651 std::vector<GURL> /* search_urls */, |
638 GURL /* new_tab_page_url */) | 652 GURL /* new_tab_page_url */) |
639 | 653 |
640 #if defined(ENABLE_PLUGINS) | 654 #if defined(ENABLE_PLUGINS) |
641 // Sent by the renderer to check if crash reporting is enabled. | 655 // Sent by the renderer to check if crash reporting is enabled. |
642 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, | 656 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, |
643 bool /* enabled */) | 657 bool /* enabled */) |
644 #endif | 658 #endif |
OLD | NEW |