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

Unified Diff: chrome/browser/autocomplete/autocomplete_input.h

Issue 20747002: Make a copy of PageClassification enum outside the metrics code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_input.h
diff --git a/chrome/browser/autocomplete/autocomplete_input.h b/chrome/browser/autocomplete/autocomplete_input.h
index d70a3afa1e10c034a4811c0141b64652e25529df..ae9ea45e876cc1da8fef49311e28f0908643e23f 100644
--- a/chrome/browser/autocomplete/autocomplete_input.h
+++ b/chrome/browser/autocomplete/autocomplete_input.h
@@ -44,6 +44,29 @@ class AutocompleteInput {
ALL_MATCHES,
};
+ // The type of page currently displayed.
+ // Note: when adding an element to this enum, please add it at the end
+ // and update omnibox_event.proto::PageClassification and
+ // omnibox_edit_model.cc::ClassifyPage() too.
+ enum PageClassification {
+ INVALID_SPEC = 0, // invalid URI; shouldn't happen
Peter Kasting 2013/07/26 18:06:38 Nit: I think you mean URL. (Generally we don't wo
Mark P 2013/07/26 18:45:39 I'd rather do this cleanup in a separate changelis
+ NEW_TAB_PAGE = 1, // chrome://newtab/
+ // Note that chrome://newtab/ doesn't have to be the built-in
+ // version; it could be replaced by an extension.
+ BLANK = 2, // about:blank
+ HOMEPAGE = 3, // user switched settings to "open this page" mode.
+ // Note that if the homepage is set to the new tab page or about blank,
+ // then we'll classify the web page into those categories, not HOMEPAGE.
+ OTHER = 4, // everything not included somewhere else on this list
+ INSTANT_NEW_TAB_PAGE = 5, // new tab page rendered by Instant
Peter Kasting 2013/07/26 18:06:38 Nit: Might want to note the instant exception on N
Mark P 2013/07/26 18:45:39 ditto.
+ // The user is on a search result page that's doing search term
+ // replacement, meaning the search terms should've appeared in the omnibox
+ // before the user started editing it, not the URL of the page.
+ SEARCH_RESULT_PAGE_DOING_SEARCH_TERM_REPLACEMENT = 6
+ // Please duplicate all changes to this enum in omnibox_event.proto;
+ // see note at the top of this enum.
Peter Kasting 2013/07/26 18:06:38 Nit: Don't duplicate this comment from above.
Mark P 2013/07/26 18:45:39 Removed.
+ };
+
AutocompleteInput();
// |text| and |cursor_position| represent the input query and location of
// the cursor with the query respectively. |cursor_position| may be set to
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698