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

Side by Side Diff: content/common/frame_messages.h

Issue 518583003: Don't take a fake UGI every time we execute Javascript. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // IPC messages for interacting with frames. 5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/content_param_traits.h" 9 #include "content/common/content_param_traits.h"
10 #include "content/common/frame_message_enums.h" 10 #include "content/common/frame_message_enums.h"
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 407
408 // Request for the renderer to execute JavaScript in the frame's context. 408 // Request for the renderer to execute JavaScript in the frame's context.
409 // 409 //
410 // javascript is the string containing the JavaScript to be executed in the 410 // javascript is the string containing the JavaScript to be executed in the
411 // target frame's context. 411 // target frame's context.
412 // 412 //
413 // If the third parameter is true the result is sent back to the browser using 413 // If the third parameter is true the result is sent back to the browser using
414 // the message FrameHostMsg_JavaScriptExecuteResponse. 414 // the message FrameHostMsg_JavaScriptExecuteResponse.
415 // FrameHostMsg_JavaScriptExecuteResponse is passed the ID parameter so that the 415 // FrameHostMsg_JavaScriptExecuteResponse is passed the ID parameter so that the
416 // host can uniquely identify the request. 416 // host can uniquely identify the request.
417 IPC_MESSAGE_ROUTED3(FrameMsg_JavaScriptExecuteRequest, 417 IPC_MESSAGE_ROUTED4(FrameMsg_JavaScriptExecuteRequest,
418 base::string16, /* javascript */ 418 base::string16, /* javascript */
419 int, /* ID */ 419 int, /* ID */
420 bool /* if true, a reply is requested */) 420 bool, /* if true, a reply is requested */
421 bool /* ONLY FOR TESTS:
422 if true, a fake UserGestureIndicator is set */)
421 423
422 // Selects between the given start and end offsets in the currently focused 424 // Selects between the given start and end offsets in the currently focused
423 // editable field. 425 // editable field.
424 IPC_MESSAGE_ROUTED2(FrameMsg_SetEditableSelectionOffsets, 426 IPC_MESSAGE_ROUTED2(FrameMsg_SetEditableSelectionOffsets,
425 int /* start */, 427 int /* start */,
426 int /* end */) 428 int /* end */)
427 429
428 // Requests a navigation to the supplied markup, in an iframe with sandbox 430 // Requests a navigation to the supplied markup, in an iframe with sandbox
429 // attributes. 431 // attributes.
430 IPC_MESSAGE_ROUTED1(FrameMsg_SetupTransitionView, 432 IPC_MESSAGE_ROUTED1(FrameMsg_SetupTransitionView,
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) 761 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint)
760 762
761 #if defined(OS_MACOSX) || defined(OS_ANDROID) 763 #if defined(OS_MACOSX) || defined(OS_ANDROID)
762 764
763 // Message to show/hide a popup menu using native controls. 765 // Message to show/hide a popup menu using native controls.
764 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 766 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
765 FrameHostMsg_ShowPopup_Params) 767 FrameHostMsg_ShowPopup_Params)
766 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 768 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
767 769
768 #endif 770 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698