Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h |
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h |
index 8e637ea436b4daa7370bcf57e6c5278241634507..89ad258296e975a02267a9ac48bd8a6539a0e64b 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h |
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h |
@@ -48,6 +48,14 @@ class AutocompleteTextFieldObserver { |
// Called when the user does a copy or drag. |
virtual void CopyToPasteboard(NSPasteboard* pboard) = 0; |
+ // Clears |pboard| and adds the current URL. Specifically used when the user |
+ // explicitly requests to copy the URL in cases where extended instant has |
+ // overridden the URL with the search terms. |
+ virtual void CopyURLToPasteboard(NSPasteboard* pboard) = 0; |
+ |
+ // Returns true if the Copy to URL option should be available. |
+ virtual bool ShouldAddCopyURL() = 0; |
+ |
// Returns true if the current clipboard text supports paste and go |
// (or paste and search). |
virtual bool CanPasteAndGo() = 0; |