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

Side by Side Diff: net/disk_cache/blockfile/file_ios.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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
« no previous file with comments | « net/disk_cache/blockfile/file_block.h ('k') | net/disk_cache/blockfile/in_flight_backend_io.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "net/disk_cache/blockfile/file.h" 5 #include "net/disk_cache/blockfile/file.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/macros.h"
14 #include "base/threading/worker_pool.h" 15 #include "base/threading/worker_pool.h"
15 #include "net/base/net_errors.h" 16 #include "net/base/net_errors.h"
16 #include "net/disk_cache/blockfile/in_flight_io.h" 17 #include "net/disk_cache/blockfile/in_flight_io.h"
17 #include "net/disk_cache/disk_cache.h" 18 #include "net/disk_cache/disk_cache.h"
18 19
19 namespace { 20 namespace {
20 21
21 // This class represents a single asynchronous IO operation while it is being 22 // This class represents a single asynchronous IO operation while it is being
22 // bounced between threads. 23 // bounced between threads.
23 class FileBackgroundIO : public disk_cache::BackgroundIO { 24 class FileBackgroundIO : public disk_cache::BackgroundIO {
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 return false; 293 return false;
293 294
294 GetFileInFlightIO()->PostWrite(this, buffer, buffer_len, offset, callback); 295 GetFileInFlightIO()->PostWrite(this, buffer, buffer_len, offset, callback);
295 296
296 if (completed) 297 if (completed)
297 *completed = false; 298 *completed = false;
298 return true; 299 return true;
299 } 300 }
300 301
301 } // namespace disk_cache 302 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/file_block.h ('k') | net/disk_cache/blockfile/in_flight_backend_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698