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

Issue 113554: For local review prior to sending to webkit (Closed)

Created:
11 years, 7 months ago by michaeln
Modified:
9 years, 7 months ago
Reviewers:
dumi, andreip, jorlow, dglazkov
CC:
chromium-reviews_googlegroups.com, Feng Qian
Base URL:
http://svn.webkit.org/repository/webkit/trunk/WebCore/
Visibility:
Public.

Description

For local review prior to sending to webkit.Please see https://bugs.webkit.org/show_bug.cgi?id=254361)1) This patch is mostly about allowing development of a new appcache system without disrupting the existing system. It introduces a new ENABLE flag for the new system, ENABLE(APPLICATION_CACHE), while leaving the flag for the existing system in place, ENABLE(OFFLINE_WEB_APPLICATIONS). There is some overlap between the two mostly around the window.applicationCache attribute.2) Also defines an interface to the new system for use in the frontend, class ApplicationCacheFrontend. The interface is being used by FrameLoader and DOMApplicationCache and HTMLHtmlElement. There is only a stub implementation of this interface at this time that does no harm.3) Also widens the ResourceRequestBase and ResourceResponseBase data structures with additional data members to provide additional inputs (and outputs) to (from) the backend when loading a ResourceHandle.4) Requisite custom V8Bindings for the DOMApplicationCache interface. Most of the bindings work isn't destined for the webkit repository just yet, that stuff is still being migrated over in general.5) Changes to the JSBindings for the DOMApplicationCache interface to bind to the new or existing system based on which ENABLE flag is set.

Patch Set 1 #

Total comments: 49

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 20

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 1

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Total comments: 33

Patch Set 18 : '' #

