| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 bool /* allowed */) | 130 bool /* allowed */) |
| 131 | 131 |
| 132 // Sent when the profile changes the kSafeBrowsingEnabled preference. | 132 // Sent when the profile changes the kSafeBrowsingEnabled preference. |
| 133 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, | 133 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, |
| 134 bool /* enable_phishing_detection */) | 134 bool /* enable_phishing_detection */) |
| 135 | 135 |
| 136 // Reloads the image selected by the most recently opened context menu | 136 // Reloads the image selected by the most recently opened context menu |
| 137 // (if there indeed is an image at that location). | 137 // (if there indeed is an image at that location). |
| 138 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode) | 138 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode) |
| 139 | 139 |
| 140 // Asks the renderer for a thumbnail of the image selected by the most | |
| 141 // recently opened context menu, if there is one. If the image's area | |
| 142 // is greater than thumbnail_min_area it will be downscaled to | |
| 143 // be within thumbnail_max_size. The possibly downsampled image will be | |
| 144 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message. | |
| 145 IPC_MESSAGE_ROUTED3(ChromeViewMsg_RequestThumbnailForContextNode, | |
| 146 int /* thumbnail_min_area_pixels */, | |
| 147 gfx::Size /* thumbnail_max_size_pixels */, | |
| 148 int /* ID of the callback */) | |
| 149 | |
| 150 // Notifies the renderer whether hiding/showing the browser controls is enabled, | 140 // Notifies the renderer whether hiding/showing the browser controls is enabled, |
| 151 // what the current state should be, and whether or not to animate to the | 141 // what the current state should be, and whether or not to animate to the |
| 152 // proper state. | 142 // proper state. |
| 153 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateBrowserControlsState, | 143 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateBrowserControlsState, |
| 154 content::BrowserControlsState /* constraints */, | 144 content::BrowserControlsState /* constraints */, |
| 155 content::BrowserControlsState /* current */, | 145 content::BrowserControlsState /* current */, |
| 156 bool /* animate */) | 146 bool /* animate */) |
| 157 | 147 |
| 158 // Updates the window features of the render view. | 148 // Updates the window features of the render view. |
| 159 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, | 149 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, |
| 160 blink::mojom::WindowFeatures /* window_features */) | 150 blink::mojom::WindowFeatures /* window_features */) |
| 161 | 151 |
| 162 // Responds to the request for a thumbnail. | |
| 163 // Thumbnail data will be empty is a thumbnail could not be produced. | |
| 164 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK, | |
| 165 std::string /* JPEG-encoded thumbnail data */, | |
| 166 gfx::Size /* original size of the image */, | |
| 167 int /* ID of the callback */) | |
| 168 | |
| 169 // Requests application info for the page. The renderer responds back with | 152 // Requests application info for the page. The renderer responds back with |
| 170 // ChromeViewHostMsg_DidGetWebApplicationInfo. | 153 // ChromeViewHostMsg_DidGetWebApplicationInfo. |
| 171 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo) | 154 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo) |
| 172 | 155 |
| 173 // chrome.principals messages ------------------------------------------------ | 156 // chrome.principals messages ------------------------------------------------ |
| 174 | 157 |
| 175 // Message sent from the renderer to the browser to get the list of browser | 158 // Message sent from the renderer to the browser to get the list of browser |
| 176 // managed accounts for the given origin. | 159 // managed accounts for the given origin. |
| 177 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts, | 160 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts, |
| 178 GURL /* current URL */, | 161 GURL /* current URL */, |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // process so that they can be assigned to an Instant renderer. | 366 // process so that they can be assigned to an Instant renderer. |
| 384 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, | 367 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, |
| 385 std::vector<GURL> /* search_urls */, | 368 std::vector<GURL> /* search_urls */, |
| 386 GURL /* new_tab_page_url */) | 369 GURL /* new_tab_page_url */) |
| 387 | 370 |
| 388 #if BUILDFLAG(ENABLE_PLUGINS) | 371 #if BUILDFLAG(ENABLE_PLUGINS) |
| 389 // Sent by the renderer to check if crash reporting is enabled. | 372 // Sent by the renderer to check if crash reporting is enabled. |
| 390 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, | 373 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, |
| 391 bool /* enabled */) | 374 bool /* enabled */) |
| 392 #endif | 375 #endif |
| OLD | NEW |