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

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

Issue 9034032: And now NewRunnableMethod(), you die. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chrome_frame_automation Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/task_unittest.cc ('k') | chrome/browser/chromeos/audio_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/bind.h" 10 #include "base/bind.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "net/http/http_cache.h" 54 #include "net/http/http_cache.h"
55 #include "net/url_request/url_request_context.h" 55 #include "net/url_request/url_request_context.h"
56 #include "net/url_request/url_request_context_getter.h" 56 #include "net/url_request/url_request_context_getter.h"
57 #include "webkit/quota/quota_manager.h" 57 #include "webkit/quota/quota_manager.h"
58 #include "webkit/quota/quota_types.h" 58 #include "webkit/quota/quota_types.h"
59 59
60 using content::BrowserThread; 60 using content::BrowserThread;
61 using content::DownloadManager; 61 using content::DownloadManager;
62 using content::UserMetricsAction; 62 using content::UserMetricsAction;
63 63
64 // Done so that we can use PostTask on BrowsingDataRemovers and not have
65 // BrowsingDataRemover implement RefCounted.
66 DISABLE_RUNNABLE_METHOD_REFCOUNT(BrowsingDataRemover);
67
68 bool BrowsingDataRemover::removing_ = false; 64 bool BrowsingDataRemover::removing_ = false;
69 65
70 BrowsingDataRemover::NotificationDetails::NotificationDetails() 66 BrowsingDataRemover::NotificationDetails::NotificationDetails()
71 : removal_begin(base::Time()), 67 : removal_begin(base::Time()),
72 removal_mask(-1) { 68 removal_mask(-1) {
73 } 69 }
74 70
75 BrowsingDataRemover::NotificationDetails::NotificationDetails( 71 BrowsingDataRemover::NotificationDetails::NotificationDetails(
76 const BrowsingDataRemover::NotificationDetails& details) 72 const BrowsingDataRemover::NotificationDetails& details)
77 : removal_begin(details.removal_begin), 73 : removal_begin(details.removal_begin),
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 void BrowsingDataRemover::ClearCookiesOnIOThread( 613 void BrowsingDataRemover::ClearCookiesOnIOThread(
618 net::URLRequestContextGetter* rq_context) { 614 net::URLRequestContextGetter* rq_context) {
619 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 615 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
620 net::CookieStore* cookie_store = rq_context-> 616 net::CookieStore* cookie_store = rq_context->
621 GetURLRequestContext()->cookie_store(); 617 GetURLRequestContext()->cookie_store();
622 cookie_store->DeleteAllCreatedBetweenAsync( 618 cookie_store->DeleteAllCreatedBetweenAsync(
623 delete_begin_, delete_end_, 619 delete_begin_, delete_end_,
624 base::Bind(&BrowsingDataRemover::OnClearedCookies, 620 base::Bind(&BrowsingDataRemover::OnClearedCookies,
625 base::Unretained(this))); 621 base::Unretained(this)));
626 } 622 }
OLDNEW
« no previous file with comments | « base/task_unittest.cc ('k') | chrome/browser/chromeos/audio_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698