Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: components/history/core/browser/history_client.h

Issue 2107493002: Offer user to send feedback from profile error dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting's & droger's Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/history/core/browser/history_backend_unittest.cc ('k') | components/history/core/browser/history_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698