Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: chrome/common/render_messages.h

Issue 363563004: Move extensions-only render IPC messages into the extension messages header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
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/ntp_logging_events.h" 24 #include "chrome/common/ntp_logging_events.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 "components/nacl/common/nacl_types.h" 27 #include "components/nacl/common/nacl_types.h"
28 #include "content/public/common/common_param_traits.h" 28 #include "content/public/common/common_param_traits.h"
29 #include "content/public/common/referrer.h" 29 #include "content/public/common/referrer.h"
30 #include "content/public/common/top_controls_state.h" 30 #include "content/public/common/top_controls_state.h"
31 #include "extensions/common/stack_frame.h"
32 #include "ipc/ipc_channel_handle.h" 31 #include "ipc/ipc_channel_handle.h"
33 #include "ipc/ipc_message_macros.h" 32 #include "ipc/ipc_message_macros.h"
34 #include "ipc/ipc_platform_file.h" 33 #include "ipc/ipc_platform_file.h"
35 #include "third_party/WebKit/public/web/WebCache.h" 34 #include "third_party/WebKit/public/web/WebCache.h"
36 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 35 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
37 #include "third_party/skia/include/core/SkBitmap.h" 36 #include "third_party/skia/include/core/SkBitmap.h"
38 #include "ui/base/window_open_disposition.h" 37 #include "ui/base/window_open_disposition.h"
39 #include "ui/gfx/ipc/gfx_param_traits.h" 38 #include "ui/gfx/ipc/gfx_param_traits.h"
40 #include "ui/gfx/rect.h" 39 #include "ui/gfx/rect.h"
41 40
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 IPC_STRUCT_TRAITS_END() 177 IPC_STRUCT_TRAITS_END()
179 178
180 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats) 179 IPC_STRUCT_TRAITS_BEGIN(blink::WebCache::UsageStats)
181 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) 180 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity)
182 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) 181 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity)
183 IPC_STRUCT_TRAITS_MEMBER(capacity) 182 IPC_STRUCT_TRAITS_MEMBER(capacity)
184 IPC_STRUCT_TRAITS_MEMBER(liveSize) 183 IPC_STRUCT_TRAITS_MEMBER(liveSize)
185 IPC_STRUCT_TRAITS_MEMBER(deadSize) 184 IPC_STRUCT_TRAITS_MEMBER(deadSize)
186 IPC_STRUCT_TRAITS_END() 185 IPC_STRUCT_TRAITS_END()
187 186
188 IPC_STRUCT_TRAITS_BEGIN(extensions::StackFrame)
189 IPC_STRUCT_TRAITS_MEMBER(line_number)
190 IPC_STRUCT_TRAITS_MEMBER(column_number)
191 IPC_STRUCT_TRAITS_MEMBER(source)
192 IPC_STRUCT_TRAITS_MEMBER(function)
193 IPC_STRUCT_TRAITS_END()
194
195 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType, 187 IPC_ENUM_TRAITS_MAX_VALUE(NTPLoggingEventType,
196 NTP_NUM_EVENT_TYPES) 188 NTP_NUM_EVENT_TYPES)
197 189
198 //----------------------------------------------------------------------------- 190 //-----------------------------------------------------------------------------
199 // RenderView messages 191 // RenderView messages
200 // These are messages sent from the browser to the renderer process. 192 // These are messages sent from the browser to the renderer process.
201 193
202 // Tells the renderer to set its maximum cache size to the supplied value. 194 // Tells the renderer to set its maximum cache size to the supplied value.
203 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities, 195 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
204 size_t /* min_dead_capacity */, 196 size_t /* min_dead_capacity */,
205 size_t /* max_dead_capacity */, 197 size_t /* max_dead_capacity */,
206 size_t /* capacity */) 198 size_t /* capacity */)
207 199
208 // Tells the renderer to clear the cache. 200 // Tells the renderer to clear the cache.
209 IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache, 201 IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache,
210 bool /* on_navigation */) 202 bool /* on_navigation */)
211 203
212 #if defined(ENABLE_EXTENSIONS)
213 // Set the top-level frame to the provided name.
214 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetName,
215 std::string /* frame_name */)
216 #endif
217
218 #if !defined(OS_ANDROID) && !defined(OS_IOS) 204 #if !defined(OS_ANDROID) && !defined(OS_IOS)
219 // For WebUI testing, this message requests JavaScript to be executed at a time 205 // For WebUI testing, this message requests JavaScript to be executed at a time
220 // which is late enough to not be thrown out, and early enough to be before 206 // which is late enough to not be thrown out, and early enough to be before
221 // onload events are fired. 207 // onload events are fired.
222 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, 208 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
223 base::string16 /* javascript */) 209 base::string16 /* javascript */)
224 #endif 210 #endif
225 211
226 // Set the content setting rules stored by the renderer. 212 // Set the content setting rules stored by the renderer.
227 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, 213 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 261
276 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged, 262 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged,
277 ThemeBackgroundInfo /* value */) 263 ThemeBackgroundInfo /* value */)
278 264
279 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult, 265 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult,
280 base::string16 /* identity */, 266 base::string16 /* identity */,
281 bool /* identity_match */) 267 bool /* identity_match */)
282 268
283 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch) 269 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch)
284 270
285 #if defined(ENABLE_EXTENSIONS)
286 // Toggles visual muting of the render view area. This is on when a constrained
287 // window is showing.
288 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
289 bool /* deemphazied */)
290 #endif
291
292 // Sent on process startup to indicate whether this process is running in 271 // Sent on process startup to indicate whether this process is running in
293 // incognito mode. 272 // incognito mode.
294 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess, 273 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
295 bool /* is_incognito_processs */) 274 bool /* is_incognito_processs */)
296 275
297 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent. 276 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
298 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent, 277 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
299 bool /* allowed */) 278 bool /* allowed */)
300 279
301 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent. 280 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 // |additional_param_values| contain the name-value pairs, if any, specified 438 // |additional_param_values| contain the name-value pairs, if any, specified
460 // for the *first* plugin found that is registered for |mime_type|. 439 // for the *first* plugin found that is registered for |mime_type|.
461 IPC_SYNC_MESSAGE_CONTROL1_3( 440 IPC_SYNC_MESSAGE_CONTROL1_3(
462 ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType, 441 ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType,
463 std::string /* mime_type */, 442 std::string /* mime_type */,
464 bool /* registered */, 443 bool /* registered */,
465 std::vector<base::string16> /* additional_param_names */, 444 std::vector<base::string16> /* additional_param_names */,
466 std::vector<base::string16> /* additional_param_values */) 445 std::vector<base::string16> /* additional_param_values */)
467 #endif 446 #endif
468 447
469 #if defined(ENABLE_EXTENSIONS)
470 // Informs the browser of updated frame names.
471 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_UpdateFrameName,
472 bool /* is_top_level */,
473 std::string /* name */)
474 #endif
475
476 #if defined(ENABLE_PLUGIN_INSTALLATION) 448 #if defined(ENABLE_PLUGIN_INSTALLATION)
477 // Tells the browser to search for a plug-in that can handle the given MIME 449 // Tells the browser to search for a plug-in that can handle the given MIME
478 // type. The result will be sent asynchronously to the routing ID 450 // type. The result will be sent asynchronously to the routing ID
479 // |placeholder_id|. 451 // |placeholder_id|.
480 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin, 452 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
481 int /* placeholder_id */, 453 int /* placeholder_id */,
482 std::string /* mime_type */) 454 std::string /* mime_type */)
483 455
484 // Notifies the browser that a missing plug-in placeholder has been removed, so 456 // Notifies the browser that a missing plug-in placeholder has been removed, so
485 // the corresponding PluginPlaceholderHost can be deleted. 457 // the corresponding PluginPlaceholderHost can be deleted.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 // Provide the browser process with information about the WebCore resource 542 // Provide the browser process with information about the WebCore resource
571 // cache and current renderer framerate. 543 // cache and current renderer framerate.
572 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats, 544 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
573 blink::WebCache::ResourceTypeStats) 545 blink::WebCache::ResourceTypeStats)
574 546
575 // Message sent from the renderer to the browser to notify it of a 547 // Message sent from the renderer to the browser to notify it of a
576 // window.print() call which should cancel the prerender. The message is sent 548 // window.print() call which should cancel the prerender. The message is sent
577 // only when the renderer is prerendering. 549 // only when the renderer is prerendering.
578 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) 550 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
579 551
580 #if defined(ENABLE_EXTENSIONS)
581 // Sent by the renderer to check if a URL has permission to trigger a clipboard
582 // read/write operation from the DOM.
583 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
584 GURL /* origin */,
585 bool /* allowed */)
586 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
587 GURL /* origin */,
588 bool /* allowed */)
589 #endif
590
591 // Sent when the renderer was prevented from displaying insecure content in 552 // Sent when the renderer was prevented from displaying insecure content in
592 // a secure page by a security policy. The page may appear incomplete. 553 // a secure page by a security policy. The page may appear incomplete.
593 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) 554 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
594 555
595 // Sent when the renderer was prevented from running insecure content in 556 // Sent when the renderer was prevented from running insecure content in
596 // a secure origin by a security policy. The page may appear incomplete. 557 // a secure origin by a security policy. The page may appear incomplete.
597 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) 558 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
598 559
599 #if defined(OS_ANDROID) 560 #if defined(OS_ANDROID)
600 // Contains info about whether the current page can be treated as a webapp. 561 // Contains info about whether the current page can be treated as a webapp.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported, 664 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SetVoiceSearchSupported,
704 int /* page_seq_no */, 665 int /* page_seq_no */,
705 bool /* supported */) 666 bool /* supported */)
706 667
707 // Tells the renderer a list of URLs which should be bounced back to the browser 668 // Tells the renderer a list of URLs which should be bounced back to the browser
708 // process so that they can be assigned to an Instant renderer. 669 // process so that they can be assigned to an Instant renderer.
709 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, 670 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
710 std::vector<GURL> /* search_urls */, 671 std::vector<GURL> /* search_urls */,
711 GURL /* new_tab_page_url */) 672 GURL /* new_tab_page_url */)
712 673
713 // TODO(thestig) Eventually separate out all the extensions messages.
714 #if defined(ENABLE_EXTENSIONS)
715 // Tells listeners that a detailed message was reported to the console by
716 // WebKit.
717 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded,
718 base::string16 /* message */,
719 base::string16 /* source */,
720 extensions::StackTrace /* stack trace */,
721 int32 /* severity level */)
722 #endif
723
724 #if defined(ENABLE_PLUGINS) 674 #if defined(ENABLE_PLUGINS)
725 // Sent by the renderer to check if crash reporting is enabled. 675 // Sent by the renderer to check if crash reporting is enabled.
726 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, 676 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
727 bool /* enabled */) 677 bool /* enabled */)
728 #endif 678 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698