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 <map> | 6 #include <map> |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
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.h" | 14 #include "base/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/autocomplete_match_type.h" | 19 #include "chrome/common/autocomplete_match_type.h" |
20 #include "chrome/common/common_param_traits.h" | 20 #include "chrome/common/common_param_traits.h" |
21 #include "chrome/common/content_settings.h" | 21 #include "chrome/common/content_settings.h" |
22 #include "chrome/common/content_settings_pattern.h" | 22 #include "chrome/common/content_settings_pattern.h" |
23 #include "chrome/common/instant_types.h" | 23 #include "chrome/common/instant_types.h" |
24 #include "chrome/common/nacl_types.h" | 24 #include "chrome/common/nacl_types.h" |
25 #include "chrome/common/omnibox_focus_state.h" | 25 #include "chrome/common/omnibox_focus_state.h" |
26 #include "chrome/common/search_provider.h" | 26 #include "chrome/common/search_provider.h" |
27 #include "chrome/common/translate/language_detection_details.h" | 27 #include "chrome/common/translate/language_detection_details.h" |
28 #include "chrome/common/translate/translate_errors.h" | 28 #include "chrome/common/translate/translate_errors.h" |
29 #include "content/public/common/common_param_traits.h" | 29 #include "content/public/common/common_param_traits.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" |
34 #include "third_party/skia/include/core/SkBitmap.h" | 35 #include "third_party/skia/include/core/SkBitmap.h" |
35 #include "third_party/WebKit/public/web/WebCache.h" | 36 #include "third_party/WebKit/public/web/WebCache.h" |
36 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 37 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
37 #include "ui/base/window_open_disposition.h" | 38 #include "ui/base/window_open_disposition.h" |
38 #include "ui/gfx/rect.h" | 39 #include "ui/gfx/rect.h" |
39 | 40 |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 | 607 |
607 // Message sent from renderer to the browser when the element that is focused | 608 // Message sent from renderer to the browser when the element that is focused |
608 // has been touched. A bool is passed in this message which indicates if the | 609 // has been touched. A bool is passed in this message which indicates if the |
609 // node is editable. | 610 // node is editable. |
610 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FocusedNodeTouched, | 611 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FocusedNodeTouched, |
611 bool /* editable */) | 612 bool /* editable */) |
612 | 613 |
613 // The currently displayed PDF has an unsupported feature. | 614 // The currently displayed PDF has an unsupported feature. |
614 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) | 615 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) |
615 | 616 |
| 617 // Brings up SaveAs... dialog to save specified URL. |
| 618 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PDFSaveURLAs, |
| 619 GURL /* url */, |
| 620 content::Referrer /* referrer */) |
| 621 |
| 622 // Updates the content restrictions, i.e. to disable print/copy. |
| 623 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PDFUpdateContentRestrictions, |
| 624 int /* restrictions */) |
| 625 |
616 // This message indicates the error appeared in the frame. | 626 // This message indicates the error appeared in the frame. |
617 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, | 627 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, |
618 int /* error */) | 628 int /* error */) |
619 | 629 |
620 // This message indicates the monitored frame loading had completed. | 630 // This message indicates the monitored frame loading had completed. |
621 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) | 631 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) |
622 | 632 |
623 // The following messages are used to set and get cookies for ChromeFrame | 633 // The following messages are used to set and get cookies for ChromeFrame |
624 // processes. | 634 // processes. |
625 // Used to set a cookie. The cookie is set asynchronously, but will be | 635 // Used to set a cookie. The cookie is set asynchronously, but will be |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 | 686 |
677 // Tells InstantExtended to undo one most visited item deletion. | 687 // Tells InstantExtended to undo one most visited item deletion. |
678 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion, | 688 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion, |
679 int /* page_id */, | 689 int /* page_id */, |
680 GURL /* url */) | 690 GURL /* url */) |
681 | 691 |
682 // Tells InstantExtended whether the page supports voice search. | 692 // Tells InstantExtended whether the page supports voice search. |
683 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported, | 693 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported, |
684 int /* page_id */, | 694 int /* page_id */, |
685 bool /* supported */) | 695 bool /* supported */) |
OLD | NEW |