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

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_current_page_delegate.h

Issue 21395002: [InstantExtended] Fixing how PageLoadSRP is emitted. Previously it was emitted only for Instant sea… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary include Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_H_
6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/base/window_open_disposition.h" 9 #include "ui/base/window_open_disposition.h"
10 10
(...skipping 17 matching lines...) Expand all
28 // Returns whether there is any associated current page. For example, during 28 // Returns whether there is any associated current page. For example, during
29 // startup or shutdown, the omnibox may exist but have no attached page. 29 // startup or shutdown, the omnibox may exist but have no attached page.
30 virtual bool CurrentPageExists() const = 0; 30 virtual bool CurrentPageExists() const = 0;
31 31
32 // Returns the URL of the current page. 32 // Returns the URL of the current page.
33 virtual const GURL& GetURL() const = 0; 33 virtual const GURL& GetURL() const = 0;
34 34
35 // Returns true if the visible entry is a New Tab Page rendered by Instant. 35 // Returns true if the visible entry is a New Tab Page rendered by Instant.
36 virtual bool IsInstantNTP() const = 0; 36 virtual bool IsInstantNTP() const = 0;
37 37
38 // Returns true if the committed entery a search results page.
Mark P 2013/08/06 19:38:36 nit: spelling and grammar.
rpetterson 2013/08/06 23:04:17 Done.
39 virtual bool IsSearchResultsPage() const = 0;
40
38 // Returns whether the current page is loading. 41 // Returns whether the current page is loading.
39 virtual bool IsLoading() const = 0; 42 virtual bool IsLoading() const = 0;
40 43
41 // Returns the NavigationController for the current page. 44 // Returns the NavigationController for the current page.
42 virtual content::NavigationController& GetNavigationController() const = 0; 45 virtual content::NavigationController& GetNavigationController() const = 0;
43 46
44 // Returns the session ID of the current page. 47 // Returns the session ID of the current page.
45 virtual const SessionID& GetSessionID() const = 0; 48 virtual const SessionID& GetSessionID() const = 0;
46 49
47 // Checks whether |template_url| is an extension keyword; if so, asks the 50 // Checks whether |template_url| is an extension keyword; if so, asks the
48 // ExtensionOmniboxEventRouter to process |match| for it and returns true. 51 // ExtensionOmniboxEventRouter to process |match| for it and returns true.
49 // Otherwise returns false. 52 // Otherwise returns false.
50 virtual bool ProcessExtensionKeyword(TemplateURL* template_url, 53 virtual bool ProcessExtensionKeyword(TemplateURL* template_url,
51 const AutocompleteMatch& match, 54 const AutocompleteMatch& match,
52 WindowOpenDisposition disposition) = 0; 55 WindowOpenDisposition disposition) = 0;
53 56
54 // Notifies the SearchTabHelper, if one exists, of relevant changes to the 57 // Notifies the SearchTabHelper, if one exists, of relevant changes to the
55 // omnibox state. 58 // omnibox state.
56 virtual void NotifySearchTabHelper(bool user_input_in_progress, 59 virtual void NotifySearchTabHelper(bool user_input_in_progress,
57 bool cancelling) = 0; 60 bool cancelling) = 0;
58 61
59 // Performs prerendering for |match|. 62 // Performs prerendering for |match|.
60 virtual void DoPrerender(const AutocompleteMatch& match) = 0; 63 virtual void DoPrerender(const AutocompleteMatch& match) = 0;
61 }; 64 };
62 65
63 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_H_ 66 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CURRENT_PAGE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698