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

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

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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 <stddef.h>
9 #include <stdint.h>
10
8 #include <set> 11 #include <set>
9 #include <string> 12 #include <string>
10 #include <utility> 13 #include <utility>
11 #include <vector> 14 #include <vector>
12 15
13 #include "base/containers/hash_tables.h" 16 #include "base/containers/hash_tables.h"
14 #include "base/containers/mru_cache.h" 17 #include "base/containers/mru_cache.h"
15 #include "base/files/file_path.h" 18 #include "base/files/file_path.h"
16 #include "base/gtest_prod_util.h" 19 #include "base/gtest_prod_util.h"
20 #include "base/macros.h"
17 #include "base/memory/memory_pressure_listener.h" 21 #include "base/memory/memory_pressure_listener.h"
18 #include "base/memory/scoped_ptr.h" 22 #include "base/memory/scoped_ptr.h"
19 #include "base/observer_list.h" 23 #include "base/observer_list.h"
20 #include "base/single_thread_task_runner.h" 24 #include "base/single_thread_task_runner.h"
21 #include "base/supports_user_data.h" 25 #include "base/supports_user_data.h"
22 #include "base/task/cancelable_task_tracker.h" 26 #include "base/task/cancelable_task_tracker.h"
27 #include "build/build_config.h"
23 #include "components/favicon_base/favicon_usage_data.h" 28 #include "components/favicon_base/favicon_usage_data.h"
24 #include "components/history/core/browser/expire_history_backend.h" 29 #include "components/history/core/browser/expire_history_backend.h"
25 #include "components/history/core/browser/history_backend_notifier.h" 30 #include "components/history/core/browser/history_backend_notifier.h"
26 #include "components/history/core/browser/history_types.h" 31 #include "components/history/core/browser/history_types.h"
27 #include "components/history/core/browser/keyword_id.h" 32 #include "components/history/core/browser/keyword_id.h"
28 #include "components/history/core/browser/thumbnail_database.h" 33 #include "components/history/core/browser/thumbnail_database.h"
29 #include "components/history/core/browser/visit_tracker.h" 34 #include "components/history/core/browser/visit_tracker.h"
30 #include "sql/init_status.h" 35 #include "sql/init_status.h"
31 36
32 class HistoryURLProvider; 37 class HistoryURLProvider;
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 const GURL& icon_url, 337 const GURL& icon_url,
333 const std::vector<SkBitmap>& bitmaps); 338 const std::vector<SkBitmap>& bitmaps);
334 339
335 void SetFaviconsOutOfDateForPage(const GURL& page_url); 340 void SetFaviconsOutOfDateForPage(const GURL& page_url);
336 341
337 void SetImportedFavicons( 342 void SetImportedFavicons(
338 const favicon_base::FaviconUsageDataList& favicon_usage); 343 const favicon_base::FaviconUsageDataList& favicon_usage);
339 344
340 // Downloads ----------------------------------------------------------------- 345 // Downloads -----------------------------------------------------------------
341 346
342 uint32 GetNextDownloadId(); 347 uint32_t GetNextDownloadId();
343 void QueryDownloads(std::vector<DownloadRow>* rows); 348 void QueryDownloads(std::vector<DownloadRow>* rows);
344 void UpdateDownload(const DownloadRow& data); 349 void UpdateDownload(const DownloadRow& data);
345 bool CreateDownload(const DownloadRow& history_info); 350 bool CreateDownload(const DownloadRow& history_info);
346 void RemoveDownloads(const std::set<uint32>& ids); 351 void RemoveDownloads(const std::set<uint32_t>& ids);
347 352
348 // Keyword search terms ------------------------------------------------------ 353 // Keyword search terms ------------------------------------------------------
349 354
350 void SetKeywordSearchTermsForURL(const GURL& url, 355 void SetKeywordSearchTermsForURL(const GURL& url,
351 KeywordID keyword_id, 356 KeywordID keyword_id,
352 const base::string16& term); 357 const base::string16& term);
353 358
354 void DeleteAllSearchTermsForKeyword(KeywordID keyword_id); 359 void DeleteAllSearchTermsForKeyword(KeywordID keyword_id);
355 360
356 void DeleteKeywordSearchTermForURL(const GURL& url); 361 void DeleteKeywordSearchTermForURL(const GURL& url);
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 900
896 // List of observers 901 // List of observers
897 base::ObserverList<HistoryBackendObserver> observers_; 902 base::ObserverList<HistoryBackendObserver> observers_;
898 903
899 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 904 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
900 }; 905 };
901 906
902 } // namespace history 907 } // namespace history
903 908
904 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ 909 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_
OLDNEW
« no previous file with comments | « components/history/core/browser/expire_history_backend_unittest.cc ('k') | components/history/core/browser/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698