OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_TOOLBAR_ORIGIN_CHIP_INFO_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_ORIGIN_CHIP_INFO_H_ |
6 #define CHROME_BROWSER_UI_TOOLBAR_ORIGIN_CHIP_INFO_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_ORIGIN_CHIP_INFO_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "chrome/browser/extensions/extension_icon_image.h" | |
10 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 9 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
| 10 #include "extensions/browser/extension_icon_image.h" |
11 | 11 |
12 class GURL; | 12 class GURL; |
13 class Profile; | 13 class Profile; |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 class WebContents; | 16 class WebContents; |
17 } | 17 } |
18 | 18 |
19 // This class manages the information to be displayed by the origin chip. | 19 // This class manages the information to be displayed by the origin chip. |
20 class OriginChipInfo { | 20 class OriginChipInfo { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // phishing page. | 83 // phishing page. |
84 static bool IsMalware(const GURL& url, const content::WebContents* tab); | 84 static bool IsMalware(const GURL& url, const content::WebContents* tab); |
85 | 85 |
86 // Gets the label to display on the Origin Chip for the specified URL. The | 86 // Gets the label to display on the Origin Chip for the specified URL. The |
87 // |profile| is needed in case the URL is from an extension. | 87 // |profile| is needed in case the URL is from an extension. |
88 static base::string16 LabelFromURLForProfile(const GURL& provided_url, | 88 static base::string16 LabelFromURLForProfile(const GURL& provided_url, |
89 Profile* profile); | 89 Profile* profile); |
90 }; | 90 }; |
91 | 91 |
92 #endif // CHROME_BROWSER_UI_TOOLBAR_ORIGIN_CHIP_INFO_H_ | 92 #endif // CHROME_BROWSER_UI_TOOLBAR_ORIGIN_CHIP_INFO_H_ |
OLD | NEW |