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

Side by Side Diff: components/history/core/test/history_client_fake_bookmarks.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_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_
6 #define COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_ 6 #define COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 16 matching lines...) Expand all
27 void ClearAllBookmarks(); 27 void ClearAllBookmarks();
28 void AddBookmark(const GURL& url); 28 void AddBookmark(const GURL& url);
29 void AddBookmarkWithTitle(const GURL& url, const base::string16& title); 29 void AddBookmarkWithTitle(const GURL& url, const base::string16& title);
30 void DelBookmark(const GURL& url); 30 void DelBookmark(const GURL& url);
31 bool IsBookmarked(const GURL& url); 31 bool IsBookmarked(const GURL& url);
32 32
33 // HistoryClient implementation. 33 // HistoryClient implementation.
34 void OnHistoryServiceCreated(HistoryService* history_service) override; 34 void OnHistoryServiceCreated(HistoryService* history_service) override;
35 void Shutdown() override; 35 void Shutdown() override;
36 bool CanAddURL(const GURL& url) override; 36 bool CanAddURL(const GURL& url) override;
37 void NotifyProfileError(sql::InitStatus init_status) override; 37 void NotifyProfileError(sql::InitStatus init_status,
38 const std::string& diagnostics) override;
38 std::unique_ptr<HistoryBackendClient> CreateBackendClient() override; 39 std::unique_ptr<HistoryBackendClient> CreateBackendClient() override;
39 40
40 private: 41 private:
41 scoped_refptr<FakeBookmarkDatabase> bookmarks_; 42 scoped_refptr<FakeBookmarkDatabase> bookmarks_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(HistoryClientFakeBookmarks); 44 DISALLOW_COPY_AND_ASSIGN(HistoryClientFakeBookmarks);
44 }; 45 };
45 46
46 } // namespace history 47 } // namespace history
47 48
48 #endif // COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_ 49 #endif // COMPONENTS_HISTORY_CORE_TEST_HISTORY_CLIENT_FAKE_BOOKMARKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698