Commit f466c53d authored by Sebastien Marchand's avatar Sebastien Marchand Committed by Commit Bot

Add some include rules to //chrome/browser/performance_manager

This will make it easier to move performance_manager to //component at
some point.

Change-Id: I807e55aef0c4a0a85fda6c6df2bf78af94a2bbf1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636260Reviewed-by: default avatarChris Hamilton <chrisha@chromium.org>
Reviewed-by: default avatarBrian White <bcwhite@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Reviewed-by: default avatarSigurður Ásgeirsson <siggi@chromium.org>
Commit-Queue: Sébastien Marchand <sebmarchand@chromium.org>
Cr-Commit-Position: refs/heads/master@{#665980}
parent e26c8992
...@@ -135,6 +135,14 @@ include_rules = [ ...@@ -135,6 +135,14 @@ include_rules = [
"+chrome/browser/ui/views/extensions/request_file_system_dialog_view.h", "+chrome/browser/ui/views/extensions/request_file_system_dialog_view.h",
"+chrome/browser/ui/views/try_chrome_dialog_win/try_chrome_dialog.h", "+chrome/browser/ui/views/try_chrome_dialog_win/try_chrome_dialog.h",
# Ensure that only the public interface of performance_manager gets used.
"-chrome/browser/performance_manager",
"+chrome/browser/performance_manager/public",
"+chrome/browser/performance_manager/chrome_browser_main_extra_parts_performance_manager.h",
"+chrome/browser/performance_manager/chrome_content_browser_client_performance_manager_part.h",
"+chrome/browser/performance_manager/performance_manager.h",
"+chrome/browser/performance_manager/performance_manager_tab_helper.h",
# Explicitly disallow using SyncMessageFilter to prevent browser from # Explicitly disallow using SyncMessageFilter to prevent browser from
# sending synchronous IPC messages on non-UI threads. # sending synchronous IPC messages on non-UI threads.
"-ipc/ipc_sync_message_filter.h", "-ipc/ipc_sync_message_filter.h",
......
include_rules = [ include_rules = [
"+chrome/services/util_win/util_win_service.h", "+chrome/services/util_win/util_win_service.h",
] ]
specific_include_rules = {
# TODO(siggi): Fix. https://crbug.com/969026
"process_memory_metrics_emitter.cc": [
"+chrome/browser/performance_manager",
],
}
# Prevent the include of Chrome specific files in general.
include_rules = [
"-chrome/browser",
"+chrome/browser/performance_manager",
]
# Allow some Chrome specific files to includes more things from //chrome.
specific_include_rules = {
"chrome.*": [
"+chrome/browser",
],
"webui_graph_dump_impl\.cc": [
"+chrome/browser",
],
}
# The public includes shouldn't depend on anything not public.
include_rules = [
"-chrome/browser/performance_manager",
"+chrome/browser/performance_manager/public",
]
\ No newline at end of file
include_rules = [ include_rules = [
# resource_coordinator can include files from performance_manager.
"+chrome/browser/performance_manager",
"+services/resource_coordinator/public", "+services/resource_coordinator/public",
# No inclusion of WebKit from the browser, other than strictly enum/POD, # No inclusion of WebKit from the browser, other than strictly enum/POD,
# header-only types, and some selected common code. # header-only types, and some selected common code.
......
specific_include_rules = {
"discards_ui.h": [
"+chrome/browser/performance_manager/webui_graph_dump.mojom.h",
],
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment