OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // Message definition file, included multiple times, hence no include guard. | 5 // Message definition file, included multiple times, hence no include guard. |
6 | 6 |
7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
8 #include "components/subresource_filter/content/common/document_load_statistics.
h" | |
9 #include "components/subresource_filter/core/common/activation_level.h" | 8 #include "components/subresource_filter/core/common/activation_level.h" |
| 9 #include "components/subresource_filter/core/common/document_load_statistics.h" |
10 #include "content/public/common/common_param_traits_macros.h" | 10 #include "content/public/common/common_param_traits_macros.h" |
11 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
12 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
13 #include "ipc/ipc_platform_file.h" | 13 #include "ipc/ipc_platform_file.h" |
14 #include "url/ipc/url_param_traits.h" | 14 #include "url/ipc/url_param_traits.h" |
15 | 15 |
16 #define IPC_MESSAGE_START SubresourceFilterMsgStart | 16 #define IPC_MESSAGE_START SubresourceFilterMsgStart |
17 | 17 |
18 IPC_ENUM_TRAITS_MAX_VALUE(subresource_filter::ActivationLevel, | 18 IPC_ENUM_TRAITS_MAX_VALUE(subresource_filter::ActivationLevel, |
19 subresource_filter::ActivationLevel::LAST); | 19 subresource_filter::ActivationLevel::LAST); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // This is sent to a RenderFrameHost in the browser when a document load is | 65 // This is sent to a RenderFrameHost in the browser when a document load is |
66 // finished, just before the DidFinishLoad message, and contains statistics | 66 // finished, just before the DidFinishLoad message, and contains statistics |
67 // collected by the DocumentSubresourceFilter up until that point: the number of | 67 // collected by the DocumentSubresourceFilter up until that point: the number of |
68 // subresources evaluated/disallowed/etc, and total time spent on evaluating | 68 // subresources evaluated/disallowed/etc, and total time spent on evaluating |
69 // subresource loads in its allowLoad method. The time metrics are equal to zero | 69 // subresource loads in its allowLoad method. The time metrics are equal to zero |
70 // if performance measurements were disabled for the load. | 70 // if performance measurements were disabled for the load. |
71 IPC_MESSAGE_ROUTED1( | 71 IPC_MESSAGE_ROUTED1( |
72 SubresourceFilterHostMsg_DocumentLoadStatistics, | 72 SubresourceFilterHostMsg_DocumentLoadStatistics, |
73 subresource_filter::DocumentLoadStatistics /* statistics */); | 73 subresource_filter::DocumentLoadStatistics /* statistics */); |
OLD | NEW |