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

Side by Side Diff: third_party/WebKit/Source/modules/quota/NavigatorStorageQuota.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 NavigatorStorageQuota& NavigatorStorageQuota::From(Navigator& navigator) { 46 NavigatorStorageQuota& NavigatorStorageQuota::From(Navigator& navigator) {
47 NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>( 47 NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>(
48 Supplement<Navigator>::From(navigator, SupplementName())); 48 Supplement<Navigator>::From(navigator, SupplementName()));
49 if (!supplement) { 49 if (!supplement) {
50 supplement = new NavigatorStorageQuota(navigator); 50 supplement = new NavigatorStorageQuota(navigator);
51 ProvideTo(navigator, SupplementName(), supplement); 51 ProvideTo(navigator, SupplementName(), supplement);
52 } 52 }
53 return *supplement; 53 return *supplement;
54 } 54 }
55 55
56
57 DeprecatedStorageQuota* NavigatorStorageQuota::webkitTemporaryStorage( 56 DeprecatedStorageQuota* NavigatorStorageQuota::webkitTemporaryStorage(
58 Navigator& navigator) { 57 Navigator& navigator) {
59 return NavigatorStorageQuota::From(navigator).webkitTemporaryStorage(); 58 return NavigatorStorageQuota::From(navigator).webkitTemporaryStorage();
60 } 59 }
61 60
62 DeprecatedStorageQuota* NavigatorStorageQuota::webkitPersistentStorage( 61 DeprecatedStorageQuota* NavigatorStorageQuota::webkitPersistentStorage(
63 Navigator& navigator) { 62 Navigator& navigator) {
64 return NavigatorStorageQuota::From(navigator).webkitPersistentStorage(); 63 return NavigatorStorageQuota::From(navigator).webkitPersistentStorage();
65 } 64 }
66 65
(...skipping 22 matching lines...) Expand all
89 } 88 }
90 89
91 DEFINE_TRACE(NavigatorStorageQuota) { 90 DEFINE_TRACE(NavigatorStorageQuota) {
92 visitor->Trace(temporary_storage_); 91 visitor->Trace(temporary_storage_);
93 visitor->Trace(persistent_storage_); 92 visitor->Trace(persistent_storage_);
94 visitor->Trace(storage_manager_); 93 visitor->Trace(storage_manager_);
95 Supplement<Navigator>::Trace(visitor); 94 Supplement<Navigator>::Trace(visitor);
96 } 95 }
97 96
98 } // namespace blink 97 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698