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

Unified Diff: components/sync_driver/revisit/current_tab_matcher.h

Issue 1387253004: [Sync] Creating sync_sessions component, moving revisit logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing test_support target. Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync_driver/BUILD.gn ('k') | components/sync_driver/revisit/current_tab_matcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/revisit/current_tab_matcher.h
diff --git a/components/sync_driver/revisit/current_tab_matcher.h b/components/sync_driver/revisit/current_tab_matcher.h
deleted file mode 100644
index fa8cbf981af1e106519102f41ace9d518f8cd7fe..0000000000000000000000000000000000000000
--- a/components/sync_driver/revisit/current_tab_matcher.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SYNC_DRIVER_CURRENT_TAB_MATCHER_H_
-#define COMPONENTS_SYNC_DRIVER_CURRENT_TAB_MATCHER_H_
-
-#include "base/gtest_prod_util.h"
-#include "components/sessions/core/session_types.h"
-#include "components/sync_driver/revisit/page_equality.h"
-#include "components/sync_driver/revisit/page_visit_observer.h"
-
-namespace sync_driver {
-
-// This class checks the current navigation entry for the given tabs to see if
-// they correspond to the same page we were constructed to look for. Upon
-// finding multiple matches, the most recently modified will be chosen.
-class CurrentTabMatcher {
- public:
- explicit CurrentTabMatcher(const PageEquality& page_equality);
- void Check(const sessions::SessionTab* tab);
- void Emit(const PageVisitObserver::TransitionType transition);
-
- private:
- FRIEND_TEST_ALL_PREFIXES(CurrentTabMatcherTest, Timestamp);
-
- const PageEquality page_equality_;
- const sessions::SessionTab* most_recent_match_ = nullptr;
-
- DISALLOW_COPY_AND_ASSIGN(CurrentTabMatcher);
-};
-
-} // namespace sync_driver
-
-#endif // COMPONENTS_SYNC_DRIVER_CURRENT_TAB_MATCHER_H_
« no previous file with comments | « components/sync_driver/BUILD.gn ('k') | components/sync_driver/revisit/current_tab_matcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698