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

Unified Diff: Source/core/html/imports/HTMLImportChild.cpp

Issue 211663002: Refactoring: Get rid of HTMLImportLoaerClient (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed typo and bad grammar 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/imports/HTMLImportLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImportChild.cpp
diff --git a/Source/core/html/imports/HTMLImportChild.cpp b/Source/core/html/imports/HTMLImportChild.cpp
index a81264436472b717951ae7bbc49f06db539234f0..24d1a9ccb0064f98df08a9d363b2df597c0484ab 100644
--- a/Source/core/html/imports/HTMLImportChild.cpp
+++ b/Source/core/html/imports/HTMLImportChild.cpp
@@ -125,7 +125,7 @@ void HTMLImportChild::importDestroyed()
if (parent())
parent()->removeChild(this);
if (m_loader) {
- m_loader->removeClient(this);
+ m_loader->removeImport(this);
m_loader.clear();
}
}
@@ -187,8 +187,8 @@ void HTMLImportChild::createLoader()
{
ASSERT(!state().shouldBlockDocumentCreation());
ASSERT(!m_loader);
- m_loader = HTMLImportLoader::create(this);
- m_loader->addClient(this);
+ m_loader = HTMLImportLoader::create();
+ m_loader->addImport(this);
m_loader->startLoading(resource());
}
@@ -196,7 +196,7 @@ void HTMLImportChild::shareLoader(HTMLImportChild* loader)
{
ASSERT(!m_loader);
m_loader = loader->m_loader;
- m_loader->addClient(this);
+ m_loader->addImport(this);
stateWillChange();
}
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/imports/HTMLImportLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698