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