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

Side by Side Diff: chrome/browser/browsing_data_remover.cc

Issue 5875005: Cleanup: Remove unneeded includes of notification_service.h.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: put includes in right order Created 10 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/browsing_data_remover.h" 5 #include "chrome/browser/browsing_data_remover.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "chrome/browser/autofill/personal_data_manager.h" 11 #include "chrome/browser/autofill/personal_data_manager.h"
12 #include "chrome/browser/browser_thread.h" 12 #include "chrome/browser/browser_thread.h"
13 #include "chrome/browser/download/download_manager.h" 13 #include "chrome/browser/download/download_manager.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/history/history.h" 15 #include "chrome/browser/history/history.h"
16 #include "chrome/browser/in_process_webkit/webkit_context.h" 16 #include "chrome/browser/in_process_webkit/webkit_context.h"
17 #include "chrome/browser/plugin_data_remover.h" 17 #include "chrome/browser/plugin_data_remover.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/metrics/user_metrics.h" 19 #include "chrome/browser/metrics/user_metrics.h"
20 #include "chrome/browser/net/chrome_url_request_context.h" 20 #include "chrome/browser/net/chrome_url_request_context.h"
21 #include "chrome/browser/password_manager/password_store.h" 21 #include "chrome/browser/password_manager/password_store.h"
22 #include "chrome/browser/renderer_host/web_cache_manager.h" 22 #include "chrome/browser/renderer_host/web_cache_manager.h"
23 #include "chrome/browser/search_engines/template_url_model.h" 23 #include "chrome/browser/search_engines/template_url_model.h"
24 #include "chrome/browser/sessions/session_service.h" 24 #include "chrome/browser/sessions/session_service.h"
25 #include "chrome/browser/sessions/tab_restore_service.h" 25 #include "chrome/browser/sessions/tab_restore_service.h"
26 #include "chrome/browser/webdata/web_data_service.h" 26 #include "chrome/browser/webdata/web_data_service.h"
27 #include "chrome/common/net/url_request_context_getter.h" 27 #include "chrome/common/net/url_request_context_getter.h"
28 #include "chrome/common/notification_service.h" 28 #include "chrome/common/notification_source.h"
29 #include "chrome/common/url_constants.h" 29 #include "chrome/common/url_constants.h"
30 #include "net/base/cookie_monster.h" 30 #include "net/base/cookie_monster.h"
31 #include "net/base/net_errors.h" 31 #include "net/base/net_errors.h"
32 #include "net/base/transport_security_state.h" 32 #include "net/base/transport_security_state.h"
33 #include "net/disk_cache/disk_cache.h" 33 #include "net/disk_cache/disk_cache.h"
34 #include "net/http/http_cache.h" 34 #include "net/http/http_cache.h"
35 #include "net/url_request/url_request_context.h" 35 #include "net/url_request/url_request_context.h"
36 #include "webkit/database/database_tracker.h" 36 #include "webkit/database/database_tracker.h"
37 #include "webkit/database/database_util.h" 37 #include "webkit/database/database_util.h"
38 38
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 // continues in OnGotAppCacheInfo 464 // continues in OnGotAppCacheInfo
465 } 465 }
466 466
467 void BrowsingDataRemover::OnGotAppCacheInfo(int rv) { 467 void BrowsingDataRemover::OnGotAppCacheInfo(int rv) {
468 using appcache::AppCacheInfoVector; 468 using appcache::AppCacheInfoVector;
469 typedef std::map<GURL, AppCacheInfoVector> InfoByOrigin; 469 typedef std::map<GURL, AppCacheInfoVector> InfoByOrigin;
470 470
471 for (InfoByOrigin::const_iterator origin = 471 for (InfoByOrigin::const_iterator origin =
472 appcache_info_->infos_by_origin.begin(); 472 appcache_info_->infos_by_origin.begin();
473 origin != appcache_info_->infos_by_origin.end(); ++origin) { 473 origin != appcache_info_->infos_by_origin.end(); ++origin) {
474
475 bool found_in_whitelist = false; 474 bool found_in_whitelist = false;
476 for (size_t i = 0; i < appcache_whitelist_.size(); ++i) { 475 for (size_t i = 0; i < appcache_whitelist_.size(); ++i) {
477 if (appcache_whitelist_[i] == origin->first) 476 if (appcache_whitelist_[i] == origin->first)
478 found_in_whitelist = true; 477 found_in_whitelist = true;
479 } 478 }
480 if (found_in_whitelist) 479 if (found_in_whitelist)
481 continue; 480 continue;
482 481
483 for (AppCacheInfoVector::const_iterator info = origin->second.begin(); 482 for (AppCacheInfoVector::const_iterator info = origin->second.begin();
484 info != origin->second.end(); ++info) { 483 info != origin->second.end(); ++info) {
(...skipping 22 matching lines...) Expand all
507 reinterpret_cast<ChromeURLRequestContext*>( 506 reinterpret_cast<ChromeURLRequestContext*>(
508 request_context_getter_->GetURLRequestContext()); 507 request_context_getter_->GetURLRequestContext());
509 return request_context ? request_context->appcache_service() 508 return request_context ? request_context->appcache_service()
510 : NULL; 509 : NULL;
511 } 510 }
512 511
513 void BrowsingDataRemover::OnClearedPluginData() { 512 void BrowsingDataRemover::OnClearedPluginData() {
514 waiting_for_clear_lso_data_ = false; 513 waiting_for_clear_lso_data_ = false;
515 NotifyAndDeleteIfDone(); 514 NotifyAndDeleteIfDone();
516 } 515 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/debugger/extension_ports_remote_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698