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

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

Issue 2387613002: Merge Content Settings IPCs back to chrome/common/render_messages.h (Closed)
Patch Set: Cover param_traits in chrome/common/OWNERS, as requested by the presubmit script Created 4 years, 2 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
« no previous file with comments | « chrome/common/common_param_traits_macros.h ('k') | chrome/renderer/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "chrome/common/search/instant_types.h" 14 #include "chrome/common/search/instant_types.h"
15 #include "chrome/common/search/ntp_logging_events.h" 15 #include "chrome/common/search/ntp_logging_events.h"
16 #include "chrome/common/web_application_info.h" 16 #include "chrome/common/web_application_info.h"
17 #include "components/content_settings/core/common/content_settings.h" 17 #include "components/content_settings/core/common/content_settings.h"
18 #include "components/content_settings/core/common/content_settings_pattern.h" 18 #include "components/content_settings/core/common/content_settings_pattern.h"
19 #include "components/content_settings/core/common/content_settings_types.h"
19 #include "components/omnibox/common/omnibox_focus_state.h" 20 #include "components/omnibox/common/omnibox_focus_state.h"
20 #include "content/public/common/top_controls_state.h" 21 #include "content/public/common/top_controls_state.h"
21 #include "content/public/common/webplugininfo.h" 22 #include "content/public/common/webplugininfo.h"
22 #include "ipc/ipc_channel_handle.h" 23 #include "ipc/ipc_channel_handle.h"
23 #include "ipc/ipc_message_macros.h" 24 #include "ipc/ipc_message_macros.h"
24 #include "ipc/ipc_platform_file.h" 25 #include "ipc/ipc_platform_file.h"
25 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm ptReply.h" 26 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm ptReply.h"
26 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 27 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
27 #include "third_party/WebKit/public/web/WebWindowFeatures.h" 28 #include "third_party/WebKit/public/web/WebWindowFeatures.h"
28 #include "ui/base/window_open_disposition.h" 29 #include "ui/base/window_open_disposition.h"
30 #include "url/gurl.h"
29 #include "url/ipc/url_param_traits.h" 31 #include "url/ipc/url_param_traits.h"
30 32
31 // Singly-included section for enums and custom IPC traits. 33 // Singly-included section for enums and custom IPC traits.
32 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ 34 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
33 #define CHROME_COMMON_RENDER_MESSAGES_H_ 35 #define CHROME_COMMON_RENDER_MESSAGES_H_
34 36
35 // These are only used internally, so the order does not matter. 37 // These are only used internally, so the order does not matter.
36 enum class ChromeViewHostMsg_GetPluginInfo_Status { 38 enum class ChromeViewHostMsg_GetPluginInfo_Status {
37 kAllowed, 39 kAllowed,
38 kBlocked, 40 kBlocked,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // which is late enough to not be thrown out, and early enough to be before 197 // which is late enough to not be thrown out, and early enough to be before
196 // onload events are fired. 198 // onload events are fired.
197 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, 199 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
198 base::string16 /* javascript */) 200 base::string16 /* javascript */)
199 #endif 201 #endif
200 202
201 // Set the content setting rules stored by the renderer. 203 // Set the content setting rules stored by the renderer.
202 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, 204 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
203 RendererContentSettingRules /* rules */) 205 RendererContentSettingRules /* rules */)
204 206
207 // Tells the render frame to load all blocked plugins with the given identifier.
208 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins,
209 std::string /* identifier */)
210
205 // Tells the renderer to create a FieldTrial, and by using a 100% probability 211 // Tells the renderer to create a FieldTrial, and by using a 100% probability
206 // for the FieldTrial, forces the FieldTrial to have assigned group name. 212 // for the FieldTrial, forces the FieldTrial to have assigned group name.
207 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, 213 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
208 std::string /* field trial name */, 214 std::string /* field trial name */,
209 std::string /* group name that was assigned. */) 215 std::string /* group name that was assigned. */)
210 216
211 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber, 217 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetPageSequenceNumber,
212 int /* page_seq_no */) 218 int /* page_seq_no */)
213 219
214 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant) 220 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DetermineIfPageSupportsInstant)
(...skipping 23 matching lines...) Expand all
238 244
239 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult, 245 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
240 base::string16 /* identity */, 246 base::string16 /* identity */,
241 bool /* identity_match */) 247 bool /* identity_match */)
242 248
243 // Sent on process startup to indicate whether this process is running in 249 // Sent on process startup to indicate whether this process is running in
244 // incognito mode. 250 // incognito mode.
245 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess, 251 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
246 bool /* is_incognito_processs */) 252 bool /* is_incognito_processs */)
247 253
254 // Sent in response to FrameHostMsg_DidBlockRunningInsecureContent.
255 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
256 bool /* allowed */)
257
258 IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame)
259
260 // Tells the renderer whether or not a file system access has been allowed.
261 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestFileSystemAccessAsyncResponse,
262 int /* request_id */,
263 bool /* allowed */)
264
248 // Sent when the profile changes the kSafeBrowsingEnabled preference. 265 // Sent when the profile changes the kSafeBrowsingEnabled preference.
249 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, 266 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
250 bool /* enable_phishing_detection */) 267 bool /* enable_phishing_detection */)
251 268
252 // Reloads the image selected by the most recently opened context menu 269 // Reloads the image selected by the most recently opened context menu
253 // (if there indeed is an image at that location). 270 // (if there indeed is an image at that location).
254 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode) 271 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode)
255 272
256 // Asks the renderer for a thumbnail of the image selected by the most 273 // Asks the renderer for a thumbnail of the image selected by the most
257 // recently opened context menu, if there is one. If the image's area 274 // recently opened context menu, if there is one. If the image's area
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts, 311 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts,
295 GURL /* current URL */, 312 GURL /* current URL */,
296 std::vector<std::string> /* managed accounts */) 313 std::vector<std::string> /* managed accounts */)
297 314
298 // Message sent from the renderer to the browser to show the browser account 315 // Message sent from the renderer to the browser to show the browser account
299 // management UI. 316 // management UI.
300 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI) 317 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_ShowBrowserAccountManagementUI)
301 318
302 // JavaScript related messages ----------------------------------------------- 319 // JavaScript related messages -----------------------------------------------
303 320
321 // Tells the frame it is displaying an interstitial page.
322 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial)
323
304 // Provides the renderer with the results of the browser's investigation into 324 // Provides the renderer with the results of the browser's investigation into
305 // why a recent main frame load failed (currently, just DNS probe result). 325 // why a recent main frame load failed (currently, just DNS probe result).
306 // NetErrorHelper will receive this mesage and replace or update the error 326 // NetErrorHelper will receive this mesage and replace or update the error
307 // page with more specific troubleshooting suggestions. 327 // page with more specific troubleshooting suggestions.
308 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo, 328 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo,
309 int /* DNS probe status */) 329 int /* DNS probe status */)
310 330
311 #if defined(OS_ANDROID) 331 #if defined(OS_ANDROID)
312 // Tells the renderer whether or not offline pages exist. This is used to 332 // Tells the renderer whether or not offline pages exist. This is used to
313 // decide if offline related button will be provided on certain error page. 333 // decide if offline related button will be provided on certain error page.
(...skipping 20 matching lines...) Expand all
334 // Misc messages 354 // Misc messages
335 // These are messages sent from the renderer to the browser process. 355 // These are messages sent from the renderer to the browser process.
336 356
337 IPC_MESSAGE_CONTROL5(ChromeViewHostMsg_UpdatedCacheStats, 357 IPC_MESSAGE_CONTROL5(ChromeViewHostMsg_UpdatedCacheStats,
338 uint64_t /* min_dead_capacity */, 358 uint64_t /* min_dead_capacity */,
339 uint64_t /* max_dead_capacity */, 359 uint64_t /* max_dead_capacity */,
340 uint64_t /* capacity */, 360 uint64_t /* capacity */,
341 uint64_t /* live_size */, 361 uint64_t /* live_size */,
342 uint64_t /* dead_size */) 362 uint64_t /* dead_size */)
343 363
364 // Tells the browser that content in the current page was blocked due to the
365 // user's content settings.
366 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
367 ContentSettingsType /* type of blocked content */,
368 base::string16 /* details on blocked content */)
369
370 // Sent by the renderer process to check whether access to web databases is
371 // granted by content settings.
372 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
373 int /* render_frame_id */,
374 GURL /* origin_url */,
375 GURL /* top origin url */,
376 base::string16 /* database name */,
377 base::string16 /* database display name */,
378 bool /* allowed */)
379
380 // Sent by the renderer process to check whether access to DOM Storage is
381 // granted by content settings.
382 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
383 int /* render_frame_id */,
384 GURL /* origin_url */,
385 GURL /* top origin url */,
386 bool /* if true local storage, otherwise session */,
387 bool /* allowed */)
388
344 // Sent by the renderer process to check whether access to FileSystem is 389 // Sent by the renderer process to check whether access to FileSystem is
345 // granted by content settings. 390 // granted by content settings.
346 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync, 391 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_RequestFileSystemAccessSync,
347 int /* render_frame_id */, 392 int /* render_frame_id */,
348 GURL /* origin_url */, 393 GURL /* origin_url */,
349 GURL /* top origin url */, 394 GURL /* top origin url */,
350 bool /* allowed */) 395 bool /* allowed */)
351 396
397 // Sent by the renderer process when a keygen element is rendered onto the
398 // current page.
399 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidUseKeygen,
400 GURL /* origin_url */)
401
402 // Sent by the renderer process to check whether access to FileSystem is
403 // granted by content settings.
404 IPC_MESSAGE_CONTROL4(ChromeViewHostMsg_RequestFileSystemAccessAsync,
405 int /* render_frame_id */,
406 int /* request_id */,
407 GURL /* origin_url */,
408 GURL /* top origin url */)
409
410 // Sent by the renderer process to check whether access to Indexed DBis
411 // granted by content settings.
412 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
413 int /* render_frame_id */,
414 GURL /* origin_url */,
415 GURL /* top origin url */,
416 base::string16 /* database name */,
417 bool /* allowed */)
418
352 // Return information about a plugin for the given URL and MIME type. 419 // Return information about a plugin for the given URL and MIME type.
353 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows 420 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
354 // about specific reasons why a plugin can't be used, for example because it's 421 // about specific reasons why a plugin can't be used, for example because it's
355 // disabled. 422 // disabled.
356 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, 423 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo,
357 int /* render_frame_id */, 424 int /* render_frame_id */,
358 GURL /* url */, 425 GURL /* url */,
359 GURL /* top origin url */, 426 GURL /* top origin url */,
360 std::string /* mime_type */, 427 std::string /* mime_type */,
361 ChromeViewHostMsg_GetPluginInfo_Output /* output */) 428 ChromeViewHostMsg_GetPluginInfo_Output /* output */)
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 // user authorization. 534 // user authorization.
468 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin, 535 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin,
469 base::string16 /* name */, 536 base::string16 /* name */,
470 std::string /* plugin group identifier */) 537 std::string /* plugin group identifier */)
471 538
472 // Message sent from the renderer to the browser to notify it of a 539 // Message sent from the renderer to the browser to notify it of a
473 // window.print() call which should cancel the prerender. The message is sent 540 // window.print() call which should cancel the prerender. The message is sent
474 // only when the renderer is prerendering. 541 // only when the renderer is prerendering.
475 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) 542 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
476 543
544 // Sent when the renderer was prevented from displaying insecure content in
545 // a secure page by a security policy. The page may appear incomplete.
546 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
547
477 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo, 548 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_DidGetWebApplicationInfo,
478 WebApplicationInfo) 549 WebApplicationInfo)
479 550
480 // Logs events from InstantExtended New Tab Pages. 551 // Logs events from InstantExtended New Tab Pages.
481 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogEvent, 552 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_LogEvent,
482 int /* page_seq_no */, 553 int /* page_seq_no */,
483 NTPLoggingEventType /* event */, 554 NTPLoggingEventType /* event */,
484 base::TimeDelta /* time */) 555 base::TimeDelta /* time */)
485 556
486 // Logs an impression on one of the Most Visited tile on the InstantExtended 557 // Logs an impression on one of the Most Visited tile on the InstantExtended
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 638
568 // Record a sample string to a Rappor metric. 639 // Record a sample string to a Rappor metric.
569 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, 640 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor,
570 std::string /* metric */, 641 std::string /* metric */,
571 std::string /* sample */) 642 std::string /* sample */)
572 643
573 // Record a domain and registry of a url to a Rappor metric. 644 // Record a domain and registry of a url to a Rappor metric.
574 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, 645 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL,
575 std::string /* metric */, 646 std::string /* metric */,
576 GURL /* sample url */) 647 GURL /* sample url */)
OLDNEW
« no previous file with comments | « chrome/common/common_param_traits_macros.h ('k') | chrome/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698