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

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

Issue 2508503002: Fix an issue that temp files are left permanently on storage after chrome crash (Closed)
Patch Set: addressing comments and fix test Created 4 years, 1 month 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 330
331 void SetFaviconsOutOfDateForPage(const GURL& page_url); 331 void SetFaviconsOutOfDateForPage(const GURL& page_url);
332 332
333 void SetImportedFavicons( 333 void SetImportedFavicons(
334 const favicon_base::FaviconUsageDataList& favicon_usage); 334 const favicon_base::FaviconUsageDataList& favicon_usage);
335 335
336 // Downloads ----------------------------------------------------------------- 336 // Downloads -----------------------------------------------------------------
337 337
338 uint32_t GetNextDownloadId(); 338 uint32_t GetNextDownloadId();
339 void QueryDownloads(std::vector<DownloadRow>* rows); 339 void QueryDownloads(std::vector<DownloadRow>* rows);
340 void UpdateDownload(const DownloadRow& data); 340 void UpdateDownload(const DownloadRow& data, bool should_commit_immediately);
341 bool CreateDownload(const DownloadRow& history_info); 341 bool CreateDownload(const DownloadRow& history_info);
342 void RemoveDownloads(const std::set<uint32_t>& ids); 342 void RemoveDownloads(const std::set<uint32_t>& ids);
343 343
344 // Keyword search terms ------------------------------------------------------ 344 // Keyword search terms ------------------------------------------------------
345 345
346 void SetKeywordSearchTermsForURL(const GURL& url, 346 void SetKeywordSearchTermsForURL(const GURL& url,
347 KeywordID keyword_id, 347 KeywordID keyword_id,
348 const base::string16& term); 348 const base::string16& term);
349 349
350 void DeleteAllSearchTermsForKeyword(KeywordID keyword_id); 350 void DeleteAllSearchTermsForKeyword(KeywordID keyword_id);
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 892
893 // List of observers 893 // List of observers
894 base::ObserverList<HistoryBackendObserver> observers_; 894 base::ObserverList<HistoryBackendObserver> observers_;
895 895
896 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 896 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
897 }; 897 };
898 898
899 } // namespace history 899 } // namespace history
900 900
901 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 901 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698