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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback + add more testing Created 6 years, 6 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 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeLoadProgress, 520 IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeLoadProgress,
521 OnDidChangeLoadProgress) 521 OnDidChangeLoadProgress)
522 IPC_MESSAGE_HANDLER(FrameHostMsg_OpenColorChooser, OnOpenColorChooser) 522 IPC_MESSAGE_HANDLER(FrameHostMsg_OpenColorChooser, OnOpenColorChooser)
523 IPC_MESSAGE_HANDLER(FrameHostMsg_EndColorChooser, OnEndColorChooser) 523 IPC_MESSAGE_HANDLER(FrameHostMsg_EndColorChooser, OnEndColorChooser)
524 IPC_MESSAGE_HANDLER(FrameHostMsg_SetSelectedColorInColorChooser, 524 IPC_MESSAGE_HANDLER(FrameHostMsg_SetSelectedColorInColorChooser,
525 OnSetSelectedColorInColorChooser) 525 OnSetSelectedColorInColorChooser)
526 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPlayingNotification, 526 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPlayingNotification,
527 OnMediaPlayingNotification) 527 OnMediaPlayingNotification)
528 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPausedNotification, 528 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPausedNotification,
529 OnMediaPausedNotification) 529 OnMediaPausedNotification)
530 IPC_MESSAGE_HANDLER(FrameHostMsg_DidFirstVisuallyNonEmptyPaint,
531 OnFirstVisuallyNonEmptyPaint)
530 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, 532 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache,
531 OnDidLoadResourceFromMemoryCache) 533 OnDidLoadResourceFromMemoryCache)
532 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, 534 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent,
533 OnDidDisplayInsecureContent) 535 OnDidDisplayInsecureContent)
534 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, 536 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent,
535 OnDidRunInsecureContent) 537 OnDidRunInsecureContent)
536 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) 538 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset)
537 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) 539 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits)
538 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) 540 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory)
539 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, 541 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler,
540 OnRegisterProtocolHandler) 542 OnRegisterProtocolHandler)
541 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) 543 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply)
542 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) 544 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed)
543 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) 545 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend)
544 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, 546 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission,
545 OnRequestPpapiBrokerPermission) 547 OnRequestPpapiBrokerPermission)
546 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, 548 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach,
547 OnBrowserPluginMessage(message)) 549 OnBrowserPluginMessage(message))
548 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) 550 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage)
549 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) 551 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL)
550 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint,
551 OnFirstVisuallyNonEmptyPaint)
552 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, 552 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage,
553 OnShowValidationMessage) 553 OnShowValidationMessage)
554 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, 554 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage,
555 OnHideValidationMessage) 555 OnHideValidationMessage)
556 IPC_MESSAGE_HANDLER(ViewHostMsg_MoveValidationMessage, 556 IPC_MESSAGE_HANDLER(ViewHostMsg_MoveValidationMessage,
557 OnMoveValidationMessage) 557 OnMoveValidationMessage)
558 #if defined(OS_ANDROID) 558 #if defined(OS_ANDROID)
559 IPC_MESSAGE_HANDLER(ViewHostMsg_FindMatchRects_Reply, 559 IPC_MESSAGE_HANDLER(ViewHostMsg_FindMatchRects_Reply,
560 OnFindMatchRectsReply) 560 OnFindMatchRectsReply)
561 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenDateTimeDialog, 561 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenDateTimeDialog,
(...skipping 3538 matching lines...) Expand 10 before | Expand all | Expand 10 after
4100 if (new_size != old_size) 4100 if (new_size != old_size)
4101 delegate_->UpdatePreferredSize(this, new_size); 4101 delegate_->UpdatePreferredSize(this, new_size);
4102 } 4102 }
4103 4103
4104 void WebContentsImpl::ResumeResponseDeferredAtStart() { 4104 void WebContentsImpl::ResumeResponseDeferredAtStart() {
4105 FrameTreeNode* node = frame_tree_.root(); 4105 FrameTreeNode* node = frame_tree_.root();
4106 node->render_manager()->ResumeResponseDeferredAtStart(); 4106 node->render_manager()->ResumeResponseDeferredAtStart();
4107 } 4107 }
4108 4108
4109 } // namespace content 4109 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698