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

Unified Diff: components/favicon_base/large_icon_url_parser.h

Issue 1318523011: [Password Manager] Copiable username and origin. Linkable origin elided from the left. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Icons appearance fixed Created 5 years, 2 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
Index: components/favicon_base/large_icon_url_parser.h
diff --git a/components/favicon_base/large_icon_url_parser.h b/components/favicon_base/large_icon_url_parser.h
index 3d60b76b45157e32f505cb82e4fadc3f12763b99..4fc53fb22839b82689ace786a0ebce054c4f598b 100644
--- a/components/favicon_base/large_icon_url_parser.h
+++ b/components/favicon_base/large_icon_url_parser.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/strings/string_piece.h"
+#include "components/favicon_base/fallback_icon_style.h"
// A parser for parameters to the chrome://large-icon/ host.
class LargeIconUrlParser {
@@ -22,10 +23,14 @@ class LargeIconUrlParser {
size_t path_index() const { return path_index_; }
+ const favicon_base::FallbackIconStyle& fallback_icon_style() const {
+ return fallback_icon_style_;
+ }
+
// Parses |path|, which should be in the format described at the top of the
// file "chrome/browser/ui/webui/large_icon_source.h". Note that |path| does
// not have leading '/'.
- bool Parse(base::StringPiece path);
+ bool Parse(std::string path);
private:
friend class LargeIconUrlParserTest;
@@ -40,6 +45,9 @@ class LargeIconUrlParser {
// from which the large icon is being requested is located.
size_t path_index_;
+ // Styling specifications of fallback icon.
+ favicon_base::FallbackIconStyle fallback_icon_style_;
+
DISALLOW_COPY_AND_ASSIGN(LargeIconUrlParser);
};

Powered by Google App Engine
This is Rietveld 408576698