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

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

Issue 2965043003: ToolbarModel: Supply offline page status. (Closed)
Patch Set: And, ios-simulator. Created 3 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 unified diff | Download patch
« no previous file with comments | « components/toolbar/toolbar_model.h ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Returns true if the current page fails the malware check. 50 // Returns true if the current page fails the malware check.
51 virtual bool FailsMalwareCheck() const = 0; 51 virtual bool FailsMalwareCheck() const = 0;
52 52
53 // Returns the id of the icon to show to the left of the address, or nullptr 53 // Returns the id of the icon to show to the left of the address, or nullptr
54 // if the icon should be selected by the caller. This is useful for 54 // if the icon should be selected by the caller. This is useful for
55 // associating particular URLs with particular schemes without importing 55 // associating particular URLs with particular schemes without importing
56 // knowledge of those schemes into this component. 56 // knowledge of those schemes into this component.
57 virtual const gfx::VectorIcon* GetVectorIconOverride() const = 0; 57 virtual const gfx::VectorIcon* GetVectorIconOverride() const = 0;
58 58
59 // Returns whether the page is an offline page, sourced from a cache of
60 // previously-downloaded content.
61 virtual bool IsOfflinePage() const = 0;
62
59 protected: 63 protected:
60 virtual ~ToolbarModelDelegate() {} 64 virtual ~ToolbarModelDelegate() {}
61 }; 65 };
62 66
63 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 67 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/toolbar/toolbar_model.h ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698