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

Side by Side Diff: net/disk_cache/simple/simple_entry_impl.h

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <queue> 11 #include <queue>
12 #include <string> 12 #include <string>
13 13
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/threading/thread_checker.h" 16 #include "base/threading/thread_checker.h"
17 #include "net/base/cache_type.h" 17 #include "net/base/cache_type.h"
18 #include "net/base/net_export.h" 18 #include "net/base/net_export.h"
19 #include "net/disk_cache/disk_cache.h" 19 #include "net/disk_cache/disk_cache.h"
20 #include "net/disk_cache/simple/simple_entry_format.h" 20 #include "net/disk_cache/simple/simple_entry_format.h"
21 #include "net/disk_cache/simple/simple_entry_operation.h" 21 #include "net/disk_cache/simple/simple_entry_operation.h"
22 #include "net/log/net_log.h"
23 #include "net/log/net_log_event_type.h" 22 #include "net/log/net_log_event_type.h"
23 #include "net/log/net_log_with_source.h"
24 24
25 namespace base { 25 namespace base {
26 class TaskRunner; 26 class TaskRunner;
27 } 27 }
28 28
29 namespace net { 29 namespace net {
30 class GrowableIOBuffer; 30 class GrowableIOBuffer;
31 class IOBuffer; 31 class IOBuffer;
32 class NetLog;
32 } 33 }
33 34
34 namespace disk_cache { 35 namespace disk_cache {
35 36
36 class SimpleBackendImpl; 37 class SimpleBackendImpl;
37 class SimpleSynchronousEntry; 38 class SimpleSynchronousEntry;
38 class SimpleEntryStat; 39 class SimpleEntryStat;
39 struct SimpleEntryCreationResults; 40 struct SimpleEntryCreationResults;
40 41
41 // SimpleEntryImpl is the IO thread interface to an entry in the very simple 42 // SimpleEntryImpl is the IO thread interface to an entry in the very simple
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 // 1 on disk, to reduce the number of file descriptors and save disk space. 382 // 1 on disk, to reduce the number of file descriptors and save disk space.
382 // This strategy allows stream 1 to change size easily. Since stream 0 is only 383 // This strategy allows stream 1 to change size easily. Since stream 0 is only
383 // used to write HTTP headers, the memory consumption of keeping it in memory 384 // used to write HTTP headers, the memory consumption of keeping it in memory
384 // is acceptable. 385 // is acceptable.
385 scoped_refptr<net::GrowableIOBuffer> stream_0_data_; 386 scoped_refptr<net::GrowableIOBuffer> stream_0_data_;
386 }; 387 };
387 388
388 } // namespace disk_cache 389 } // namespace disk_cache
389 390
390 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ 391 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698