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

Side by Side Diff: net/sdch/sdch_owner.h

Issue 1749073002: Do V8 GC ASAP if system memory is pressured (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 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 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 #ifndef NET_SDCH_SDCH_OWNER_H_ 5 #ifndef NET_SDCH_SDCH_OWNER_H_
6 #define NET_SDCH_SDCH_OWNER_H_ 6 #define NET_SDCH_SDCH_OWNER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 net::SdchManager* manager_; 217 net::SdchManager* manager_;
218 scoped_ptr<net::SdchDictionaryFetcher> fetcher_; 218 scoped_ptr<net::SdchDictionaryFetcher> fetcher_;
219 219
220 size_t total_dictionary_bytes_; 220 size_t total_dictionary_bytes_;
221 221
222 scoped_ptr<base::Clock> clock_; 222 scoped_ptr<base::Clock> clock_;
223 223
224 size_t max_total_dictionary_size_; 224 size_t max_total_dictionary_size_;
225 size_t min_space_for_dictionary_fetch_; 225 size_t min_space_for_dictionary_fetch_;
226 226
227 base::MemoryPressureListener memory_pressure_listener_; 227 base::MemoryPressureListener* memory_pressure_listener_;
228 228
229 // Dictionary persistence machinery. 229 // Dictionary persistence machinery.
230 // * |in_memory_pref_store_| is created on construction and used in the 230 // * |in_memory_pref_store_| is created on construction and used in the
231 // absence of any call to EnablePersistentStorage(). 231 // absence of any call to EnablePersistentStorage().
232 // * |external_pref_store_| holds the preference store specified by 232 // * |external_pref_store_| holds the preference store specified by
233 // EnablePersistentStorage() (if any). 233 // EnablePersistentStorage() (if any).
234 // * The external pref store is initialized asynchronously. During this time, 234 // * The external pref store is initialized asynchronously. During this time,
235 // both pointers will be value, pref_store_ will point to the in-memory 235 // both pointers will be value, pref_store_ will point to the in-memory
236 // one, and this class will be observing the initialization of the external 236 // one, and this class will be observing the initialization of the external
237 // store. 237 // store.
(...skipping 23 matching lines...) Expand all
261 // Creation time for this SdchOwner object, used for reporting temporal memory 261 // Creation time for this SdchOwner object, used for reporting temporal memory
262 // pressure. 262 // pressure.
263 base::Time creation_time_; 263 base::Time creation_time_;
264 264
265 DISALLOW_COPY_AND_ASSIGN(SdchOwner); 265 DISALLOW_COPY_AND_ASSIGN(SdchOwner);
266 }; 266 };
267 267
268 } // namespace net 268 } // namespace net
269 269
270 #endif // NET_SDCH_SDCH_OWNER_H_ 270 #endif // NET_SDCH_SDCH_OWNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698