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

Unified Diff: chrome/browser/visitedlink/visitedlink_delegate.h

Issue 11573060: Remove VisitedLink dependency on rest of chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use delegate instead Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/visitedlink/visitedlink_delegate.h
diff --git a/chrome/browser/visitedlink/visitedlink_delegate.h b/chrome/browser/visitedlink/visitedlink_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..fc47564d88cdad1ad0329f4eed99df92a29354be
--- /dev/null
+++ b/chrome/browser/visitedlink/visitedlink_delegate.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 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 CHROME_BROWSER_VISITEDLINK_VISITEDLINK_DELEGATE_H_
+#define CHROME_BROWSER_VISITEDLINK_VISITEDLINK_DELEGATE_H_
+
+#include <vector>
tfarina 2012/12/20 01:43:34 you don't use this include in this header file.
boliu 2012/12/29 01:48:12 Done.
+
+class GURL;
+
+namespace content {
+class BrowserContext;
+} // namespace content
+
+// TODO(boliu): Comment
+class VisitedLinkDelegate {
+ public:
+ virtual bool IsEquivalentContext(content::BrowserContext* context1,
+ content::BrowserContext* context2) = 0;
+
+ class URLEnumerator {
+ public:
+ virtual void OnURL(const GURL& url) = 0;
+ virtual void OnComplete(bool success) = 0;
+ protected:
tfarina 2012/12/20 01:43:34 add a blank line above.
boliu 2012/12/29 01:48:12 Done.
+ virtual ~URLEnumerator() {}
+ };
+
+ virtual void RebuildTable(URLEnumerator* enumerator) = 0;
joth 2012/12/20 01:39:29 virtual d'tor, DISALLOW_COPY etc.
tfarina 2012/12/20 01:43:34 you don't need this subtle pattern of DISALLOW_COP
boliu 2012/12/29 01:48:12 Done.
+};
+
+#endif // CHROME_BROWSER_VISITEDLINK_VISITEDLINK_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698