Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(856)

Side by Side Diff: chrome/common/render_messages.h

Issue 568823003: Merge Android RetrieveWebappInformation and Extensions GetApplicationInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_manager_content
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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(WebApplicationInfo::MobileCapable)
palmer 2014/09/15 21:02:44 http://www.chromium.org/Home/chromium-security/edu
mlamouri (slow - plz ping) 2014/09/16 14:38:22 Done.
192
193 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo)
194 IPC_STRUCT_TRAITS_MEMBER(url)
195 IPC_STRUCT_TRAITS_MEMBER(width)
196 IPC_STRUCT_TRAITS_MEMBER(height)
197 IPC_STRUCT_TRAITS_MEMBER(data)
198 IPC_STRUCT_TRAITS_END()
199
200 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo)
201 IPC_STRUCT_TRAITS_MEMBER(title)
202 IPC_STRUCT_TRAITS_MEMBER(description)
203 IPC_STRUCT_TRAITS_MEMBER(app_url)
204 IPC_STRUCT_TRAITS_MEMBER(icons)
205 IPC_STRUCT_TRAITS_MEMBER(mobile_capable)
206 IPC_STRUCT_TRAITS_END()
207
190 //----------------------------------------------------------------------------- 208 //-----------------------------------------------------------------------------
191 // RenderView messages 209 // RenderView messages
192 // These are messages sent from the browser to the renderer process. 210 // These are messages sent from the browser to the renderer process.
193 211
194 #if !defined(OS_ANDROID) && !defined(OS_IOS) 212 #if !defined(OS_ANDROID) && !defined(OS_IOS)
195 // For WebUI testing, this message requests JavaScript to be executed at a time 213 // 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 214 // which is late enough to not be thrown out, and early enough to be before
197 // onload events are fired. 215 // onload events are fired.
198 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, 216 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
199 base::string16 /* javascript */) 217 base::string16 /* javascript */)
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 319
302 320
303 // Updates the window features of the render view. 321 // Updates the window features of the render view.
304 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, 322 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures,
305 blink::WebWindowFeatures /* window_features */) 323 blink::WebWindowFeatures /* window_features */)
306 324
307 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK, 325 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK,
308 SkBitmap /* thumbnail */, 326 SkBitmap /* thumbnail */,
309 gfx::Size /* original size of the image */) 327 gfx::Size /* original size of the image */)
310 328
329 // Requests application info for the page. The renderer responds back with
330 // ChromeViewHostMsg_DidGetWebApplicationInfo.
331 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo)
332
311 #if defined(OS_ANDROID) 333 #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. 334 // Asks the renderer to return information about the given meta tag.
318 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent, 335 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RetrieveMetaTagContent,
319 GURL /* expected_url */, 336 GURL /* expected_url */,
320 std::string /* tag_name */ ) 337 std::string /* tag_name */ )
321 #endif // defined(OS_ANDROID) 338 #endif // defined(OS_ANDROID)
322 339
323 // chrome.principals messages ------------------------------------------------ 340 // chrome.principals messages ------------------------------------------------
324 341
325 // Message sent from the renderer to the browser to get the list of browser 342 // Message sent from the renderer to the browser to get the list of browser
326 // managed accounts for the given origin. 343 // managed accounts for the given origin.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) 557 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
541 558
542 // Sent when the renderer was prevented from displaying insecure content in 559 // Sent when the renderer was prevented from displaying insecure content in
543 // a secure page by a security policy. The page may appear incomplete. 560 // a secure page by a security policy. The page may appear incomplete.
544 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) 561 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
545 562
546 // Sent when the renderer was prevented from running insecure content in 563 // Sent when the renderer was prevented from running insecure content in
547 // a secure origin by a security policy. The page may appear incomplete. 564 // a secure origin by a security policy. The page may appear incomplete.
548 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) 565 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
549 566
567 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo,
568 WebApplicationInfo)
569
550 #if defined(OS_ANDROID) 570 #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, 571 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DidRetrieveMetaTagContent,
559 bool /* success */, 572 bool /* success */,
560 std::string /* tag_name */, 573 std::string /* tag_name */,
561 std::string /* tag_content */, 574 std::string /* tag_content */,
562 GURL /* expected_url */) 575 GURL /* expected_url */)
563 #endif // defined(OS_ANDROID) 576 #endif // defined(OS_ANDROID)
564 577
565 // Logs events from InstantExtended New Tab Pages. 578 // Logs events from InstantExtended New Tab Pages.
566 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent, 579 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent,
567 int /* page_seq_no */, 580 int /* page_seq_no */,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 // process so that they can be assigned to an Instant renderer. 648 // process so that they can be assigned to an Instant renderer.
636 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, 649 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
637 std::vector<GURL> /* search_urls */, 650 std::vector<GURL> /* search_urls */,
638 GURL /* new_tab_page_url */) 651 GURL /* new_tab_page_url */)
639 652
640 #if defined(ENABLE_PLUGINS) 653 #if defined(ENABLE_PLUGINS)
641 // Sent by the renderer to check if crash reporting is enabled. 654 // Sent by the renderer to check if crash reporting is enabled.
642 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, 655 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
643 bool /* enabled */) 656 bool /* enabled */)
644 #endif 657 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698