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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/CookieItemsView.js

Issue 2747123008: [DevTools] Separate old Application tab code (Closed)
Patch Set: [DevTools] Separate old Application tab code Created 3 years, 9 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 11 matching lines...) Expand all
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 Resources.CookieItemsView = class extends Resources.StorageItemsView { 30 Resources.CookieItemsView = class extends Resources.StorageItemsView {
31 /** 31 /**
32 * @param {!Resources.CookieTreeElement} treeElement
33 * @param {!SDK.CookieModel} model 32 * @param {!SDK.CookieModel} model
34 * @param {string} cookieDomain 33 * @param {string} cookieDomain
35 */ 34 */
36 constructor(treeElement, model, cookieDomain) { 35 constructor(model, cookieDomain) {
37 super(Common.UIString('Cookies'), 'cookiesPanel'); 36 super(Common.UIString('Cookies'), 'cookiesPanel');
38 37
39 this.element.classList.add('storage-view'); 38 this.element.classList.add('storage-view');
40 39
41 this._model = model; 40 this._model = model;
42 this._treeElement = treeElement;
43 this._cookieDomain = cookieDomain; 41 this._cookieDomain = cookieDomain;
44 42
45 this._totalSize = 0; 43 this._totalSize = 0;
46 /** @type {?CookieTable.CookiesTable} */ 44 /** @type {?CookieTable.CookiesTable} */
47 this._cookiesTable = null; 45 this._cookiesTable = null;
48 this.setCookiesDomain(model, cookieDomain); 46 this.setCookiesDomain(model, cookieDomain);
49 } 47 }
50 48
51 /** 49 /**
52 * @param {!SDK.CookieModel} model 50 * @param {!SDK.CookieModel} model
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 this._model.deleteCookie(selectedCookie, () => this.refreshItems()); 119 this._model.deleteCookie(selectedCookie, () => this.refreshItems());
122 } 120 }
123 121
124 /** 122 /**
125 * @override 123 * @override
126 */ 124 */
127 refreshItems() { 125 refreshItems() {
128 this._model.getCookiesForDomain(this._cookieDomain, cookies => this._updateW ithCookies(cookies)); 126 this._model.getCookiesForDomain(this._cookieDomain, cookies => this._updateW ithCookies(cookies));
129 } 127 }
130 }; 128 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698