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

Unified Diff: chrome/common/extensions/docs/server2/patcher.py

Issue 14125010: Docserver: Add support for viewing docs with a codereview patch applied (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
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,18 @@
+class Patcher(object):
not at google - send to devlin 2013/05/04 06:47:43 need copyright and class comment
方觉(Fang Jue) 2013/05/04 10:47:18 oops. Done.
+ 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
+ pathcer.
not at google - send to devlin 2013/05/04 06:47:43 patcher
方觉(Fang Jue) 2013/05/04 10:47:18 ah..
+ '''
+ 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()
+
not at google - send to devlin 2013/05/04 06:47:43 trailing \n
方觉(Fang Jue) 2013/05/04 10:47:18 Done.
Property changes on: chrome/common/extensions/docs/server2/patcher.py
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698