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

Side by Side Diff: components/history/core/browser/history_backend.h

Issue 1143183002: Proof of concept implementation of context based history filtering. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void PersistState(); 193 void PersistState();
194 #endif 194 #endif
195 195
196 void ClearCachedDataForContextID(ContextID context_id); 196 void ClearCachedDataForContextID(ContextID context_id);
197 197
198 // Navigation ---------------------------------------------------------------- 198 // Navigation ----------------------------------------------------------------
199 199
200 // |request.time| must be unique with high probability. 200 // |request.time| must be unique with high probability.
201 void AddPage(const HistoryAddPageArgs& request); 201 void AddPage(const HistoryAddPageArgs& request);
202 virtual void SetPageTitle(const GURL& url, const base::string16& title); 202 virtual void SetPageTitle(const GURL& url, const base::string16& title);
203 virtual void SetPageHistoryContext(const GURL& url, HistoryContext context);
203 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); 204 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title);
204 void UpdateWithPageEndTime(ContextID context_id, 205 void UpdateWithPageEndTime(ContextID context_id,
205 int nav_entry_id, 206 int nav_entry_id,
206 const GURL& url, 207 const GURL& url,
207 base::Time end_ts); 208 base::Time end_ts);
208 209
209 // Querying ------------------------------------------------------------------ 210 // Querying ------------------------------------------------------------------
210 211
211 // Run the |callback| on the History thread. 212 // Run the |callback| on the History thread.
212 // |callback| should handle the null database case. 213 // |callback| should handle the null database case.
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 815
815 // List of observers 816 // List of observers
816 ObserverList<HistoryBackendObserver> observers_; 817 ObserverList<HistoryBackendObserver> observers_;
817 818
818 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 819 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
819 }; 820 };
820 821
821 } // namespace history 822 } // namespace history
822 823
823 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 824 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/history_ui.cc ('k') | components/history/core/browser/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698