| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_FAVICON_BASE_LARGE_ICON_URL_PARSER_H_ | 5 #ifndef COMPONENTS_FAVICON_BASE_LARGE_ICON_URL_PARSER_H_ |
| 6 #define COMPONENTS_FAVICON_BASE_LARGE_ICON_URL_PARSER_H_ | 6 #define COMPONENTS_FAVICON_BASE_LARGE_ICON_URL_PARSER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/macros.h" | 12 #include "base/macros.h" |
| 11 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 12 | 14 |
| 13 // A parser for parameters to the chrome://large-icon/ host. | 15 // A parser for parameters to the chrome://large-icon/ host. |
| 14 class LargeIconUrlParser { | 16 class LargeIconUrlParser { |
| 15 public: | 17 public: |
| 16 LargeIconUrlParser(); | 18 LargeIconUrlParser(); |
| 17 ~LargeIconUrlParser(); | 19 ~LargeIconUrlParser(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 37 int size_in_pixels_; | 39 int size_in_pixels_; |
| 38 | 40 |
| 39 // The index of the first character (relative to the path) where the the URL | 41 // The index of the first character (relative to the path) where the the URL |
| 40 // from which the large icon is being requested is located. | 42 // from which the large icon is being requested is located. |
| 41 size_t path_index_; | 43 size_t path_index_; |
| 42 | 44 |
| 43 DISALLOW_COPY_AND_ASSIGN(LargeIconUrlParser); | 45 DISALLOW_COPY_AND_ASSIGN(LargeIconUrlParser); |
| 44 }; | 46 }; |
| 45 | 47 |
| 46 #endif // COMPONENTS_FAVICON_BASE_LARGE_ICON_URL_PARSER_H_ | 48 #endif // COMPONENTS_FAVICON_BASE_LARGE_ICON_URL_PARSER_H_ |
| OLD | NEW |