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

Side by Side Diff: components/sync_sessions/revisit/sessions_page_revisit_observer.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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_REVISIT_SESSIONS_PAGE_REVISIT_OBSERVER_H_ 5 #ifndef COMPONENTS_SYNC_SESSIONS_REVISIT_SESSIONS_PAGE_REVISIT_OBSERVER_H_
6 #define COMPONENTS_SYNC_SESSIONS_REVISIT_SESSIONS_PAGE_REVISIT_OBSERVER_H_ 6 #define COMPONENTS_SYNC_SESSIONS_REVISIT_SESSIONS_PAGE_REVISIT_OBSERVER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "components/sync_sessions/revisit/page_visit_observer.h" 13 #include "components/sync_sessions/revisit/page_visit_observer.h"
14 14
15 class GURL; 15 class GURL;
16 16
17 namespace sessions {
18 struct SessionTab;
19 } // namespace sessions
20
21 namespace sync_sessions { 17 namespace sync_sessions {
22 18
23 class CurrentTabMatcher;
24 class OffsetTabMatcher;
25 struct SyncedSession; 19 struct SyncedSession;
26 20
27 // A simple interface to abstract away who is providing sessions. 21 // A simple interface to abstract away who is providing sessions.
28 class ForeignSessionsProvider { 22 class ForeignSessionsProvider {
29 public: 23 public:
30 // Fills the already instantiated passed vector with all foreign sessions. 24 // Fills the already instantiated passed vector with all foreign sessions.
31 // Returned boolean representes if there were foreign sessions and the vector 25 // Returned boolean representes if there were foreign sessions and the vector
32 // should be examimed. 26 // should be examimed.
33 virtual bool GetAllForeignSessions( 27 virtual bool GetAllForeignSessions(
34 std::vector<const SyncedSession*>* sessions) = 0; 28 std::vector<const SyncedSession*>* sessions) = 0;
(...skipping 22 matching lines...) Expand all
57 void CheckForRevisit(const GURL& url, const TransitionType transition); 51 void CheckForRevisit(const GURL& url, const TransitionType transition);
58 52
59 std::unique_ptr<ForeignSessionsProvider> provider_; 53 std::unique_ptr<ForeignSessionsProvider> provider_;
60 54
61 DISALLOW_COPY_AND_ASSIGN(SessionsPageRevisitObserver); 55 DISALLOW_COPY_AND_ASSIGN(SessionsPageRevisitObserver);
62 }; 56 };
63 57
64 } // namespace sync_sessions 58 } // namespace sync_sessions
65 59
66 #endif // COMPONENTS_SYNC_SESSIONS_REVISIT_SESSIONS_PAGE_REVISIT_OBSERVER_H_ 60 #endif // COMPONENTS_SYNC_SESSIONS_REVISIT_SESSIONS_PAGE_REVISIT_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/sync_sessions/revisit/bookmarks_page_revisit_observer.h ('k') | components/sync_sessions/sessions_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698