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

Side by Side Diff: webkit/appcache/appcache_disk_cache.h

Issue 10829258: Clean-up inline members of nested classes (webkit/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | webkit/appcache/appcache_disk_cache.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 // 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 #ifndef WEBKIT_APPCACHE_APPCACHE_DISK_CACHE_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_DISK_CACHE_H_
6 #define WEBKIT_APPCACHE_APPCACHE_DISK_CACHE_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_DISK_CACHE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 CREATE, 57 CREATE,
58 OPEN, 58 OPEN,
59 DOOM 59 DOOM
60 }; 60 };
61 struct PendingCall { 61 struct PendingCall {
62 PendingCallType call_type; 62 PendingCallType call_type;
63 int64 key; 63 int64 key;
64 Entry** entry; 64 Entry** entry;
65 net::CompletionCallback callback; 65 net::CompletionCallback callback;
66 66
67 PendingCall() 67 PendingCall();
68 : call_type(CREATE),
69 key(0),
70 entry(NULL) {
71 }
72 68
73 PendingCall(PendingCallType call_type, int64 key, 69 PendingCall(PendingCallType call_type, int64 key,
74 Entry** entry, const net::CompletionCallback& callback) 70 Entry** entry, const net::CompletionCallback& callback);
75 : call_type(call_type),
76 key(key),
77 entry(entry),
78 callback(callback) {
79 }
80 71
81 ~PendingCall(); 72 ~PendingCall();
82 }; 73 };
83 typedef std::vector<PendingCall> PendingCalls; 74 typedef std::vector<PendingCall> PendingCalls;
84 75
85 class ActiveCall; 76 class ActiveCall;
86 typedef std::set<ActiveCall*> ActiveCalls; 77 typedef std::set<ActiveCall*> ActiveCalls;
87 78
88 bool is_initializing() const { 79 bool is_initializing() const {
89 return create_backend_callback_.get() != NULL; 80 return create_backend_callback_.get() != NULL;
(...skipping 10 matching lines...) Expand all
100 net::CompletionCallback init_callback_; 91 net::CompletionCallback init_callback_;
101 scoped_refptr<CreateBackendCallbackShim> create_backend_callback_; 92 scoped_refptr<CreateBackendCallbackShim> create_backend_callback_;
102 PendingCalls pending_calls_; 93 PendingCalls pending_calls_;
103 ActiveCalls active_calls_; 94 ActiveCalls active_calls_;
104 scoped_ptr<disk_cache::Backend> disk_cache_; 95 scoped_ptr<disk_cache::Backend> disk_cache_;
105 }; 96 };
106 97
107 } // namespace appcache 98 } // namespace appcache
108 99
109 #endif // WEBKIT_APPCACHE_APPCACHE_DISK_CACHE_H_ 100 #endif // WEBKIT_APPCACHE_APPCACHE_DISK_CACHE_H_
110
OLDNEW
« no previous file with comments | « no previous file | webkit/appcache/appcache_disk_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698