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

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed)

Created:
11 years, 10 months ago by M-A Ruel
Modified:
9 years, 7 months ago
Reviewers:
Lei Zhang, Dean McNamee
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Reduce the amount of included header files. Vast change like in "Oh God! This revision changes half of the source files!". Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9958

Patch Set 1 #

Total comments: 49

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1544 lines, -1261 lines) Patch
M base/atomic_ref_count.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M base/ref_counted.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M base/revocable_store.h View 1 2 chunks +3 lines, -6 lines 0 comments Download
M base/task.h View 1 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/automation/url_request_mock_http_job.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/automation/url_request_slow_download_job.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_plugin_host.cc View 1 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/debugger/debugger_contents.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/external_protocol_handler.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/google_url_tracker.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/google_url_tracker.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ime_input.h View 1 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/jsmessage_box_handler_win.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/memory_details.h View 1 1 chunk +0 lines, -3 lines 1 comment Download
M chrome/browser/memory_details.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/net/dns_global.cc View 1 1 chunk +0 lines, -1 line 1 comment Download
M chrome/browser/net/dns_master.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/sdch_dictionary_fetcher.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/net/url_fetcher.h View 1 3 chunks +22 lines, -103 lines 0 comments Download
M chrome/browser/net/url_fetcher.cc View 1 2 chunks +113 lines, -0 lines 0 comments Download
M chrome/browser/net/url_fetcher_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/plugin_process_host.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profile.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/profile_manager.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/buffered_resource_handler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/buffered_resource_handler.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/download_throttling_resource_handler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host.h View 1 chunk +2 lines, -1 line 1 comment Download
M chrome/browser/renderer_host/render_widget_host_view_win.h View 1 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/resource_handler.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_request_details.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/save_file_resource_handler.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/save_file_resource_handler.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_fetcher.h View 1 3 chunks +2 lines, -51 lines 0 comments Download
M chrome/browser/search_engines/template_url_fetcher.cc View 1 3 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/views/blocked_popup_container.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/bug_report_view.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/views/options/advanced_contents_view.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/shell_dialogs_win.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/common/child_process_info.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_plugin_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_plugin_util.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/net/url_request_intercept_job.h View 1 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/common/net/url_request_intercept_job.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_service.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/render_messages.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/plugin/chrome_plugin_host.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/plugin/plugin.vcproj View 1 1 chunk +8 lines, -0 lines 0 comments Download
M media/base/buffers.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M net/base/client_socket.h View 1 2 chunks +7 lines, -7 lines 0 comments Download
A net/base/client_socket.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M net/base/io_buffer.h View 1 2 chunks +1 line, -5 lines 0 comments Download
A net/base/io_buffer.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M net/base/upload_data.h View 1 2 chunks +3 lines, -5 lines 0 comments Download
M net/build/net.vcproj View 1 5 chunks +17 lines, -1 line 0 comments Download
M net/disk_cache/addr.h View 1 3 chunks +6 lines, -24 lines 0 comments Download
A net/disk_cache/addr.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M net/disk_cache/rankings.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/disk_cache/storage_block-inl.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M net/http/http_cache.h View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_cache.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_response_info.h View 1 2 chunks +8 lines, -5 lines 0 comments Download
A net/http/http_response_info.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M net/http/http_transaction_unittest.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/net.xcodeproj/project.pbxproj View 1 13 chunks +16 lines, -0 lines 0 comments Download
M net/net_lib.scons View 1 4 chunks +4 lines, -0 lines 0 comments Download
M net/url_request/mime_sniffer_proxy.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M net/url_request/mime_sniffer_proxy.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request.h View 1 8 chunks +18 lines, -34 lines 0 comments Download
M net/url_request/url_request.cc View 1 6 chunks +51 lines, -2 lines 0 comments Download
M net/url_request/url_request_context.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_error_job.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_file_job.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_filter.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M net/url_request/url_request_ftp_job.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M net/url_request/url_request_inet_job.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_job.h View 1 5 chunks +5 lines, -7 lines 0 comments Download
M net/url_request/url_request_simple_job.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M net/url_request/url_request_simple_job.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_test_job.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_unittest.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_view_cache_job.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M net/url_request/url_request_view_cache_job.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webkit/glue/SConscript View 1 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/glue/alt_error_page_resource_fetcher.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M webkit/glue/alt_error_page_resource_fetcher.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M webkit/glue/chrome_client_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/context_menu_client_impl.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/dom_serializer_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/feed_preview.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M webkit/glue/glue.vcproj View 1 1 chunk +779 lines, -767 lines 0 comments Download
M webkit/glue/glue_util.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M webkit/glue/glue_util.cc View 1 1 chunk +13 lines, -8 lines 0 comments Download
M webkit/glue/inspector_client_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/password_form_dom_manager.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/resource_handle_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/resource_loader_bridge.h View 1 6 chunks +30 lines, -25 lines 0 comments Download
A webkit/glue/resource_loader_bridge.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M webkit/glue/webdatasource.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/webdatasource_impl.h View 1 2 chunks +4 lines, -5 lines 0 comments Download
M webkit/glue/webframe.h View 1 2 chunks +0 lines, -6 lines 0 comments Download
M webkit/glue/webframe_impl.h View 1 3 chunks +4 lines, -11 lines 0 comments Download
M webkit/glue/webframe_impl.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M webkit/glue/webhistoryitem.h View 1 2 chunks +3 lines, -8 lines 0 comments Download
M webkit/glue/webhistoryitem_impl.h View 1 2 chunks +4 lines, -6 lines 0 comments Download
M webkit/glue/webplugin_delegate.h View 1 2 chunks +10 lines, -23 lines 0 comments Download
A webkit/glue/webplugin_delegate.cc View 1 chunk +36 lines, -0 lines 0 comments Download
M webkit/glue/webresponse.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
M webkit/glue/webresponse_impl.h View 1 2 chunks +3 lines, -7 lines 0 comments Download
M webkit/glue/weburlrequest.h View 1 2 chunks +3 lines, -5 lines 0 comments Download
M webkit/glue/weburlrequest_impl.h View 1 2 chunks +3 lines, -5 lines 0 comments Download
M webkit/glue/weburlrequest_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webview_delegate.h View 1 4 chunks +3 lines, -18 lines 0 comments Download
A webkit/glue/webview_delegate.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/webkit.xcodeproj/project.pbxproj View 11 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
M-A Ruel
After the snapshot, I added in memory_details.cc(9): #include "chrome/browser/browser_process.h" to fix windows build. Mac build ...
11 years, 10 months ago (2009-02-14 02:14:37 UTC) #1
Lei Zhang
Review in progress. I wish this was split up into smaller pieces. http://codereview.chromium.org/20378/diff/1/34 File base/task.h ...
11 years, 10 months ago (2009-02-17 19:09:41 UTC) #2
Lei Zhang
http://codereview.chromium.org/20378/diff/1/47 File chrome/browser/renderer_host/resource_dispatcher_host.h (left): http://codereview.chromium.org/20378/diff/1/47#oldcode19 Line 19: #include "base/logging.h" We use vector and logging.h in ...
11 years, 10 months ago (2009-02-17 19:50:48 UTC) #3
Lei Zhang
http://codereview.chromium.org/20378/diff/1/59 File webkit/glue/alt_error_page_resource_fetcher.cc (right): http://codereview.chromium.org/20378/diff/1/59#newcode17 Line 17: #include "webkit/glue/webdatasource.h" We don't use WebDataSource here. http://codereview.chromium.org/20378/diff/1/114 ...
11 years, 10 months ago (2009-02-17 20:16:36 UTC) #4
Lei Zhang
Amazingly, the mega patch still applies after 4 days. I found the fix for the ...
11 years, 10 months ago (2009-02-18 03:51:11 UTC) #5
M-A Ruel
Updated snapshot. I didn't comment on the file that I removed and that you said ...
11 years, 10 months ago (2009-02-18 15:35:22 UTC) #6
Lei Zhang
LGTM
11 years, 10 months ago (2009-02-18 19:32:05 UTC) #7
Dean McNamee
11 years, 10 months ago (2009-02-19 11:50:31 UTC) #8
Seems like in an effort to remove includes, we also now have some cases where
instead of the header including what it uses, it happens to work because some
random header it includes includes what it uses...  I'm not sure that's a great
thing.

http://codereview.chromium.org/20378/diff/1186/434
File chrome/browser/memory_details.h (left):

http://codereview.chromium.org/20378/diff/1186/434#oldcode9
Line 9: #include <string>
why did you remove string when it uses std::wstring, etc?

http://codereview.chromium.org/20378/diff/1186/379
File chrome/browser/net/dns_global.cc (right):

http://codereview.chromium.org/20378/diff/1186/379#newcode455
Line 455: GURL gurl = tab_start_pref.urls[i];
GURL is used here, but you removed the include.  Are you depending on an include
including GURL?  I tend to prefer including what you use in a .cc file, and not
depending on a .h to include it.

http://codereview.chromium.org/20378/diff/1186/446
File chrome/browser/renderer_host/render_process_host.h (right):

http://codereview.chromium.org/20378/diff/1186/446#newcode201
Line 201: DISALLOW_COPY_AND_ASSIGN(RenderProcessHost);
this requires basictypes.h, but you removed that include, now it just happens
it's getting pulled in by one of the others?

Powered by Google App Engine
This is Rietveld 408576698