Patch Set 19 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1875 lines, -266 lines) Patch
M bindings/js/JSDOMApplicationCacheCustom.cpp View 3 4 5 6 7 8 9 10 11 12 4 chunks +4 lines, -4 lines 0 comments Download
M bindings/js/JSDOMWindowCustom.cpp View 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M bindings/js/JSEventTarget.cpp View 10 11 12 3 chunks +3 lines, -3 lines 0 comments Download
A bindings/v8/custom/V8DOMApplicationCacheCustom.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +142 lines, -0 lines 0 comments Download
M dom/EventTarget.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M dom/EventTarget.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M html/HTMLHtmlElement.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M html/HTMLHtmlElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +40 lines, -5 lines 0 comments Download
M loader/FrameLoader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +15 lines, -0 lines 0 comments Download
M loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +68 lines, -0 lines 0 comments Download
A loader/appcache2/ApplicationCacheBridge.h View 15 16 17 18 1 chunk +123 lines, -0 lines 0 comments Download
A loader/appcache2/ApplicationCacheBridge.cpp View 15 16 17 1 chunk +62 lines, -0 lines 0 comments Download
A loader/appcache2/ApplicationCacheBridgeClientImpl.h View 15 16 17 18 1 chunk +65 lines, -0 lines 0 comments Download
A loader/appcache2/ApplicationCacheBridgeClientImpl.cpp View 15 1 chunk +79 lines, -0 lines 0 comments Download
A loader/appcache2/ApplicationCacheBridgeImpl.h View 1 chunk +336 lines, -0 lines 0 comments Download
A loader/appcache2/ApplicationCacheBridgeImpl.cpp View 18 1 chunk +244 lines, -0 lines 0 comments Download
A loader/appcache2/ApplicationCacheCommon.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +111 lines, -0 lines 0 comments Download
A loader/appcache2/ApplicationCacheFrontend.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +155 lines, -0 lines 0 comments Download
A loader/appcache2/ApplicationCacheFrontend.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +237 lines, -0 lines 0 comments Download
A + loader/appcache2/DOMApplicationCache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +54 lines, -61 lines 0 comments Download
A + loader/appcache2/DOMApplicationCache.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +63 lines, -157 lines 0 comments Download
A + loader/appcache2/DOMApplicationCache.idl View 2 chunks +2 lines, -13 lines 0 comments Download
M page/DOMWindow.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +4 lines, -4 lines 0 comments Download
M page/DOMWindow.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -3 lines 0 comments Download
M page/DOMWindow.idl View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M page/Frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M page/Frame.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M platform/network/ResourceRequestBase.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +15 lines, -1 line 0 comments Download
M platform/network/ResourceRequestBase.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
M platform/network/ResourceResponseBase.h View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +25 lines, -0 lines 0 comments Download
M platform/network/ResourceResponseBase.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M platform/network/chromium/ResourceRequest.h View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +0 lines, -10 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
michaeln
Hi Guys, before I send this patch for review to the webkit, wanted tog bounce ...
11 years, 7 months ago (2009-05-18 21:53:52 UTC) #1
jorlow
Many of my comments apply to more than one part of the patch, so when ...
11 years, 7 months ago (2009-05-18 23:28:38 UTC) #2
dglazkov
I apologize for not having more thorough comments, I am still trying to wrap my ...
11 years, 7 months ago (2009-05-19 18:43:15 UTC) #3
michaeln
http://codereview.chromium.org/113554/diff/1/14 File bindings/v8/custom/V8DOMApplicationCacheCustom.cpp (right): http://codereview.chromium.org/113554/diff/1/14#newcode34 Line 34: #if ENABLE(APPLICATION_CACHE) Don't think so. Look at workers ...
11 years, 7 months ago (2009-05-19 19:22:08 UTC) #4
michaeln
Ah... i see a source of confusion around the v8 bindings. Very little of that ...
11 years, 7 months ago (2009-05-19 19:32:04 UTC) #5
michaeln
See http://codereview.chromium.org/115531 for the bindings in chromium's svn
11 years, 7 months ago (2009-05-19 20:18:06 UTC) #6
jorlow
Here are my comments on your comments from the first patch. Will try to look ...
11 years, 7 months ago (2009-05-19 20:46:42 UTC) #7
michaeln
> I still don't understand why you can't just use idl generated code for this. ...
11 years, 7 months ago (2009-05-19 21:04:39 UTC) #8
michaeln
In hindsight, it was probably a mistake to include the V8Bindings in this CL. I'm ...
11 years, 7 months ago (2009-05-20 01:46:12 UTC) #9
michaeln
New snapshot uploaded. Now with slimmer and trimmer custom bindings for the event handlers. One ...
11 years, 7 months ago (2009-05-21 01:15:28 UTC) #10
michaeln
New snapshot uploaded. Found a couple more files in JSBindings that need to respect the ...
11 years, 7 months ago (2009-05-22 18:35:53 UTC) #11
michaeln
New snapshot uploaded per recent discussions on webkit-dev list frowning on virtual interfaces. Made ApplicationCacheFrontend ...
11 years, 7 months ago (2009-05-27 02:32:11 UTC) #12
dglazkov
I am digging this :) I am sure you're aware of the nomenclature brew up ...
11 years, 7 months ago (2009-05-27 16:30:34 UTC) #13
michaeln
Oh... just now noticed your comments! Between then and now, I've uploaded this patch for ...
11 years, 7 months ago (2009-05-27 21:05:24 UTC) #14
michaeln
http://codereview.chromium.org/113554/diff/251/264 File bindings/v8/custom/V8DOMApplicationCacheCustom.cpp (right): http://codereview.chromium.org/113554/diff/251/264#newcode63 Line 63: return PassRefPtr<EventListener>(); Done... good to know, thanx http://codereview.chromium.org/113554/diff/251/264#newcode67 ...
11 years, 7 months ago (2009-05-27 21:55:00 UTC) #15
michaeln
http://codereview.chromium.org/113554/diff/251/270 File loader/appcache2/ApplicationCacheFrontend.h (right): http://codereview.chromium.org/113554/diff/251/270#newcode94 Line 94: class Delegate { On 2009/05/27 21:55:01, michaeln wrote: ...
11 years, 7 months ago (2009-05-27 23:12:55 UTC) #16
michaeln
New snapshot uploaded
11 years, 7 months ago (2009-05-27 23:48:50 UTC) #17
dglazkov
I think you're ready! :)
11 years, 6 months ago (2009-05-29 17:04:36 UTC) #18
michaeln
On 2009/05/29 17:04:36, Dimitri Glazkov wrote: > I think you're ready! :) Yes, I put ...
11 years, 6 months ago (2009-05-29 19:07:29 UTC) #19
andreip
http://codereview.chromium.org/113554/diff/340/1295 File loader/appcache2/DOMApplicationCache.cpp (right): http://codereview.chromium.org/113554/diff/340/1295#newcode219 Line 219: RefPtr<EventListener>* DOMApplicationCache::getAttributeEventListenerStorage(const AtomicString& eventType) I replicated this change ...
11 years, 6 months ago (2009-06-08 16:11:16 UTC) #20
dglazkov
I am starting to really worry about the size of this patch. Is there any ...
11 years, 6 months ago (2009-06-16 16:41:41 UTC) #21
jorlow
On 2009/06/16 16:41:41, Dimitri Glazkov wrote: > I am starting to really worry about the ...
11 years, 6 months ago (2009-06-16 22:26:00 UTC) #22
michaeln
Thanx for the comments... The first increment (ApplicationCacheFrontent) was a more manageable size. The deltas ...
11 years, 6 months ago (2009-06-16 22:58:05 UTC) #23
dglazkov
I understand how this will work. And I believe you're on track there. I do ...
11 years, 6 months ago (2009-06-17 16:20:18 UTC) #24
michaeln
11 years, 6 months ago (2009-06-23 19:21:31 UTC) #25
updated the snapshot... most notable change was class renaming

