| 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 <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" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 enum class ChromeViewHostMsg_GetPluginInfo_Status { | 35 enum class ChromeViewHostMsg_GetPluginInfo_Status { |
| 36 kAllowed, | 36 kAllowed, |
| 37 kBlocked, | 37 kBlocked, |
| 38 kBlockedByPolicy, | 38 kBlockedByPolicy, |
| 39 kDisabled, | 39 kDisabled, |
| 40 kNotFound, | 40 kNotFound, |
| 41 kOutdatedBlocked, | 41 kOutdatedBlocked, |
| 42 kOutdatedDisallowed, | 42 kOutdatedDisallowed, |
| 43 kPlayImportantContent, | 43 kPlayImportantContent, |
| 44 kComponentUpdateRequired, |
| 44 kUnauthorized, | 45 kUnauthorized, |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 namespace IPC { | 48 namespace IPC { |
| 48 | 49 |
| 49 template <> | 50 template <> |
| 50 struct ParamTraits<ContentSettingsPattern> { | 51 struct ParamTraits<ContentSettingsPattern> { |
| 51 typedef ContentSettingsPattern param_type; | 52 typedef ContentSettingsPattern param_type; |
| 52 static void GetSize(base::PickleSizer* s, const param_type& p); | 53 static void GetSize(base::PickleSizer* s, const param_type& p); |
| 53 static void Write(base::Pickle* m, const param_type& p); | 54 static void Write(base::Pickle* m, const param_type& p); |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 // Notifies a missing plugin placeholder that we have finished downloading | 402 // Notifies a missing plugin placeholder that we have finished downloading |
| 402 // the plugin. | 403 // the plugin. |
| 403 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin) | 404 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin) |
| 404 | 405 |
| 405 // Notifies a missing plugin placeholder that there was an error downloading | 406 // Notifies a missing plugin placeholder that there was an error downloading |
| 406 // the plugin. | 407 // the plugin. |
| 407 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin, | 408 IPC_MESSAGE_ROUTED1(ChromeViewMsg_ErrorDownloadingPlugin, |
| 408 std::string /* message */) | 409 std::string /* message */) |
| 409 #endif // defined(ENABLE_PLUGIN_INSTALLATION) | 410 #endif // defined(ENABLE_PLUGIN_INSTALLATION) |
| 410 | 411 |
| 412 // Notifies a missing plugin placeholder that we have finished component- |
| 413 // updating the plug-in. |
| 414 IPC_MESSAGE_ROUTED0(ChromeViewMsg_PluginComponentUpdateSuccess) |
| 415 |
| 416 // Notifies a missing plugin placeholder that we have failed to component-update |
| 417 // the plug-in. |
| 418 IPC_MESSAGE_ROUTED0(ChromeViewMsg_PluginComponentUpdateFailure) |
| 419 |
| 420 // Notifies a missing plugin placeholder that we have started the component |
| 421 // download. |
| 422 IPC_MESSAGE_ROUTED0(ChromeViewMsg_PluginComponentUpdateDownloading) |
| 423 |
| 411 // Notifies a missing plugin placeholder that the user cancelled downloading | 424 // Notifies a missing plugin placeholder that the user cancelled downloading |
| 412 // the plugin. | 425 // the plugin. |
| 413 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin) | 426 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CancelledDownloadingPlugin) |
| 414 | 427 |
| 415 // Tells the browser to open chrome://plugins in a new tab. We use a separate | 428 // Tells the browser to open chrome://plugins in a new tab. We use a separate |
| 416 // message because renderer processes aren't allowed to directly navigate to | 429 // message because renderer processes aren't allowed to directly navigate to |
| 417 // chrome:// URLs. | 430 // chrome:// URLs. |
| 418 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) | 431 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) |
| 419 | 432 |
| 420 // Tells the browser that there was an error loading a plugin. | 433 // Tells the browser that there was an error loading a plugin. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 440 // associated with it. | 453 // associated with it. |
| 441 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageHasOSDD, | 454 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageHasOSDD, |
| 442 GURL /* page_url */, | 455 GURL /* page_url */, |
| 443 GURL /* osdd_url */) | 456 GURL /* osdd_url */) |
| 444 | 457 |
| 445 // Notifies when a plugin couldn't be loaded because it's outdated. | 458 // Notifies when a plugin couldn't be loaded because it's outdated. |
| 446 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, | 459 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, |
| 447 int /* placeholder ID */, | 460 int /* placeholder ID */, |
| 448 std::string /* plugin group identifier */) | 461 std::string /* plugin group identifier */) |
| 449 | 462 |
| 463 // Notifies when a plugin couldn't be loaded because it requires a component |
| 464 // update. |
| 465 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedComponentUpdatedPlugin, |
| 466 int /* placeholder ID */, |
| 467 std::string /* plugin group identifier */) |
| 468 |
| 450 // Notifies when a plugin couldn't be loaded because it requires | 469 // Notifies when a plugin couldn't be loaded because it requires |
| 451 // user authorization. | 470 // user authorization. |
| 452 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin, | 471 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin, |
| 453 base::string16 /* name */, | 472 base::string16 /* name */, |
| 454 std::string /* plugin group identifier */) | 473 std::string /* plugin group identifier */) |
| 455 | 474 |
| 456 // Message sent from the renderer to the browser to notify it of a | 475 // Message sent from the renderer to the browser to notify it of a |
| 457 // window.print() call which should cancel the prerender. The message is sent | 476 // window.print() call which should cancel the prerender. The message is sent |
| 458 // only when the renderer is prerendering. | 477 // only when the renderer is prerendering. |
| 459 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) | 478 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 570 |
| 552 // Record a sample string to a Rappor metric. | 571 // Record a sample string to a Rappor metric. |
| 553 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 572 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
| 554 std::string /* metric */, | 573 std::string /* metric */, |
| 555 std::string /* sample */) | 574 std::string /* sample */) |
| 556 | 575 |
| 557 // Record a domain and registry of a url to a Rappor metric. | 576 // Record a domain and registry of a url to a Rappor metric. |
| 558 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 577 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
| 559 std::string /* metric */, | 578 std::string /* metric */, |
| 560 GURL /* sample url */) | 579 GURL /* sample url */) |
| OLD | NEW |