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

Unified Diff: components/subresource_filter/core/common/document_load_statistics.h

Issue 2697363005: Move DocumentSubresourceFilter to core/common. (Closed)
Patch Set: Address comments from engedy@. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: components/subresource_filter/core/common/document_load_statistics.h
diff --git a/components/subresource_filter/content/common/document_load_statistics.h b/components/subresource_filter/core/common/document_load_statistics.h
similarity index 72%
rename from components/subresource_filter/content/common/document_load_statistics.h
rename to components/subresource_filter/core/common/document_load_statistics.h
index e05f31666f7aab6540376cc919adc8610bbbc410..b685769331b1ae974897830099470fe28e6e0a0a 100644
--- a/components/subresource_filter/content/common/document_load_statistics.h
+++ b/components/subresource_filter/core/common/document_load_statistics.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_COMMON_DOCUMENT_LOAD_STATISTICS_H_
-#define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_COMMON_DOCUMENT_LOAD_STATISTICS_H_
+#ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_DOCUMENT_LOAD_STATISTICS_H_
+#define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_DOCUMENT_LOAD_STATISTICS_H_
#include <stdint.h>
@@ -15,7 +15,7 @@ namespace subresource_filter {
// DocumentSubresourceFilter.
struct DocumentLoadStatistics {
// The number of subresource loads that went through the
- // DocumentSubresouceFilter::allowLoad method.
+ // DocumentSubresouceFilter filtering methods.
int32_t num_loads_total = 0;
// Statistics on the number of subresource loads that were evaluated, were
@@ -25,11 +25,11 @@ struct DocumentLoadStatistics {
int32_t num_loads_matching_rules = 0;
int32_t num_loads_disallowed = 0;
- // Total time spent in allowLoad() calls while evaluating subresource loads.
+ // Total time spent in GetLoadPolicy() calls evaluating subresource loads.
base::TimeDelta evaluation_total_wall_duration;
base::TimeDelta evaluation_total_cpu_duration;
};
} // namespace subresource_filter
-#endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_COMMON_DOCUMENT_LOAD_STATISTICS_H_
+#endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_DOCUMENT_LOAD_STATISTICS_H_

Powered by Google App Engine
This is Rietveld 408576698