| OLD | NEW |
| (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 class Patcher(object): |
| 6 def GetPatchedFiles(self): |
| 7 ''' Returns (added_files, deleted_files, modified_files). |
| 8 ''' |
| 9 raise NotImplementedError() |
| 10 |
| 11 def GetVersion(self): |
| 12 ''' Returns patch version. Returns None when nothing is patched by the |
| 13 patcher. |
| 14 ''' |
| 15 raise NotImplementedError() |
| 16 |
| 17 def Apply(self, paths, file_system, binary): |
| 18 ''' Apply the patch to added/modified files. Returns Future with patched |
| 19 data. Throws FileNotFoundError if |paths| contains deleted files. |
| 20 ''' |
| 21 raise NotImplementedError() |
| OLD | NEW |