OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CLIENT_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_H_ |
6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "sql/init_status.h" | 11 #include "sql/init_status.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 | 14 |
15 namespace base { | |
16 class FilePath; | |
17 } | |
18 | |
19 namespace history { | 15 namespace history { |
20 | 16 |
21 class HistoryBackend; | |
22 class HistoryBackendClient; | 17 class HistoryBackendClient; |
23 class HistoryDatabase; | |
24 class HistoryService; | 18 class HistoryService; |
25 class ThumbnailDatabase; | |
26 | 19 |
27 // This class abstracts operations that depend on the embedder's environment, | 20 // This class abstracts operations that depend on the embedder's environment, |
28 // e.g. Chrome. | 21 // e.g. Chrome. |
29 class HistoryClient { | 22 class HistoryClient { |
30 public: | 23 public: |
31 HistoryClient() {} | 24 HistoryClient() {} |
32 virtual ~HistoryClient() {} | 25 virtual ~HistoryClient() {} |
33 | 26 |
34 // Called upon HistoryService creation. | 27 // Called upon HistoryService creation. |
35 virtual void OnHistoryServiceCreated(HistoryService* history_service) = 0; | 28 virtual void OnHistoryServiceCreated(HistoryService* history_service) = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
48 // Returns a new HistoryBackendClient instance. | 41 // Returns a new HistoryBackendClient instance. |
49 virtual std::unique_ptr<HistoryBackendClient> CreateBackendClient() = 0; | 42 virtual std::unique_ptr<HistoryBackendClient> CreateBackendClient() = 0; |
50 | 43 |
51 private: | 44 private: |
52 DISALLOW_COPY_AND_ASSIGN(HistoryClient); | 45 DISALLOW_COPY_AND_ASSIGN(HistoryClient); |
53 }; | 46 }; |
54 | 47 |
55 } // namespace history | 48 } // namespace history |
56 | 49 |
57 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_H_ | 50 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_H_ |
OLD | NEW |