SimpleApplicationCacheBridge --> ApplicationCacheBridgeImpl

http://codereview.chromium.org/113554/diff/5071/5102
File loader/appcache2/ApplicationCacheBridge.h (right):

http://codereview.chromium.org/113554/diff/5071/5102#newcode62
Line 62: virtual void initializeContextAsync(const
GlobalApplicationCacheContextID &contextID,
On 2009/06/17 16:20:18, Dimitri Glazkov wrote:
> & with the type, no need to specify name unless it's needed for clarity. So
just
> (const GlobalApp...ID&);

I see, yes you're right.

I'm leaving this for now as I think an incremental step i'll have to take will
be to not have "global" ids at all. So I'll be revisiting this...

http://codereview.chromium.org/113554/diff/5071/5102#newcode103
Line 103: // This interface is used to by the bridge to call the frontend.
On 2009/06/17 16:20:18, Dimitri Glazkov wrote:
> Client decl. usually goes on top.

Done.

http://codereview.chromium.org/113554/diff/5071/5103
File loader/appcache2/ApplicationCacheBridgeClientImpl.h (right):

http://codereview.chromium.org/113554/diff/5071/5103#newcode38
Line 38: 
On 2009/06/17 16:20:18, Dimitri Glazkov wrote:
> <wtf/Vector.h>

Done.

http://codereview.chromium.org/113554/diff/5071/5087
File loader/appcache2/ApplicationCacheCommon.h (right):

http://codereview.chromium.org/113554/diff/5071/5087#newcode70
Line 70: static GlobalApplicationCacheContextID none() { return
GlobalApplicationCacheContextID(); }
i'm deferring doing anything here as i think i'll backing out "global" ids for
initial checkins... so since i'll be revisting this, not touching it now

http://codereview.chromium.org/113554/diff/5071/5098
File loader/appcache2/SimpleApplicationCacheBridge.cpp (right):

http://codereview.chromium.org/113554/diff/5071/5098#newcode42
Line 42: // static
this is a practice that i like (otherwise how can you tell by looking at the
method definition)...

i'll search and destroy these throughout later

http://codereview.chromium.org/113554/diff/5071/5098#newcode54
Line 54: SimpleApplicationCacheBridge* intance =
static_cast<SimpleApplicationCacheBridge*>(m_instance);
On 2009/06/17 16:20:18, Dimitri Glazkov wrote:
> instance

Done.

Powered by Google App Engine
This is Rietveld 408576698