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

Side by Side Diff: Source/core/html/imports/HTMLImportChild.h

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments. Created 6 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 | Annotate | Revision Log
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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef HTMLImportChild_h 31 #ifndef HTMLImportChild_h
32 #define HTMLImportChild_h 32 #define HTMLImportChild_h
33 33
34 #include "core/fetch/RawResource.h" 34 #include "core/fetch/RawResource.h"
35 #include "core/fetch/ResourceOwner.h" 35 #include "core/fetch/ResourceOwner.h"
36 #include "core/html/imports/HTMLImport.h" 36 #include "core/html/imports/HTMLImport.h"
37 #include "heap/Handle.h"
wibling-chromium 2014/04/24 14:43:06 NIT: Please change to "platform/heap/Handle.h" sin
Mads Ager (chromium) 2014/04/25 10:58:25 Will merge and fix. Thanks.
37 #include "platform/weborigin/KURL.h" 38 #include "platform/weborigin/KURL.h"
38 #include "wtf/Vector.h" 39 #include "wtf/Vector.h"
39 40
40 namespace WebCore { 41 namespace WebCore {
41 42
42 class CustomElementMicrotaskImportStep; 43 class CustomElementMicrotaskImportStep;
43 class HTMLImportLoader; 44 class HTMLImportLoader;
44 class HTMLImportChildClient; 45 class HTMLImportChildClient;
45 class HTMLLinkElement; 46 class HTMLLinkElement;
46 47
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // HTMLImportChild owns the resource so that the contents of prefetched Reso urce doesn't go away. 90 // HTMLImportChild owns the resource so that the contents of prefetched Reso urce doesn't go away.
90 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE { } 91 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE { }
91 virtual void dataReceived(Resource*, const char*, int) OVERRIDE { } 92 virtual void dataReceived(Resource*, const char*, int) OVERRIDE { }
92 virtual void notifyFinished(Resource*) OVERRIDE { } 93 virtual void notifyFinished(Resource*) OVERRIDE { }
93 94
94 void didFinish(); 95 void didFinish();
95 void createLoader(); 96 void createLoader();
96 void shareLoader(HTMLImportChild*); 97 void shareLoader(HTMLImportChild*);
97 void ensureLoader(); 98 void ensureLoader();
98 99
100 #if ENABLE(OILPAN)
101 Persistent<Document> m_master;
102 #else
99 Document& m_master; 103 Document& m_master;
104 #endif
100 KURL m_url; 105 KURL m_url;
101 CustomElementMicrotaskImportStep* m_customElementMicrotaskStep; 106 CustomElementMicrotaskImportStep* m_customElementMicrotaskStep;
102 HTMLImportLoader* m_loader; 107 HTMLImportLoader* m_loader;
103 HTMLImportChildClient* m_client; 108 HTMLImportChildClient* m_client;
104 }; 109 };
105 110
106 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) 111 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import)
107 { 112 {
108 ASSERT(!import || import->isChild()); 113 ASSERT(!import || import->isChild());
109 return static_cast<HTMLImportChild*>(import); 114 return static_cast<HTMLImportChild*>(import);
110 } 115 }
111 116
112 } // namespace WebCore 117 } // namespace WebCore
113 118
114 #endif // HTMLImportChild_h 119 #endif // HTMLImportChild_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698