| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 package org.chromium.sdk.internal.wip.tools.protocolgenerator; | 5 package org.chromium.sdk.internal.wip.tools.protocolgenerator; |
| 6 | 6 |
| 7 import java.io.IOException; | 7 import java.io.IOException; |
| 8 import java.io.InputStream; | 8 import java.io.InputStream; |
| 9 import java.io.InputStreamReader; | 9 import java.io.InputStreamReader; |
| 10 import java.io.Reader; | 10 import java.io.Reader; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 if (matcher.find()) { | 160 if (matcher.find()) { |
| 161 revision = matcher.group(1); | 161 revision = matcher.group(1); |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 return url + "@" + revision; | 164 return url + "@" + revision; |
| 165 } | 165 } |
| 166 | 166 |
| 167 private static final Pattern REVISION_PATTERN = Pattern.compile("^\"([\\d]+)
//"); | 167 private static final Pattern REVISION_PATTERN = Pattern.compile("^\"([\\d]+)
//"); |
| 168 } | 168 } |
| 169 | 169 |
| 170 // Additional URL syntax for a specific revision is ".../blink/!svn/bc/NNNNN/t
runk/..." |
| 170 private static final ModelResourceLocation JSON_MODEL_FILE_URL = new RemoteSvn
Location( | 171 private static final ModelResourceLocation JSON_MODEL_FILE_URL = new RemoteSvn
Location( |
| 171 "http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/inspector/In
spector.json"); | 172 "http://src.chromium.org/blink/trunk/Source/devtools/protocol.json"); |
| 172 } | 173 } |
| OLD | NEW |