2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
9 var CTBuilderRepository;
13 var BLINK_REV_URI = 'https://src.chromium.org/viewvc/blink/?pathrev=<revision>';
14 var CHROMIUM_REV_URI = 'https://chromium.googlesource.com/chromium/' +
18 'chromium': CHROMIUM_REV_URI,
19 'blink': BLINK_REV_URI,
20 'v8': '', // FIXME: Add v8 and nacl revision uris.
24 var BUILDER_SORT_ORDER = {
31 CTBuilderRepository = function(name, revision) {
33 this.revision = revision || '';
34 this.uri = REVISION_URIS[this.name].replace('<revision>', this.revision);
37 CTBuilderRepository.sortFunction = function(a, b) {
38 return BUILDER_SORT_ORDER[a.name] > BUILDER_SORT_ORDER[b.name];