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

Side by Side Diff: content/browser/appcache/appcache_response.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/appcache/appcache_response.h" 5 #include "content/browser/appcache/appcache_response.h"
6 6
7 #include <stddef.h>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/location.h" 12 #include "base/location.h"
11 #include "base/logging.h" 13 #include "base/logging.h"
12 #include "base/numerics/safe_math.h" 14 #include "base/numerics/safe_math.h"
13 #include "base/pickle.h" 15 #include "base/pickle.h"
14 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
15 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
16 #include "base/thread_task_runner_handle.h" 18 #include "base/thread_task_runner_handle.h"
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 } 475 }
474 WriteRaw(kResponseMetadataIndex, 0, buffer_.get(), write_amount_); 476 WriteRaw(kResponseMetadataIndex, 0, buffer_.get(), write_amount_);
475 } 477 }
476 478
477 void AppCacheResponseMetadataWriter::OnIOComplete(int result) { 479 void AppCacheResponseMetadataWriter::OnIOComplete(int result) {
478 DCHECK(result < 0 || write_amount_ == result); 480 DCHECK(result < 0 || write_amount_ == result);
479 InvokeUserCompletionCallback(result); 481 InvokeUserCompletionCallback(result);
480 } 482 }
481 483
482 } // namespace content 484 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_request_handler_unittest.cc ('k') | content/browser/appcache/appcache_response_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698