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

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

Issue 1977303003: Adds a feature to MHTML serialization that omits subframes and subresources marked no-store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-store
Patch Set: Address dcheng's comments. 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_gesture.h" 24 #include "content/common/navigation_gesture.h"
25 #include "content/common/navigation_params.h" 25 #include "content/common/navigation_params.h"
26 #include "content/common/resource_request_body.h" 26 #include "content/common/resource_request_body.h"
27 #include "content/common/savable_subframe.h" 27 #include "content/common/savable_subframe.h"
28 #include "content/public/common/color_suggestion.h" 28 #include "content/public/common/color_suggestion.h"
29 #include "content/public/common/common_param_traits.h" 29 #include "content/public/common/common_param_traits.h"
30 #include "content/public/common/console_message_level.h" 30 #include "content/public/common/console_message_level.h"
31 #include "content/public/common/context_menu_params.h" 31 #include "content/public/common/context_menu_params.h"
32 #include "content/public/common/frame_navigate_params.h" 32 #include "content/public/common/frame_navigate_params.h"
33 #include "content/public/common/javascript_message_type.h" 33 #include "content/public/common/javascript_message_type.h"
34 #include "content/public/common/mhtml_generation_params.h"
35 #include "content/public/common/page_importance_signals.h" 34 #include "content/public/common/page_importance_signals.h"
36 #include "content/public/common/page_state.h" 35 #include "content/public/common/page_state.h"
37 #include "content/public/common/resource_response.h" 36 #include "content/public/common/resource_response.h"
38 #include "content/public/common/stop_find_action.h" 37 #include "content/public/common/stop_find_action.h"
39 #include "content/public/common/three_d_api_types.h" 38 #include "content/public/common/three_d_api_types.h"
40 #include "content/public/common/transition_element.h" 39 #include "content/public/common/transition_element.h"
41 #include "ipc/ipc_message_macros.h" 40 #include "ipc/ipc_message_macros.h"
42 #include "ipc/ipc_platform_file.h" 41 #include "ipc/ipc_platform_file.h"
43 #include "third_party/WebKit/public/platform/WebFocusType.h" 42 #include "third_party/WebKit/public/platform/WebFocusType.h"
44 #include "third_party/WebKit/public/web/WebFindOptions.h" 43 #include "third_party/WebKit/public/web/WebFindOptions.h"
45 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 44 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
45 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h"
46 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 46 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
47 #include "ui/gfx/geometry/rect.h" 47 #include "ui/gfx/geometry/rect.h"
48 #include "ui/gfx/geometry/rect_f.h" 48 #include "ui/gfx/geometry/rect_f.h"
49 #include "ui/gfx/ipc/gfx_param_traits.h" 49 #include "ui/gfx/ipc/gfx_param_traits.h"
50 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 50 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
51 #include "url/gurl.h" 51 #include "url/gurl.h"
52 #include "url/origin.h" 52 #include "url/origin.h"
53 53
54 #if defined(ENABLE_PLUGINS) 54 #if defined(ENABLE_PLUGINS)
55 #include "content/common/pepper_renderer_instance_data.h" 55 #include "content/common/pepper_renderer_instance_data.h"
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 496
497 // MHTML boundary marker / MIME multipart boundary maker. The same 497 // MHTML boundary marker / MIME multipart boundary maker. The same
498 // |mhtml_boundary_marker| should be used for serialization of each frame. 498 // |mhtml_boundary_marker| should be used for serialization of each frame.
499 IPC_STRUCT_MEMBER(std::string, mhtml_boundary_marker) 499 IPC_STRUCT_MEMBER(std::string, mhtml_boundary_marker)
500 500
501 // Whether to use binary encoding while serializing. Binary encoding is not 501 // Whether to use binary encoding while serializing. Binary encoding is not
502 // supported outside of Chrome, so this should not be used if the MHTML is 502 // supported outside of Chrome, so this should not be used if the MHTML is
503 // intended for sharing. 503 // intended for sharing.
504 IPC_STRUCT_MEMBER(bool, mhtml_binary_encoding) 504 IPC_STRUCT_MEMBER(bool, mhtml_binary_encoding)
505 505
506 IPC_STRUCT_MEMBER(content::MHTMLCacheControlPolicy, 506 IPC_STRUCT_MEMBER(blink::WebFrameSerializerCacheControlPolicy,
507 mhtml_cache_control_policy) 507 mhtml_cache_control_policy)
508 508
509 // Frame to content-id map. 509 // Frame to content-id map.
510 // Keys are routing ids of either RenderFrames or RenderFrameProxies. 510 // Keys are routing ids of either RenderFrames or RenderFrameProxies.
511 // Values are MHTML content-ids - see WebFrameSerializer::generateMHTMLParts. 511 // Values are MHTML content-ids - see WebFrameSerializer::generateMHTMLParts.
512 IPC_STRUCT_MEMBER(FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap, 512 IPC_STRUCT_MEMBER(FrameMsg_SerializeAsMHTML_FrameRoutingIdToContentIdMap,
513 frame_routing_id_to_content_id) 513 frame_routing_id_to_content_id)
514 514
515 // |digests_of_uris_to_skip| contains digests of uris of MHTML parts that 515 // |digests_of_uris_to_skip| contains digests of uris of MHTML parts that
516 // should be skipped. This helps deduplicate mhtml parts across frames. 516 // should be skipped. This helps deduplicate mhtml parts across frames.
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1472 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1473 int /* version */, 1473 int /* version */,
1474 std::vector<gfx::RectF> /* rects */, 1474 std::vector<gfx::RectF> /* rects */,
1475 gfx::RectF /* active_rect */) 1475 gfx::RectF /* active_rect */)
1476 #endif 1476 #endif
1477 1477
1478 // Adding a new message? Stick to the sort order above: first platform 1478 // Adding a new message? Stick to the sort order above: first platform
1479 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1479 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1480 // platform independent FrameHostMsg, then ifdefs for platform specific 1480 // platform independent FrameHostMsg, then ifdefs for platform specific
1481 // FrameHostMsg. 1481 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698