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

Side by Side Diff: net/disk_cache/simple/simple_entry_operation.cc

Issue 2901103002: Fix closing namespace comments in //net. (Closed)
Patch Set: Rebase. Created 3 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/simple/simple_entry_operation.h" 5 #include "net/disk_cache/simple/simple_entry_operation.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 14 matching lines...) Expand all
25 bool IsReadType(unsigned type) { 25 bool IsReadType(unsigned type) {
26 return type == SimpleEntryOperation::TYPE_READ || 26 return type == SimpleEntryOperation::TYPE_READ ||
27 type == SimpleEntryOperation::TYPE_READ_SPARSE; 27 type == SimpleEntryOperation::TYPE_READ_SPARSE;
28 } 28 }
29 29
30 bool IsSparseType(unsigned type) { 30 bool IsSparseType(unsigned type) {
31 return type == SimpleEntryOperation::TYPE_READ_SPARSE || 31 return type == SimpleEntryOperation::TYPE_READ_SPARSE ||
32 type == SimpleEntryOperation::TYPE_WRITE_SPARSE; 32 type == SimpleEntryOperation::TYPE_WRITE_SPARSE;
33 } 33 }
34 34
35 } 35 } // anonymous namespace
36 36
37 SimpleEntryOperation::SimpleEntryOperation(const SimpleEntryOperation& other) 37 SimpleEntryOperation::SimpleEntryOperation(const SimpleEntryOperation& other)
38 : entry_(other.entry_.get()), 38 : entry_(other.entry_.get()),
39 buf_(other.buf_), 39 buf_(other.buf_),
40 callback_(other.callback_), 40 callback_(other.callback_),
41 out_entry_(other.out_entry_), 41 out_entry_(other.out_entry_),
42 offset_(other.offset_), 42 offset_(other.offset_),
43 sparse_offset_(other.sparse_offset_), 43 sparse_offset_(other.sparse_offset_),
44 length_(other.length_), 44 length_(other.length_),
45 out_start_(other.out_start_), 45 out_start_(other.out_start_),
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 length_(length), 332 length_(length),
333 out_start_(out_start), 333 out_start_(out_start),
334 type_(type), 334 type_(type),
335 have_index_(have_index), 335 have_index_(have_index),
336 index_(index), 336 index_(index),
337 truncate_(truncate), 337 truncate_(truncate),
338 optimistic_(optimistic), 338 optimistic_(optimistic),
339 alone_in_queue_(alone_in_queue) {} 339 alone_in_queue_(alone_in_queue) {}
340 340
341 } // namespace disk_cache 341 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/in_flight_backend_io.cc ('k') | net/disk_cache/simple/simple_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698