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

Side by Side Diff: components/sync_sessions/fake_sync_sessions_client.h

Issue 2753753005: [sync] WebContentsObserver based sessions notifications (Closed)
Patch Set: use base:MakeUnique, alphabetize Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ 5 #ifndef COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_
6 #define COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ 6 #define COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/sync_sessions/sync_sessions_client.h" 11 #include "components/sync_sessions/sync_sessions_client.h"
12 12
13 namespace sync_sessions { 13 namespace sync_sessions {
14 14
15 // Fake implementation of a SyncSessionsClient for testing. 15 // Fake implementation of a SyncSessionsClient for testing.
16 class FakeSyncSessionsClient : public SyncSessionsClient { 16 class FakeSyncSessionsClient : public SyncSessionsClient {
17 public: 17 public:
18 FakeSyncSessionsClient(); 18 FakeSyncSessionsClient();
19 ~FakeSyncSessionsClient() override; 19 ~FakeSyncSessionsClient() override;
20 20
21 // SyncSessionsClient: 21 // SyncSessionsClient:
22 bookmarks::BookmarkModel* GetBookmarkModel() override; 22 bookmarks::BookmarkModel* GetBookmarkModel() override;
23 favicon::FaviconService* GetFaviconService() override; 23 favicon::FaviconService* GetFaviconService() override;
24 history::HistoryService* GetHistoryService() override; 24 history::HistoryService* GetHistoryService() override;
25 bool ShouldSyncURL(const GURL& url) const override; 25 bool ShouldSyncURL(const GURL& url) const override;
26 SyncedWindowDelegatesGetter* GetSyncedWindowDelegatesGetter() override; 26 SyncedWindowDelegatesGetter* GetSyncedWindowDelegatesGetter() override;
27 std::unique_ptr<LocalSessionEventRouter> GetLocalSessionEventRouter() 27 LocalSessionEventRouter* GetLocalSessionEventRouter() override;
28 override;
29 28
30 private: 29 private:
31 DISALLOW_COPY_AND_ASSIGN(FakeSyncSessionsClient); 30 DISALLOW_COPY_AND_ASSIGN(FakeSyncSessionsClient);
32 }; 31 };
33 32
34 } // namespace sync_sessions 33 } // namespace sync_sessions
35 34
36 #endif // COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_ 35 #endif // COMPONENTS_SYNC_SESSIONS_FAKE_SYNC_SESSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « components/browser_sync/profile_sync_service.cc ('k') | components/sync_sessions/fake_sync_sessions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698