| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_HANDOFF_ACTIVE_URL_OBSERVER_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_UI_COCOA_HANDOFF_ACTIVE_URL_OBSERVER_DELEGATE_H_ | |
| 7 | |
| 8 namespace content { | |
| 9 class WebContents; | |
| 10 } | |
| 11 | |
| 12 // The delegate for a HandoffActiveURLObserver. | |
| 13 class HandoffActiveURLObserverDelegate { | |
| 14 public: | |
| 15 // Called when: | |
| 16 // 1. The most recently focused browser changes. | |
| 17 // 2. The active tab of the browser changes. | |
| 18 // 3. After a navigation of the web contents of the active tab. | |
| 19 // |web_contents| is the WebContents whose VisibleURL is considered the | |
| 20 // "Active URL" of Chrome. | |
| 21 virtual void HandoffActiveURLChanged(content::WebContents* web_contents) = 0; | |
| 22 | |
| 23 protected: | |
| 24 virtual ~HandoffActiveURLObserverDelegate(){}; | |
| 25 }; | |
| 26 | |
| 27 #endif // CHROME_BROWSER_UI_COCOA_HANDOFF_ACTIVE_URL_OBSERVER_DELEGATE_H_ | |
| OLD | NEW |