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

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: Rebase onto origin/master. 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
« no previous file with comments | « content/child/assert_matching_enums.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12 matching lines...) Expand all
23 #include "content/common/navigation_gesture.h" 23 #include "content/common/navigation_gesture.h"
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/mhtml_generation_params.h"
33 #include "content/public/common/page_importance_signals.h" 34 #include "content/public/common/page_importance_signals.h"
34 #include "content/public/common/page_state.h" 35 #include "content/public/common/page_state.h"
35 #include "content/public/common/resource_response.h" 36 #include "content/public/common/resource_response.h"
36 #include "content/public/common/stop_find_action.h" 37 #include "content/public/common/stop_find_action.h"
37 #include "content/public/common/three_d_api_types.h" 38 #include "content/public/common/three_d_api_types.h"
38 #include "content/public/common/transition_element.h" 39 #include "content/public/common/transition_element.h"
39 #include "ipc/ipc_message_macros.h" 40 #include "ipc/ipc_message_macros.h"
40 #include "ipc/ipc_platform_file.h" 41 #include "ipc/ipc_platform_file.h"
41 #include "third_party/WebKit/public/platform/WebFocusType.h" 42 #include "third_party/WebKit/public/platform/WebFocusType.h"
42 #include "third_party/WebKit/public/web/WebFindOptions.h" 43 #include "third_party/WebKit/public/web/WebFindOptions.h"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 494
494 // MHTML boundary marker / MIME multipart boundary maker. The same 495 // MHTML boundary marker / MIME multipart boundary maker. The same
495 // |mhtml_boundary_marker| should be used for serialization of each frame. 496 // |mhtml_boundary_marker| should be used for serialization of each frame.
496 IPC_STRUCT_MEMBER(std::string, mhtml_boundary_marker) 497 IPC_STRUCT_MEMBER(std::string, mhtml_boundary_marker)
497 498
498 // Whether to use binary encoding while serializing. Binary encoding is not 499 // Whether to use binary encoding while serializing. Binary encoding is not
499 // supported outside of Chrome, so this should not be used if the MHTML is 500 // supported outside of Chrome, so this should not be used if the MHTML is
500 // intended for sharing. 501 // intended for sharing.
501 IPC_STRUCT_MEMBER(bool, mhtml_binary_encoding) 502 IPC_STRUCT_MEMBER(bool, mhtml_binary_encoding)
502 503
504 IPC_STRUCT_MEMBER(content::MHTMLCacheControlPolicy,
505 mhtml_cache_control_policy)
506
503 // Frame to content-id map. 507 // Frame to content-id map.
504 // Keys are routing ids of either RenderFrames or RenderFrameProxies. 508 // Keys are routing ids of either RenderFrames or RenderFrameProxies.
505 // Values are MHTML content-ids - see WebFrameSerializer::generateMHTMLParts. 509 // Values are MHTML content-ids - see WebFrameSerializer::generateMHTMLParts.
506 IPC_STRUCT_MEMBER(FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap, 510 IPC_STRUCT_MEMBER(FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap,
507 frame_routing_id_to_content_id) 511 frame_routing_id_to_content_id)
508 512
509 // |digests_of_uris_to_skip| contains digests of uris of MHTML parts that 513 // |digests_of_uris_to_skip| contains digests of uris of MHTML parts that
510 // should be skipped. This helps deduplicate mhtml parts across frames. 514 // should be skipped. This helps deduplicate mhtml parts across frames.
511 // SECURITY NOTE: Sha256 digests (rather than uris) are used to prevent 515 // SECURITY NOTE: Sha256 digests (rather than uris) are used to prevent
512 // disclosing uris to other renderer processes; the digests should be 516 // disclosing uris to other renderer processes; the digests should be
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1448 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1445 int /* version */, 1449 int /* version */,
1446 std::vector<gfx::RectF> /* rects */, 1450 std::vector<gfx::RectF> /* rects */,
1447 gfx::RectF /* active_rect */) 1451 gfx::RectF /* active_rect */)
1448 #endif 1452 #endif
1449 1453
1450 // Adding a new message? Stick to the sort order above: first platform 1454 // Adding a new message? Stick to the sort order above: first platform
1451 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1455 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1452 // platform independent FrameHostMsg, then ifdefs for platform specific 1456 // platform independent FrameHostMsg, then ifdefs for platform specific
1453 // FrameHostMsg. 1457 // FrameHostMsg.
OLDNEW
« no previous file with comments | « content/child/assert_matching_enums.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698