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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
574 private: | 574 private: |
575 class BackendDelegate; | 575 class BackendDelegate; |
576 friend class base::RefCountedThreadSafe<HistoryService>; | 576 friend class base::RefCountedThreadSafe<HistoryService>; |
577 friend class BackendDelegate; | 577 friend class BackendDelegate; |
578 friend class favicon::FaviconService; | 578 friend class favicon::FaviconService; |
579 friend class HistoryBackend; | 579 friend class HistoryBackend; |
580 friend class HistoryQueryTest; | 580 friend class HistoryQueryTest; |
581 friend class ::HistoryQuickProviderTest; | 581 friend class ::HistoryQuickProviderTest; |
582 friend class HistoryServiceTest; | 582 friend class HistoryServiceTest; |
583 friend class ::HistoryURLProvider; | 583 friend class ::HistoryURLProvider; |
584 friend class ::HistoryURLProviderTest; | |
585 friend class ::InMemoryURLIndexTest; | 584 friend class ::InMemoryURLIndexTest; |
586 friend class ::SyncBookmarkDataTypeControllerTest; | 585 friend class ::SyncBookmarkDataTypeControllerTest; |
587 friend class ::TestingProfile; | 586 friend class ::TestingProfile; |
587 friend void BlockUntilHistoryProcessesPendingRequests( | |
Peter Kasting
2016/01/31 20:30:43
I don't think this needs to be a friend? Looks li
rohitrao (ping after 24h)
2016/02/01 12:46:47
For some reason I looked at that method and decide
| |
588 HistoryService* history_service); | |
589 friend scoped_ptr<HistoryService> CreateHistoryService( | |
590 const base::FilePath& history_dir, | |
591 const std::string& accept_languages, | |
592 bool create_db); | |
588 | 593 |
589 // Called on shutdown, this will tell the history backend to complete and | 594 // Called on shutdown, this will tell the history backend to complete and |
590 // will release pointers to it. No other functions should be called once | 595 // will release pointers to it. No other functions should be called once |
591 // cleanup has happened that may dispatch to the history thread (because it | 596 // cleanup has happened that may dispatch to the history thread (because it |
592 // will be null). | 597 // will be null). |
593 // | 598 // |
594 // In practice, this will be called by the service manager (BrowserProcess) | 599 // In practice, this will be called by the service manager (BrowserProcess) |
595 // when it is being destroyed. Because that reference is being destroyed, it | 600 // when it is being destroyed. Because that reference is being destroyed, it |
596 // should be impossible for anybody else to call the service, even if it is | 601 // should be impossible for anybody else to call the service, even if it is |
597 // still in memory (pending requests may be holding a reference to us). | 602 // still in memory (pending requests may be holding a reference to us). |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
864 | 869 |
865 // All vended weak pointers are invalidated in Cleanup(). | 870 // All vended weak pointers are invalidated in Cleanup(). |
866 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; | 871 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; |
867 | 872 |
868 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 873 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
869 }; | 874 }; |
870 | 875 |
871 } // namespace history | 876 } // namespace history |
872 | 877 |
873 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ | 878 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
OLD | NEW |