OLD | NEW |
---|---|
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 CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
902 // loaded. | 902 // loaded. |
903 BookmarkService* bookmark_service_; | 903 BookmarkService* bookmark_service_; |
904 | 904 |
905 // Publishes the history to all indexers which are registered to receive | 905 // Publishes the history to all indexers which are registered to receive |
906 // history data from us. Can be NULL if there are no listeners. | 906 // history data from us. Can be NULL if there are no listeners. |
907 scoped_ptr<HistoryPublisher> history_publisher_; | 907 scoped_ptr<HistoryPublisher> history_publisher_; |
908 | 908 |
909 #if defined(OS_ANDROID) | 909 #if defined(OS_ANDROID) |
910 // Used to provide the Android ContentProvider APIs. | 910 // Used to provide the Android ContentProvider APIs. |
911 scoped_ptr<AndroidProviderBackend> android_provider_backend_; | 911 scoped_ptr<AndroidProviderBackend> android_provider_backend_; |
912 | |
913 // Used to provide UMA on the number of page visits that are to the most | |
914 // visited URLs. This is here because the backend both has access to this | |
915 // information and is notified of page visits. The top sites service should | |
916 // be used instead whenever possible. | |
917 std::map<GURL, int> most_visited_urls_map_; | |
jar (doing other things)
2013/06/19 00:49:58
nit: Making this a member is good/fine. You shoul
bengr
2013/06/19 17:44:24
Done.
| |
912 #endif | 918 #endif |
913 | 919 |
914 // Used to manage syncing of the typed urls datatype. This will be NULL | 920 // Used to manage syncing of the typed urls datatype. This will be NULL |
915 // before Init is called. | 921 // before Init is called. |
916 scoped_ptr<TypedUrlSyncableService> typed_url_syncable_service_; | 922 scoped_ptr<TypedUrlSyncableService> typed_url_syncable_service_; |
917 | 923 |
918 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 924 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
919 }; | 925 }; |
920 | 926 |
921 } // namespace history | 927 } // namespace history |
922 | 928 |
923 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 929 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |