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

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

Issue 1947263004: Introduces a new MHTML generation parameter specifying different behvaior for cache-control headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work on compile. Created 4 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 13 matching lines...) Expand all
24 #include "content/common/navigation_params.h" 24 #include "content/common/navigation_params.h"
25 #include "content/common/resource_request_body.h" 25 #include "content/common/resource_request_body.h"
26 #include "content/common/savable_subframe.h" 26 #include "content/common/savable_subframe.h"
27 #include "content/public/common/color_suggestion.h" 27 #include "content/public/common/color_suggestion.h"
28 #include "content/public/common/common_param_traits.h" 28 #include "content/public/common/common_param_traits.h"
29 #include "content/public/common/console_message_level.h" 29 #include "content/public/common/console_message_level.h"
30 #include "content/public/common/context_menu_params.h" 30 #include "content/public/common/context_menu_params.h"
31 #include "content/public/common/frame_navigate_params.h" 31 #include "content/public/common/frame_navigate_params.h"
32 #include "content/public/common/javascript_message_type.h" 32 #include "content/public/common/javascript_message_type.h"
33 #include "content/public/common/message_port_types.h" 33 #include "content/public/common/message_port_types.h"
34 #include "content/public/common/mhtml_generation.h"
34 #include "content/public/common/page_importance_signals.h" 35 #include "content/public/common/page_importance_signals.h"
35 #include "content/public/common/page_state.h" 36 #include "content/public/common/page_state.h"
36 #include "content/public/common/resource_response.h" 37 #include "content/public/common/resource_response.h"
37 #include "content/public/common/stop_find_action.h" 38 #include "content/public/common/stop_find_action.h"
38 #include "content/public/common/three_d_api_types.h" 39 #include "content/public/common/three_d_api_types.h"
39 #include "content/public/common/transition_element.h" 40 #include "content/public/common/transition_element.h"
40 #include "ipc/ipc_message_macros.h" 41 #include "ipc/ipc_message_macros.h"
41 #include "ipc/ipc_platform_file.h" 42 #include "ipc/ipc_platform_file.h"
42 #include "third_party/WebKit/public/platform/WebFocusType.h" 43 #include "third_party/WebKit/public/platform/WebFocusType.h"
43 #include "third_party/WebKit/public/web/WebFindOptions.h" 44 #include "third_party/WebKit/public/web/WebFindOptions.h"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 495
495 // MHTML boundary marker / MIME multipart boundary maker. The same 496 // MHTML boundary marker / MIME multipart boundary maker. The same
496 // |mhtml_boundary_marker| should be used for serialization of each frame. 497 // |mhtml_boundary_marker| should be used for serialization of each frame.
497 IPC_STRUCT_MEMBER(std::string, mhtml_boundary_marker) 498 IPC_STRUCT_MEMBER(std::string, mhtml_boundary_marker)
498 499
499 // Whether to use binary encoding while serializing. Binary encoding is not 500 // Whether to use binary encoding while serializing. Binary encoding is not
500 // supported outside of Chrome, so this should not be used if the MHTML is 501 // supported outside of Chrome, so this should not be used if the MHTML is
501 // intended for sharing. 502 // intended for sharing.
502 IPC_STRUCT_MEMBER(bool, mhtml_binary_encoding) 503 IPC_STRUCT_MEMBER(bool, mhtml_binary_encoding)
503 504
505 IPC_STRUCT_MEMBER(content::MHTMLCacheControlPolicy,
506 mhtml_cache_control_policy)
507
504 // Frame to content-id map. 508 // Frame to content-id map.
505 // Keys are routing ids of either RenderFrames or RenderFrameProxies. 509 // Keys are routing ids of either RenderFrames or RenderFrameProxies.
506 // Values are MHTML content-ids - see WebFrameSerializer::generateMHTMLParts. 510 // Values are MHTML content-ids - see WebFrameSerializer::generateMHTMLParts.
507 IPC_STRUCT_MEMBER(FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap, 511 IPC_STRUCT_MEMBER(FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap,
508 frame_routing_id_to_content_id) 512 frame_routing_id_to_content_id)
509 513
510 // |digests_of_uris_to_skip| contains digests of uris of MHTML parts that 514 // |digests_of_uris_to_skip| contains digests of uris of MHTML parts that
511 // should be skipped. This helps deduplicate mhtml parts across frames. 515 // should be skipped. This helps deduplicate mhtml parts across frames.
512 // SECURITY NOTE: Sha256 digests (rather than uris) are used to prevent 516 // SECURITY NOTE: Sha256 digests (rather than uris) are used to prevent
513 // disclosing uris to other renderer processes; the digests should be 517 // disclosing uris to other renderer processes; the digests should be
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 1382
1379 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks. 1383 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks.
1380 IPC_MESSAGE_ROUTED2(FrameHostMsg_SerializedHtmlWithLocalLinksResponse, 1384 IPC_MESSAGE_ROUTED2(FrameHostMsg_SerializedHtmlWithLocalLinksResponse,
1381 std::string /* data buffer */, 1385 std::string /* data buffer */,
1382 bool /* end of data? */) 1386 bool /* end of data? */)
1383 1387
1384 // Response to FrameMsg_SerializeAsMHTML. 1388 // Response to FrameMsg_SerializeAsMHTML.
1385 IPC_MESSAGE_ROUTED3( 1389 IPC_MESSAGE_ROUTED3(
1386 FrameHostMsg_SerializeAsMHTMLResponse, 1390 FrameHostMsg_SerializeAsMHTMLResponse,
1387 int /* job_id (used to match responses to requests) */, 1391 int /* job_id (used to match responses to requests) */,
1388 bool /* true if success, false if error */, 1392 content::MHTMLSerializationResult /* result of serialization */,
1389 std::set<std::string> /* digests of uris of serialized resources */) 1393 std::set<std::string> /* digests of uris of serialized resources */)
1390 1394
1391 // Sent when the renderer updates hint for importance of a tab. 1395 // Sent when the renderer updates hint for importance of a tab.
1392 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, 1396 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals,
1393 content::PageImportanceSignals) 1397 content::PageImportanceSignals)
1394 1398
1395 // This message is sent from a RenderFrameProxy when sequential focus 1399 // This message is sent from a RenderFrameProxy when sequential focus
1396 // navigation needs to advance into its actual frame. |source_routing_id| 1400 // navigation needs to advance into its actual frame. |source_routing_id|
1397 // identifies the frame that issued this request. This is used when pressing 1401 // identifies the frame that issued this request. This is used when pressing
1398 // <tab> or <shift-tab> hits an out-of-process iframe when searching for the 1402 // <tab> or <shift-tab> hits an out-of-process iframe when searching for the
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1449 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1446 int /* version */, 1450 int /* version */,
1447 std::vector<gfx::RectF> /* rects */, 1451 std::vector<gfx::RectF> /* rects */,
1448 gfx::RectF /* active_rect */) 1452 gfx::RectF /* active_rect */)
1449 #endif 1453 #endif
1450 1454
1451 // Adding a new message? Stick to the sort order above: first platform 1455 // Adding a new message? Stick to the sort order above: first platform
1452 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1456 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1453 // platform independent FrameHostMsg, then ifdefs for platform specific 1457 // platform independent FrameHostMsg, then ifdefs for platform specific
1454 // FrameHostMsg. 1458 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698