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

Side by Side Diff: components/toolbar/toolbar_model_delegate.h

Issue 2331133002: [Material] Show "Dangerous" for Safe Browsing Security State (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 5 #ifndef COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 25 matching lines...) Expand all
36 // in the location bar. 36 // in the location bar.
37 virtual bool ShouldDisplayURL() const = 0; 37 virtual bool ShouldDisplayURL() const = 0;
38 38
39 // Returns the underlying security level of the page without regard to any 39 // Returns the underlying security level of the page without regard to any
40 // user edits that may be in progress. 40 // user edits that may be in progress.
41 virtual SecurityLevel GetSecurityLevel() const = 0; 41 virtual SecurityLevel GetSecurityLevel() const = 0;
42 42
43 // Returns the certificate for the current navigation entry. 43 // Returns the certificate for the current navigation entry.
44 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0; 44 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0;
45 45
46 // Returns true if the current page fails the malware check.
47 virtual bool GetFailsMalwareCheck() const = 0;
Peter Kasting 2016/09/13 05:55:59 Nit: Just call this FailsMalwareCheck().
spqchan 2016/09/13 21:23:41 Done.
48
46 protected: 49 protected:
47 virtual ~ToolbarModelDelegate() {} 50 virtual ~ToolbarModelDelegate() {}
48 }; 51 };
49 52
50 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 53 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698