| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // | 138 // |
| 139 // TODO(nigeltao): delete this when tab_android.cc's use is converted to Mojo. | 139 // TODO(nigeltao): delete this when tab_android.cc's use is converted to Mojo. |
| 140 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode) | 140 IPC_MESSAGE_ROUTED0(ChromeViewMsg_RequestReloadImageForContextNode) |
| 141 | 141 |
| 142 // Asks the renderer for a thumbnail of the image selected by the most | |
| 143 // recently opened context menu, if there is one. If the image's area | |
| 144 // is greater than thumbnail_min_area it will be downscaled to | |
| 145 // be within thumbnail_max_size. The possibly downsampled image will be | |
| 146 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message. | |
| 147 IPC_MESSAGE_ROUTED3(ChromeViewMsg_RequestThumbnailForContextNode, | |
| 148 int /* thumbnail_min_area_pixels */, | |
| 149 gfx::Size /* thumbnail_max_size_pixels */, | |
| 150 int /* ID of the callback */) | |
| 151 | |
| 152 // Notifies the renderer whether hiding/showing the browser controls is enabled, | 142 // Notifies the renderer whether hiding/showing the browser controls is enabled, |
| 153 // what the current state should be, and whether or not to animate to the | 143 // what the current state should be, and whether or not to animate to the |
| 154 // proper state. | 144 // proper state. |
| 155 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateBrowserControlsState, | 145 IPC_MESSAGE_ROUTED3(ChromeViewMsg_UpdateBrowserControlsState, |
| 156 content::BrowserControlsState /* constraints */, | 146 content::BrowserControlsState /* constraints */, |
| 157 content::BrowserControlsState /* current */, | 147 content::BrowserControlsState /* current */, |
| 158 bool /* animate */) | 148 bool /* animate */) |
| 159 | 149 |
| 160 // Updates the window features of the render view. | 150 // Updates the window features of the render view. |
| 161 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, | 151 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetWindowFeatures, |
| 162 blink::mojom::WindowFeatures /* window_features */) | 152 blink::mojom::WindowFeatures /* window_features */) |
| 163 | 153 |
| 164 // Responds to the request for a thumbnail. | |
| 165 // Thumbnail data will be empty is a thumbnail could not be produced. | |
| 166 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_RequestThumbnailForContextNode_ACK, | |
| 167 std::string /* JPEG-encoded thumbnail data */, | |
| 168 gfx::Size /* original size of the image */, | |
| 169 int /* ID of the callback */) | |
| 170 | |
| 171 // Requests application info for the page. The renderer responds back with | 154 // Requests application info for the page. The renderer responds back with |
| 172 // ChromeViewHostMsg_DidGetWebApplicationInfo. | 155 // ChromeViewHostMsg_DidGetWebApplicationInfo. |
| 173 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo) | 156 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetWebApplicationInfo) |
| 174 | 157 |
| 175 // chrome.principals messages ------------------------------------------------ | 158 // chrome.principals messages ------------------------------------------------ |
| 176 | 159 |
| 177 // Message sent from the renderer to the browser to get the list of browser | 160 // Message sent from the renderer to the browser to get the list of browser |
| 178 // managed accounts for the given origin. | 161 // managed accounts for the given origin. |
| 179 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts, | 162 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetManagedAccounts, |
| 180 GURL /* current URL */, | 163 GURL /* current URL */, |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 // process so that they can be assigned to an Instant renderer. | 346 // process so that they can be assigned to an Instant renderer. |
| 364 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, | 347 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, |
| 365 std::vector<GURL> /* search_urls */, | 348 std::vector<GURL> /* search_urls */, |
| 366 GURL /* new_tab_page_url */) | 349 GURL /* new_tab_page_url */) |
| 367 | 350 |
| 368 #if BUILDFLAG(ENABLE_PLUGINS) | 351 #if BUILDFLAG(ENABLE_PLUGINS) |
| 369 // Sent by the renderer to check if crash reporting is enabled. | 352 // Sent by the renderer to check if crash reporting is enabled. |
| 370 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, | 353 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, |
| 371 bool /* enabled */) | 354 bool /* enabled */) |
| 372 #endif | 355 #endif |
| OLD | NEW |