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

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

Issue 1308113008: OOPIFs: Transitioning Get/Send...SavableResourceLinks away from RenderViewHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@page-serialization-test
Patch Set: Addressed more CR feedback from Nasko. Created 5 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 (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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 #if defined(OS_ANDROID) 570 #if defined(OS_ANDROID)
571 // Tells the renderer to cancel an opened date/time dialog. 571 // Tells the renderer to cancel an opened date/time dialog.
572 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) 572 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog)
573 573
574 // Replaces a date time input field. 574 // Replaces a date time input field.
575 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, 575 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime,
576 double /* dialog_value */) 576 double /* dialog_value */)
577 577
578 #endif 578 #endif
579 579
580 // Get all savable resource links from current webpage, include main
581 // frame and sub-frame.
582 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
583 GURL /* url of page which is needed to save */)
584
585 // Get html data by serializing all frames of current page with lists 580 // Get html data by serializing all frames of current page with lists
586 // which contain all resource links that have local copy. 581 // which contain all resource links that have local copy.
587 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, 582 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
588 std::vector<GURL> /* urls that have local copy */, 583 std::vector<GURL> /* urls that have local copy */,
589 std::vector<base::FilePath> /* paths of local copy */, 584 std::vector<base::FilePath> /* paths of local copy */,
590 base::FilePath /* local directory path */) 585 base::FilePath /* local directory path */)
591 586
592 // Tells the render side that a ViewHostMsg_LockMouse message has been 587 // Tells the render side that a ViewHostMsg_LockMouse message has been
593 // processed. |succeeded| indicates whether the mouse has been successfully 588 // processed. |succeeded| indicates whether the mouse has been successfully
594 // locked or not. 589 // locked or not.
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 1419
1425 // Send back a string to be recorded by UserMetrics. 1420 // Send back a string to be recorded by UserMetrics.
1426 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, 1421 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction,
1427 std::string /* action */) 1422 std::string /* action */)
1428 1423
1429 // Notifies the browser that the page was or was not saved as MHTML. 1424 // Notifies the browser that the page was or was not saved as MHTML.
1430 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, 1425 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML,
1431 int /* job_id */, 1426 int /* job_id */,
1432 int64 /* size of the MHTML file, -1 if error */) 1427 int64 /* size of the MHTML file, -1 if error */)
1433 1428
1434 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks,
1435 std::vector<GURL> /* all savable resource links */,
1436 std::vector<content::Referrer> /* all referrers */,
1437 std::vector<GURL> /* all frame links */)
1438
1439 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData, 1429 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData,
1440 GURL /* frame's url */, 1430 GURL /* frame's url */,
1441 std::string /* data buffer */, 1431 std::string /* data buffer */,
1442 int32 /* complete status */) 1432 int32 /* complete status */)
1443 1433
1444 // Notifies the browser of an event occurring in the media pipeline. 1434 // Notifies the browser of an event occurring in the media pipeline.
1445 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents, 1435 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents,
1446 std::vector<media::MediaLogEvent> /* events */) 1436 std::vector<media::MediaLogEvent> /* events */)
1447 1437
1448 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message 1438 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 1575 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1586 // for details. 1576 // for details.
1587 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 1577 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
1588 LOGFONT /* font_data */, 1578 LOGFONT /* font_data */,
1589 base::string16 /* characters */) 1579 base::string16 /* characters */)
1590 #endif 1580 #endif
1591 1581
1592 // Adding a new message? Stick to the sort order above: first platform 1582 // Adding a new message? Stick to the sort order above: first platform
1593 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1583 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1594 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1584 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698