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

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: 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"
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // HTMLImportChild owns the resource so that the contents of prefetched Reso urce doesn't go away. 92 // HTMLImportChild owns the resource so that the contents of prefetched Reso urce doesn't go away.
92 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE { } 93 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE { }
93 virtual void dataReceived(Resource*, const char*, int) OVERRIDE { } 94 virtual void dataReceived(Resource*, const char*, int) OVERRIDE { }
94 virtual void notifyFinished(Resource*) OVERRIDE { } 95 virtual void notifyFinished(Resource*) OVERRIDE { }
95 96
96 void didFinish(); 97 void didFinish();
97 void createLoader(); 98 void createLoader();
98 void shareLoader(HTMLImportChild*); 99 void shareLoader(HTMLImportChild*);
99 void ensureLoader(); 100 void ensureLoader();
100 101
102 #if ENABLE(OILPAN)
103 Persistent<Document> m_master;
104 #else
101 Document& m_master; 105 Document& m_master;
106 #endif
102 KURL m_url; 107 KURL m_url;
103 CustomElementMicrotaskImportStep* m_customElementMicrotaskStep; 108 CustomElementMicrotaskImportStep* m_customElementMicrotaskStep;
104 HTMLImportLoader* m_loader; 109 HTMLImportLoader* m_loader;
105 HTMLImportChildClient* m_client; 110 HTMLImportChildClient* m_client;
106 }; 111 };
107 112
108 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) 113 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import)
109 { 114 {
110 ASSERT(!import || import->isChild()); 115 ASSERT(!import || import->isChild());
111 return static_cast<HTMLImportChild*>(import); 116 return static_cast<HTMLImportChild*>(import);
112 } 117 }
113 118
114 } // namespace WebCore 119 } // namespace WebCore
115 120
116 #endif // HTMLImportChild_h 121 #endif // HTMLImportChild_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698