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

Side by Side Diff: java/org/chromium/distiller/PageLinkInfo.java

Issue 1029593003: implement validations of pagination URLs (Closed) Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: addr chris's comments Created 5 years, 8 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 | « no previous file | java/org/chromium/distiller/PageParamInfo.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 package org.chromium.distiller;
6
7 /**
8 * This class stores information about the link (anchor) after PageParameterDete ctor has detected
9 * the page parameter:
10 * - the page number (as represented by the original plain text) for the link
11 * - the original page parameter numeric component in the URL (this component wo uld be replaced
12 * by PageParameterDetector.PAGE_PARAM_PLACEHOLDER in the URL pattern)
13 * - the position of this link in the list of ascending numbers.
14 */
15 class PageLinkInfo {
16 int mPageNum;
17 int mPageParamValue;
18 int mPosInAscendingList;
19
20 PageLinkInfo(int pageNum, int pageParamValue, int posInAscendingList) {
21 mPageNum = pageNum;
22 mPageParamValue = pageParamValue;
23 mPosInAscendingList = posInAscendingList;
24 }
25 }
OLDNEW
« no previous file with comments | « no previous file | java/org/chromium/distiller/PageParamInfo.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698