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

Side by Side Diff: Source/core/html/parser/HTMLResourcePreloader.h

Issue 387863002: Oilpan: Prepare to move HTMLResourcePreloader to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 KURL m_baseURL; 76 KURL m_baseURL;
77 String m_charset; 77 String m_charset;
78 Resource::Type m_resourceType; 78 Resource::Type m_resourceType;
79 bool m_isCORSEnabled; 79 bool m_isCORSEnabled;
80 StoredCredentials m_allowCredentials; 80 StoredCredentials m_allowCredentials;
81 double m_discoveryTime; 81 double m_discoveryTime;
82 }; 82 };
83 83
84 typedef Vector<OwnPtr<PreloadRequest> > PreloadRequestStream; 84 typedef Vector<OwnPtr<PreloadRequest> > PreloadRequestStream;
85 85
86 class HTMLResourcePreloader { 86 class HTMLResourcePreloader FINAL : public NoBaseWillBeGarbageCollected<HTMLReso urcePreloader> {
87 WTF_MAKE_NONCOPYABLE(HTMLResourcePreloader); WTF_MAKE_FAST_ALLOCATED; 87 WTF_MAKE_NONCOPYABLE(HTMLResourcePreloader); WTF_MAKE_FAST_ALLOCATED_WILL_BE _REMOVED;
88 public: 88 public:
89 explicit HTMLResourcePreloader(Document* document) 89 static PassOwnPtrWillBeRawPtr<HTMLResourcePreloader> create(Document&);
90 : m_document(document) 90 void trace(Visitor*);
91 {
92 }
93 91
94 void takeAndPreload(PreloadRequestStream&); 92 void takeAndPreload(PreloadRequestStream&);
95 void preload(PassOwnPtr<PreloadRequest>); 93 void preload(PassOwnPtr<PreloadRequest>);
96 94
97 private: 95 private:
98 Document* m_document; 96 explicit HTMLResourcePreloader(Document&);
97
98 RawPtrWillBeMember<Document> m_document;
99 }; 99 };
100 100
101 } 101 }
102 102
103 #endif 103 #endif
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLResourcePreloader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698