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

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

Issue 2107493002: Offer user to send feedback from profile error dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet more compile errors Created 4 years, 5 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_SERVICE_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 16 matching lines...) Expand all
27 #include "base/threading/thread_checker.h" 27 #include "base/threading/thread_checker.h"
28 #include "base/time/time.h" 28 #include "base/time/time.h"
29 #include "build/build_config.h" 29 #include "build/build_config.h"
30 #include "components/favicon_base/favicon_callback.h" 30 #include "components/favicon_base/favicon_callback.h"
31 #include "components/favicon_base/favicon_usage_data.h" 31 #include "components/favicon_base/favicon_usage_data.h"
32 #include "components/history/core/browser/delete_directive_handler.h" 32 #include "components/history/core/browser/delete_directive_handler.h"
33 #include "components/history/core/browser/history_types.h" 33 #include "components/history/core/browser/history_types.h"
34 #include "components/history/core/browser/keyword_id.h" 34 #include "components/history/core/browser/keyword_id.h"
35 #include "components/history/core/browser/typed_url_syncable_service.h" 35 #include "components/history/core/browser/typed_url_syncable_service.h"
36 #include "components/keyed_service/core/keyed_service.h" 36 #include "components/keyed_service/core/keyed_service.h"
37 #include "sql/db_diagnostic_map.h"
37 #include "sql/init_status.h" 38 #include "sql/init_status.h"
38 #include "sync/api/syncable_service.h" 39 #include "sync/api/syncable_service.h"
39 #include "ui/base/page_transition_types.h" 40 #include "ui/base/page_transition_types.h"
40 41
41 class GURL; 42 class GURL;
42 class HistoryQuickProviderTest; 43 class HistoryQuickProviderTest;
43 class HistoryURLProvider; 44 class HistoryURLProvider;
44 class HistoryURLProviderTest; 45 class HistoryURLProviderTest;
45 class InMemoryURLIndexTest; 46 class InMemoryURLIndexTest;
46 class SkBitmap; 47 class SkBitmap;
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 // once. The pages must exist, any favicon sets for unknown pages will be 771 // once. The pages must exist, any favicon sets for unknown pages will be
771 // discarded. Existing favicons will not be overwritten. 772 // discarded. Existing favicons will not be overwritten.
772 void SetImportedFavicons( 773 void SetImportedFavicons(
773 const favicon_base::FaviconUsageDataList& favicon_usage); 774 const favicon_base::FaviconUsageDataList& favicon_usage);
774 775
775 // Sets the in-memory URL database. This is called by the backend once the 776 // Sets the in-memory URL database. This is called by the backend once the
776 // database is loaded to make it available. 777 // database is loaded to make it available.
777 void SetInMemoryBackend(std::unique_ptr<InMemoryHistoryBackend> mem_backend); 778 void SetInMemoryBackend(std::unique_ptr<InMemoryHistoryBackend> mem_backend);
778 779
779 // Called by our BackendDelegate when there is a problem reading the database. 780 // Called by our BackendDelegate when there is a problem reading the database.
780 void NotifyProfileError(sql::InitStatus init_status); 781 void NotifyProfileError(sql::InitStatus init_status,
782 const sql::DatabaseDiagnosticMap& diagnostics);
781 783
782 // Call to schedule a given task for running on the history thread with the 784 // Call to schedule a given task for running on the history thread with the
783 // specified priority. The task will have ownership taken. 785 // specified priority. The task will have ownership taken.
784 void ScheduleTask(SchedulePriority priority, const base::Closure& task); 786 void ScheduleTask(SchedulePriority priority, const base::Closure& task);
785 787
786 // Called when the favicons for the given page URLs (e.g. 788 // Called when the favicons for the given page URLs (e.g.
787 // http://www.google.com) and the given icon URL (e.g. 789 // http://www.google.com) and the given icon URL (e.g.
788 // http://www.google.com/favicon.ico) have changed. It is valid to call 790 // http://www.google.com/favicon.ico) have changed. It is valid to call
789 // NotifyFaviconsChanged() with non-empty |page_urls| and an empty |icon_url| 791 // NotifyFaviconsChanged() with non-empty |page_urls| and an empty |icon_url|
790 // and vice versa. 792 // and vice versa.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 832
831 // All vended weak pointers are invalidated in Cleanup(). 833 // All vended weak pointers are invalidated in Cleanup().
832 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; 834 base::WeakPtrFactory<HistoryService> weak_ptr_factory_;
833 835
834 DISALLOW_COPY_AND_ASSIGN(HistoryService); 836 DISALLOW_COPY_AND_ASSIGN(HistoryService);
835 }; 837 };
836 838
837 } // namespace history 839 } // namespace history
838 840
839 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ 841 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698