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

Unified Diff: components/favicon_base/large_icon_url_parser.h

Issue 2917733002: Remove unused chrome://large-icon (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « components/favicon_base/BUILD.gn ('k') | components/favicon_base/large_icon_url_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index ca70c0d1e6778ecee24cc931e7d2a8ffb4fd07ac..0000000000000000000000000000000000000000
--- a/components/favicon_base/large_icon_url_parser.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_FAVICON_BASE_LARGE_ICON_URL_PARSER_H_
-#define COMPONENTS_FAVICON_BASE_LARGE_ICON_URL_PARSER_H_
-
-#include <stddef.h>
-
-#include <string>
-
-#include "base/macros.h"
-#include "base/strings/string_piece.h"
-
-// A parser for parameters to the chrome://large-icon/ host.
-class LargeIconUrlParser {
- public:
- LargeIconUrlParser();
- ~LargeIconUrlParser();
-
- std::string url_string() const { return url_string_; }
-
- int size_in_pixels() const { return size_in_pixels_; }
-
- size_t path_index() const { return path_index_; }
-
- // 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);
-
- private:
- friend class LargeIconUrlParserTest;
-
- // The page URL string of the requested large icon.
- std::string url_string_;
-
- // The size of the requested large icon in pixels.
- int size_in_pixels_;
-
- // The index of the first character (relative to the path) where the the URL
- // from which the large icon is being requested is located.
- size_t path_index_;
-
- DISALLOW_COPY_AND_ASSIGN(LargeIconUrlParser);
-};
-
-#endif // COMPONENTS_FAVICON_BASE_LARGE_ICON_URL_PARSER_H_
« no previous file with comments | « components/favicon_base/BUILD.gn ('k') | components/favicon_base/large_icon_url_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698