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

Side by Side Diff: ios/chrome/browser/ui/omnibox/omnibox_util.h

Issue 2448943002: Refactor SecurityStateModel/Clients for simplicity and reusability. (Closed)
Patch Set: update comments. Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_
6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_
7 7
8 #include "components/omnibox/browser/autocomplete_match_type.h" 8 #include "components/omnibox/browser/autocomplete_match_type.h"
9 #include "components/security_state/security_state_model.h" 9 #include "components/security_state/core/security_state_model.h"
10 10
11 // Converts |type| to a resource identifier for the appropriate icon for this 11 // Converts |type| to a resource identifier for the appropriate icon for this
12 // type to show in the omnibox. 12 // type to show in the omnibox.
13 int GetIconForAutocompleteMatchType(AutocompleteMatchType::Type type, 13 int GetIconForAutocompleteMatchType(AutocompleteMatchType::Type type,
14 bool is_starred, 14 bool is_starred,
15 bool is_incognito); 15 bool is_incognito);
16 16
17 // Converts |security_level| to a resource identifier for the appropriate icon 17 // Converts |security_level| to a resource identifier for the appropriate icon
18 // for this security level in the omnibox. 18 // for this security level in the omnibox.
19 int GetIconForSecurityState( 19 int GetIconForSecurityState(
20 security_state::SecurityStateModel::SecurityLevel security_level); 20 security_state::SecurityStateModel::SecurityLevel security_level);
21 21
22 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ 22 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698