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

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

Issue 266053003: Remove page IDs from three WebContentsObserver APIs that don't need it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeLoadProgress, 1154 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeLoadProgress,
1155 double /* load_progress */) 1155 double /* load_progress */)
1156 1156
1157 // Sent when the document element is available for the top-level frame. This 1157 // Sent when the document element is available for the top-level frame. This
1158 // happens after the page starts loading, but before all resources are 1158 // happens after the page starts loading, but before all resources are
1159 // finished. 1159 // finished.
1160 IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame) 1160 IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame)
1161 1161
1162 // Sent when after the onload handler has been invoked for the document 1162 // Sent when after the onload handler has been invoked for the document
1163 // in the top-level frame. 1163 // in the top-level frame.
1164 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentOnLoadCompletedInMainFrame, 1164 IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentOnLoadCompletedInMainFrame)
1165 int32 /* page_id */)
1166 1165
1167 // Sent when the renderer loads a resource from its memory cache. 1166 // Sent when the renderer loads a resource from its memory cache.
1168 // The security info is non empty if the resource was originally loaded over 1167 // The security info is non empty if the resource was originally loaded over
1169 // a secure connection. 1168 // a secure connection.
1170 // Note: May only be sent once per URL per frame per committed load. 1169 // Note: May only be sent once per URL per frame per committed load.
1171 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache, 1170 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache,
1172 GURL /* url */, 1171 GURL /* url */,
1173 std::string /* security info */, 1172 std::string /* security info */,
1174 std::string /* http method */, 1173 std::string /* http method */,
1175 std::string /* mime type */, 1174 std::string /* mime type */,
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 GURL /* top_origin_url */, 1640 GURL /* top_origin_url */,
1642 content::ThreeDAPIType /* context_type */, 1641 content::ThreeDAPIType /* context_type */,
1643 int /* arb_robustness_status_code */) 1642 int /* arb_robustness_status_code */)
1644 1643
1645 // Notifies the browser that document has parsed the body. This is used by the 1644 // Notifies the browser that document has parsed the body. This is used by the
1646 // ResourceScheduler as an indication that bandwidth contention won't block 1645 // ResourceScheduler as an indication that bandwidth contention won't block
1647 // first paint. 1646 // first paint.
1648 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody) 1647 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody)
1649 1648
1650 // Notification that the urls for the favicon of a site has been determined. 1649 // Notification that the urls for the favicon of a site has been determined.
1651 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL, 1650 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL,
1652 int32 /* page_id */,
1653 std::vector<content::FaviconURL> /* candidates */) 1651 std::vector<content::FaviconURL> /* candidates */)
1654 1652
1655 // Sent once a paint happens after the first non empty layout. In other words 1653 // Sent once a paint happens after the first non empty layout. In other words
1656 // after the page has painted something. 1654 // after the page has painted something.
1657 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, 1655 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFirstVisuallyNonEmptyPaint)
1658 int /* page_id */)
1659 1656
1660 // Sent by the renderer to the browser to start a vibration with the given 1657 // Sent by the renderer to the browser to start a vibration with the given
1661 // duration. 1658 // duration.
1662 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate, 1659 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate,
1663 int64 /* milliseconds */) 1660 int64 /* milliseconds */)
1664 1661
1665 // Sent by the renderer to the browser to cancel the currently running 1662 // Sent by the renderer to the browser to cancel the currently running
1666 // vibration, if there is one. 1663 // vibration, if there is one.
1667 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration) 1664 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration)
1668 1665
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 // synchronously (see crbug.com/120597). This IPC message sends the character 1789 // synchronously (see crbug.com/120597). This IPC message sends the character
1793 // bounds after every composition change to always have correct bound info. 1790 // bounds after every composition change to always have correct bound info.
1794 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1791 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1795 gfx::Range /* composition range */, 1792 gfx::Range /* composition range */,
1796 std::vector<gfx::Rect> /* character bounds */) 1793 std::vector<gfx::Rect> /* character bounds */)
1797 #endif 1794 #endif
1798 1795
1799 // Adding a new message? Stick to the sort order above: first platform 1796 // Adding a new message? Stick to the sort order above: first platform
1800 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1797 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1801 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1798 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698