Index: chrome/browser/ui/cocoa/handoff_active_url_observer_delegate.h |
diff --git a/chrome/browser/ui/cocoa/handoff_active_url_observer_delegate.h b/chrome/browser/ui/cocoa/handoff_active_url_observer_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d0d0fffca1206cb44801436acc53a6eee792e5c5 |
--- /dev/null |
+++ b/chrome/browser/ui/cocoa/handoff_active_url_observer_delegate.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2014 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_UI_COCOA_HANDOFF_ACTIVE_URL_OBSERVER_DELEGATE_H_ |
+#define CHROME_BROWSER_UI_COCOA_HANDOFF_ACTIVE_URL_OBSERVER_DELEGATE_H_ |
+ |
+namespace content { |
+class WebContents; |
+} |
+ |
+// The delegate for a HandoffActiveURLObserver. |
+class HandoffActiveURLObserverDelegate { |
+ public: |
+ // Called when: |
+ // 1. The most recently focused browser changes. |
+ // 2. The active tab of the browser changes. |
+ // 3. After a navigation of the web contents of the active tab. |
+ // |web_contents| is the WebContents whose VisibleURL is considered the |
+ // "Active URL" of Chrome. |
+ virtual void HandoffActiveURLChanged(content::WebContents* web_contents) = 0; |
+ |
+ protected: |
+ virtual ~HandoffActiveURLObserverDelegate(){}; |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_COCOA_HANDOFF_ACTIVE_URL_OBSERVER_DELEGATE_H_ |