| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Defines the IPC messages used by the automation interface. | 5 // Defines the IPC messages used by the automation interface. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "chrome/common/content_settings.h" | 11 #include "chrome/common/content_settings.h" |
| 12 #include "content/common/navigation_types.h" | 12 #include "content/common/navigation_types.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
| 15 #include "net/base/cert_status_flags.h" | |
| 16 #include "net/url_request/url_request_status.h" | 15 #include "net/url_request/url_request_status.h" |
| 17 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
| 18 #include "webkit/glue/window_open_disposition.h" | 17 #include "webkit/glue/window_open_disposition.h" |
| 19 | 18 |
| 20 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous | 19 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous |
| 21 // messages), or one that's been assigned by the proxy (for calls | 20 // messages), or one that's been assigned by the proxy (for calls |
| 22 // which expect a response). The routing_id shouldn't be used for | 21 // which expect a response). The routing_id shouldn't be used for |
| 23 // any other purpose in these message types. | 22 // any other purpose in these message types. |
| 24 | 23 |
| 25 // NOTE: All the new IPC messages should go at the end. | 24 // NOTE: All the new IPC messages should go at the end. |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 IPC_MESSAGE_ROUTED1(AutomationMsg_DidNavigate, | 545 IPC_MESSAGE_ROUTED1(AutomationMsg_DidNavigate, |
| 547 NavigationInfo) | 546 NavigationInfo) |
| 548 | 547 |
| 549 // This message requests the different security states of the page displayed | 548 // This message requests the different security states of the page displayed |
| 550 // in the specified tab. | 549 // in the specified tab. |
| 551 // Request: | 550 // Request: |
| 552 // - int: handle of the tab | 551 // - int: handle of the tab |
| 553 // Response: | 552 // Response: |
| 554 // - bool: whether the operation was successful. | 553 // - bool: whether the operation was successful. |
| 555 // - SecurityStyle: the security style of the tab. | 554 // - SecurityStyle: the security style of the tab. |
| 556 // - net::CertStatus: the status of the server's ssl cert (0 means no errors or | 555 // - int: the status of the server's ssl cert (0 means no errors or no ssl |
| 557 // no ssl was used). | 556 // was used). |
| 558 // - int: the insecure content state, 0 means no insecure contents. | 557 // - int: the insecure content state, 0 means no insecure contents. |
| 559 | 558 |
| 560 IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_GetSecurityState, | 559 IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_GetSecurityState, |
| 561 int, | 560 int, |
| 562 bool, | 561 bool, |
| 563 SecurityStyle, | 562 SecurityStyle, |
| 564 net::CertStatus, | 563 int, |
| 565 int) | 564 int) |
| 566 | 565 |
| 567 // This message requests the page type of the page displayed in the specified | 566 // This message requests the page type of the page displayed in the specified |
| 568 // tab (normal, error or interstitial). | 567 // tab (normal, error or interstitial). |
| 569 // Request: | 568 // Request: |
| 570 // - int: handle of the tab | 569 // - int: handle of the tab |
| 571 // Response: | 570 // Response: |
| 572 // - bool: whether the operation was successful. | 571 // - bool: whether the operation was successful. |
| 573 // - PageType: the type of the page currently displayed. | 572 // - PageType: the type of the page currently displayed. |
| 574 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetPageType, | 573 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetPageType, |
| (...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 // Sent when the renderer has completed or canceled a client redirect for a | 1486 // Sent when the renderer has completed or canceled a client redirect for a |
| 1488 // particular frame. This message may be sent multiple times for the same | 1487 // particular frame. This message may be sent multiple times for the same |
| 1489 // redirect. | 1488 // redirect. |
| 1490 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, | 1489 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, |
| 1491 int64 /* frame_id */) | 1490 int64 /* frame_id */) |
| 1492 | 1491 |
| 1493 | 1492 |
| 1494 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1493 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
| 1495 // This is the section for renderer -> browser automation messages. If it is | 1494 // This is the section for renderer -> browser automation messages. If it is |
| 1496 // an automation <-> browser message, put it above this section. | 1495 // an automation <-> browser message, put it above this section. |
| OLD | NEW |