| Index: chrome/common/extensions/docs/server2/patcher.py
|
| ===================================================================
|
| --- chrome/common/extensions/docs/server2/patcher.py (revision 0)
|
| +++ chrome/common/extensions/docs/server2/patcher.py (revision 0)
|
| @@ -0,0 +1,21 @@
|
| +# Copyright 2013 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +class Patcher(object):
|
| + def GetPatchedFiles(self):
|
| + ''' Returns (added_files, deleted_files, modified_files).
|
| + '''
|
| + raise NotImplementedError()
|
| +
|
| + def GetVersion(self):
|
| + ''' Returns patch version. Returns None when nothing is patched by the
|
| + patcher.
|
| + '''
|
| + raise NotImplementedError()
|
| +
|
| + def Apply(self, paths, file_system, binary):
|
| + ''' Apply the patch to added/modified files. Returns Future with patched
|
| + data. Throws FileNotFoundError if |paths| contains deleted files.
|
| + '''
|
| + raise NotImplementedError()
|
|
|
| Property changes on: chrome/common/extensions/docs/server2/patcher.py
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|