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

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

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
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 21 matching lines...) Expand all
32 #include "core/html/imports/HTMLImportChild.h" 32 #include "core/html/imports/HTMLImportChild.h"
33 33
34 #include "core/dom/Document.h" 34 #include "core/dom/Document.h"
35 #include "core/dom/custom/CustomElement.h" 35 #include "core/dom/custom/CustomElement.h"
36 #include "core/dom/custom/CustomElementMicrotaskImportStep.h" 36 #include "core/dom/custom/CustomElementMicrotaskImportStep.h"
37 #include "core/html/imports/HTMLImportChildClient.h" 37 #include "core/html/imports/HTMLImportChildClient.h"
38 #include "core/html/imports/HTMLImportLoader.h" 38 #include "core/html/imports/HTMLImportLoader.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 HTMLImportChild::HTMLImportChild(Document& master, const KURL& url, bool sync) 42 HTMLImportChild::HTMLImportChild(Document& master, const KURL& url, SyncMode syn c)
43 : HTMLImport(sync) 43 : HTMLImport(sync)
44 , m_master(master) 44 , m_master(master)
45 , m_url(url) 45 , m_url(url)
46 , m_customElementMicrotaskStep(0) 46 , m_customElementMicrotaskStep(0)
47 , m_client(0) 47 , m_client(0)
48 { 48 {
49 m_master.guardRef(); 49 m_master.guardRef();
50 } 50 }
51 51
52 HTMLImportChild::~HTMLImportChild() 52 HTMLImportChild::~HTMLImportChild()
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 HTMLImport::showThis(); 248 HTMLImport::showThis();
249 fprintf(stderr, " loader=%p own=%s async=%s url=%s", 249 fprintf(stderr, " loader=%p own=%s async=%s url=%s",
250 m_loader.get(), 250 m_loader.get(),
251 hasLoader() && ownsLoader() ? "Y" : "N", 251 hasLoader() && ownsLoader() ? "Y" : "N",
252 isSync() ? "Y" : "N", 252 isSync() ? "Y" : "N",
253 url().string().utf8().data()); 253 url().string().utf8().data());
254 } 254 }
255 #endif 255 #endif
256 256
257 } // namespace WebCore 257 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/imports/HTMLImportsController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698