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

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

Issue 28308: Make history title inclusion safer (createTextNode changes).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « no previous file | chrome/browser/browsing_data_remover.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_REMOVER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_REMOVER_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "chrome/browser/cancelable_request.h" 10 #include "chrome/browser/cancelable_request.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Removes the specified items related to browsing. 44 // Removes the specified items related to browsing.
45 void Remove(int remove_mask); 45 void Remove(int remove_mask);
46 46
47 void AddObserver(Observer* observer); 47 void AddObserver(Observer* observer);
48 void RemoveObserver(Observer* observer); 48 void RemoveObserver(Observer* observer);
49 49
50 // Called when history deletion is done. 50 // Called when history deletion is done.
51 void OnHistoryDeletionDone(); 51 void OnHistoryDeletionDone();
52 52
53 static bool is_removing() { return removing_; }
54
53 private: 55 private:
54 // NotificationObserver method. Callback when TemplateURLModel has finished 56 // NotificationObserver method. Callback when TemplateURLModel has finished
55 // loading. Deletes the entries from the model, and if we're not waiting on 57 // loading. Deletes the entries from the model, and if we're not waiting on
56 // anything else notifies observers and deletes this BrowsingDataRemover. 58 // anything else notifies observers and deletes this BrowsingDataRemover.
57 void Observe(NotificationType type, 59 void Observe(NotificationType type,
58 const NotificationSource& source, 60 const NotificationSource& source,
59 const NotificationDetails& details); 61 const NotificationDetails& details);
60 62
61 // If we're not waiting on anything, notifies observers and deletes this 63 // If we're not waiting on anything, notifies observers and deletes this
62 // object. 64 // object.
(...skipping 16 matching lines...) Expand all
79 // Profile we're to remove from. 81 // Profile we're to remove from.
80 Profile* profile_; 82 Profile* profile_;
81 83
82 // Start time to delete from. 84 // Start time to delete from.
83 const base::Time delete_begin_; 85 const base::Time delete_begin_;
84 86
85 // End time to delete to. 87 // End time to delete to.
86 const base::Time delete_end_; 88 const base::Time delete_end_;
87 89
88 // True if Remove has been invoked. 90 // True if Remove has been invoked.
89 bool removing_; 91 static bool removing_;
90 92
91 // True if we're waiting for the TemplateURLModel to finish loading. 93 // True if we're waiting for the TemplateURLModel to finish loading.
92 bool waiting_for_keywords_; 94 bool waiting_for_keywords_;
93 95
94 // True if we're waiting for the history to be deleted. 96 // True if we're waiting for the history to be deleted.
95 bool waiting_for_clear_history_; 97 bool waiting_for_clear_history_;
96 98
97 // True if we're waiting for the cache to be cleared. 99 // True if we're waiting for the cache to be cleared.
98 bool waiting_for_clear_cache_; 100 bool waiting_for_clear_cache_;
99 101
100 ObserverList<Observer> observer_list_; 102 ObserverList<Observer> observer_list_;
101 103
102 // Used if we need to clear history. 104 // Used if we need to clear history.
103 CancelableRequestConsumer request_consumer_; 105 CancelableRequestConsumer request_consumer_;
104 106
105 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 107 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
106 }; 108 };
107 109
108 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ 110 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698