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

Side by Side Diff: courgette/third_party/bsdiff_create.cc

Issue 18156002: Use a direct include of time headers in courgette/, crypto/, dbus/, device/, google_apis/, gpu/, ip… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « courgette/ensemble_create.cc ('k') | crypto/mock_apple_keychain.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 bsdiff.c -- Binary patch generator. 2 bsdiff.c -- Binary patch generator.
3 3
4 Copyright 2003 Colin Percival 4 Copyright 2003 Colin Percival
5 5
6 For the terms under which this work may be distributed, please see 6 For the terms under which this work may be distributed, please see
7 the adjoining file "LICENSE". 7 the adjoining file "LICENSE".
8 8
9 ChangeLog: 9 ChangeLog:
10 2005-05-05 - Use the modified header struct from bspatch.h; use 32-bit 10 2005-05-05 - Use the modified header struct from bspatch.h; use 32-bit
(...skipping 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #include "courgette/third_party/bsdiff.h" 25 #include "courgette/third_party/bsdiff.h"
26 26
27 #include <stdlib.h> 27 #include <stdlib.h>
28 #include <algorithm> 28 #include <algorithm>
29 29
30 #include "base/logging.h" 30 #include "base/logging.h"
31 #include "base/memory/scoped_ptr.h" 31 #include "base/memory/scoped_ptr.h"
32 #include "base/strings/string_util.h" 32 #include "base/strings/string_util.h"
33 #include "base/time.h" 33 #include "base/time/time.h"
34 34
35 #include "courgette/crc.h" 35 #include "courgette/crc.h"
36 #include "courgette/streams.h" 36 #include "courgette/streams.h"
37 #include "courgette/third_party/paged_array.h" 37 #include "courgette/third_party/paged_array.h"
38 38
39 namespace courgette { 39 namespace courgette {
40 40
41 // ------------------------------------------------------------------------ 41 // ------------------------------------------------------------------------
42 // 42 //
43 // The following code is taken verbatim from 'bsdiff.c'. Please keep all the 43 // The following code is taken verbatim from 'bsdiff.c'. Please keep all the
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 << " extra bytes: " << extra_bytes_length 445 << " extra bytes: " << extra_bytes_length
446 << "\nUncompressed bsdiff patch size " 446 << "\nUncompressed bsdiff patch size "
447 << patch_stream->Length() - initial_patch_stream_length 447 << patch_stream->Length() - initial_patch_stream_length
448 << "\nEnd bsdiff " 448 << "\nEnd bsdiff "
449 << (base::Time::Now() - start_bsdiff_time).InSecondsF(); 449 << (base::Time::Now() - start_bsdiff_time).InSecondsF();
450 450
451 return OK; 451 return OK;
452 } 452 }
453 453
454 } // namespace 454 } // namespace
OLDNEW
« no previous file with comments | « courgette/ensemble_create.cc ('k') | crypto/mock_apple_keychain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698