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/db_diagnostic_map.h" |
11 #include "sql/init_status.h" | 12 #include "sql/init_status.h" |
12 | 13 |
13 class GURL; | 14 class GURL; |
14 | 15 |
15 namespace base { | 16 namespace base { |
16 class FilePath; | 17 class FilePath; |
17 } | 18 } |
18 | 19 |
19 namespace history { | 20 namespace history { |
20 | 21 |
(...skipping 14 matching lines...) Expand all Loading... |
35 virtual void OnHistoryServiceCreated(HistoryService* history_service) = 0; | 36 virtual void OnHistoryServiceCreated(HistoryService* history_service) = 0; |
36 | 37 |
37 // Called before HistoryService is shutdown. | 38 // Called before HistoryService is shutdown. |
38 virtual void Shutdown() = 0; | 39 virtual void Shutdown() = 0; |
39 | 40 |
40 // Returns true if this look like the type of URL that should be added to the | 41 // Returns true if this look like the type of URL that should be added to the |
41 // history. | 42 // history. |
42 virtual bool CanAddURL(const GURL& url) = 0; | 43 virtual bool CanAddURL(const GURL& url) = 0; |
43 | 44 |
44 // Notifies the embedder that there was a problem reading the database. | 45 // Notifies the embedder that there was a problem reading the database. |
45 virtual void NotifyProfileError(sql::InitStatus init_status) = 0; | 46 virtual void NotifyProfileError( |
| 47 sql::InitStatus init_status, |
| 48 const sql::DatabaseDiagnosticMap& diagnostics) = 0; |
46 | 49 |
47 // Returns a new HistoryBackendClient instance. | 50 // Returns a new HistoryBackendClient instance. |
48 virtual std::unique_ptr<HistoryBackendClient> CreateBackendClient() = 0; | 51 virtual std::unique_ptr<HistoryBackendClient> CreateBackendClient() = 0; |
49 | 52 |
50 private: | 53 private: |
51 DISALLOW_COPY_AND_ASSIGN(HistoryClient); | 54 DISALLOW_COPY_AND_ASSIGN(HistoryClient); |
52 }; | 55 }; |
53 | 56 |
54 } // namespace history | 57 } // namespace history |
55 | 58 |
56 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_H_ | 59 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_H_ |
OLD | NEW |