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

Side by Side Diff: chrome/common/favicon_url_parser.h

Issue 15388002: Supporting high dpi favicons in Instant Extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactoring after Kausalya's change Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_FAVICON_URL_PARSER_H_
6 #define CHROME_COMMON_FAVICON_URL_PARSER_H_
7
8 #include <string>
9
10 #include "ui/base/layout.h"
11
12 namespace chrome {
13
14 // Parses |path|, which should be in the format described at the top of the
15 // file "chrome/browser/ui/webui/favicon_source.h". Returns true if |path|
samarth 2013/06/14 21:54:46 Move the definition of the format here.
pedro (no code reviews) 2013/06/18 22:35:13 What do you mean? Do you mean moving the comment t
16 // could be parsed. |supports_origin_parameter| indicates whether the origin
17 // favicon parameter is supported (it won't be supported in Instant Extended).
18 // |icon_types| indicates which icon types are supported. The |params| argument
19 // will be set to the parameters part of the URL, allowing Instant Extended
20 // to translate URLs containing such parameters (adding support of high dpi
21 // favicons to Instant Extended).
22 bool ParseFaviconPath(const std::string& path,
23 bool supports_origin_parameter,
24 int icon_types,
25 bool* is_icon_url,
26 std::string* url,
27 int* size_in_dip,
28 ui::ScaleFactor* scale_factor,
29 std::string* params);
30
31 } // namespace chrome
32
33 #endif // CHROME_COMMON_FAVICON_URL_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698