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 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 private: | 545 private: |
546 class BackendDelegate; | 546 class BackendDelegate; |
547 friend class base::RefCountedThreadSafe<HistoryService>; | 547 friend class base::RefCountedThreadSafe<HistoryService>; |
548 friend class BackendDelegate; | 548 friend class BackendDelegate; |
549 friend class favicon::FaviconService; | 549 friend class favicon::FaviconService; |
550 friend class HistoryBackend; | 550 friend class HistoryBackend; |
551 friend class HistoryQueryTest; | 551 friend class HistoryQueryTest; |
552 friend class ::HistoryQuickProviderTest; | 552 friend class ::HistoryQuickProviderTest; |
553 friend class HistoryServiceTest; | 553 friend class HistoryServiceTest; |
554 friend class ::HistoryURLProvider; | 554 friend class ::HistoryURLProvider; |
| 555 friend class HQPPerfTestOnePopularURL; |
555 friend class ::InMemoryURLIndexTest; | 556 friend class ::InMemoryURLIndexTest; |
556 friend class ::SyncBookmarkDataTypeControllerTest; | 557 friend class ::SyncBookmarkDataTypeControllerTest; |
557 friend class ::TestingProfile; | 558 friend class ::TestingProfile; |
558 friend std::unique_ptr<HistoryService> CreateHistoryService( | 559 friend std::unique_ptr<HistoryService> CreateHistoryService( |
559 const base::FilePath& history_dir, | 560 const base::FilePath& history_dir, |
560 bool create_db); | 561 bool create_db); |
561 | 562 |
562 // Called on shutdown, this will tell the history backend to complete and | 563 // Called on shutdown, this will tell the history backend to complete and |
563 // will release pointers to it. No other functions should be called once | 564 // will release pointers to it. No other functions should be called once |
564 // cleanup has happened that may dispatch to the history thread (because it | 565 // cleanup has happened that may dispatch to the history thread (because it |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 | 832 |
832 // All vended weak pointers are invalidated in Cleanup(). | 833 // All vended weak pointers are invalidated in Cleanup(). |
833 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; | 834 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; |
834 | 835 |
835 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 836 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
836 }; | 837 }; |
837 | 838 |
838 } // namespace history | 839 } // namespace history |
839 | 840 |
840 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ | 841 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
OLD | NEW |