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

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

Issue 211363004: [Refactring] Turn HTMLImport::m_sync from bool to an enum. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed the default parameter Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/imports/HTMLImport.h ('k') | Source/core/html/imports/HTMLImportChild.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // An import tree node subclas to encapsulate imported document 49 // An import tree node subclas to encapsulate imported document
50 // lifecycle. This class is owned by LinkStyle. The actual loading 50 // lifecycle. This class is owned by LinkStyle. The actual loading
51 // is done by HTMLImportLoader, which can be shared among multiple 51 // is done by HTMLImportLoader, which can be shared among multiple
52 // HTMLImportChild of same link URL. 52 // HTMLImportChild of same link URL.
53 // 53 //
54 // HTMLImportChild implements ResourceClient through ResourceOwner 54 // HTMLImportChild implements ResourceClient through ResourceOwner
55 // so that it can speculatively request linked resources while it is unblocked. 55 // so that it can speculatively request linked resources while it is unblocked.
56 // 56 //
57 class HTMLImportChild FINAL : public HTMLImport, public HTMLImportLoaderClient, public ResourceOwner<RawResource> { 57 class HTMLImportChild FINAL : public HTMLImport, public HTMLImportLoaderClient, public ResourceOwner<RawResource> {
58 public: 58 public:
59 HTMLImportChild(Document&, const KURL&, bool sync); 59 HTMLImportChild(Document&, const KURL&, SyncMode);
60 virtual ~HTMLImportChild(); 60 virtual ~HTMLImportChild();
61 61
62 HTMLLinkElement* link() const; 62 HTMLLinkElement* link() const;
63 Document* importedDocument() const; 63 Document* importedDocument() const;
64 const KURL& url() const { return m_url; } 64 const KURL& url() const { return m_url; }
65 65
66 void wasAlreadyLoaded(); 66 void wasAlreadyLoaded();
67 void startLoading(const ResourcePtr<RawResource>&); 67 void startLoading(const ResourcePtr<RawResource>&);
68 void importDestroyed(); 68 void importDestroyed();
69 69
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) 113 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import)
114 { 114 {
115 ASSERT(!import || import->isChild()); 115 ASSERT(!import || import->isChild());
116 return static_cast<HTMLImportChild*>(import); 116 return static_cast<HTMLImportChild*>(import);
117 } 117 }
118 118
119 } // namespace WebCore 119 } // namespace WebCore
120 120
121 #endif // HTMLImportChild_h 121 #endif // HTMLImportChild_h
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImport.h ('k') | Source/core/html/imports/HTMLImportChild.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698