OLD | NEW |
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 explicit HTMLImportsController(Document&); | 57 explicit HTMLImportsController(Document&); |
58 virtual ~HTMLImportsController(); | 58 virtual ~HTMLImportsController(); |
59 | 59 |
60 bool isMaster(const Document& document) const { return m_master == &document
; } | 60 bool isMaster(const Document& document) const { return m_master == &document
; } |
61 bool shouldBlockScriptExecution(const Document&) const; | 61 bool shouldBlockScriptExecution(const Document&) const; |
62 void wasDetachedFrom(const Document&); | 62 void wasDetachedFrom(const Document&); |
63 | 63 |
64 // HTMLImport | 64 // HTMLImport |
65 virtual Document* document() const OVERRIDE; | 65 virtual Document* document() const OVERRIDE; |
66 virtual bool isDone() const OVERRIDE; | 66 virtual bool isDone() const OVERRIDE; |
67 virtual bool hasLoader() const OVERRIDE; | |
68 virtual void stateWillChange() OVERRIDE; | 67 virtual void stateWillChange() OVERRIDE; |
69 virtual void stateDidChange() OVERRIDE; | 68 virtual void stateDidChange() OVERRIDE; |
70 | 69 |
71 HTMLImportChild* load(HTMLImport* parent, HTMLImportChildClient*, FetchReque
st); | 70 HTMLImportChild* load(HTMLImport* parent, HTMLImportChildClient*, FetchReque
st); |
72 void showSecurityErrorMessage(const String&); | 71 void showSecurityErrorMessage(const String&); |
73 | 72 |
74 SecurityOrigin* securityOrigin() const; | 73 SecurityOrigin* securityOrigin() const; |
75 ResourceFetcher* fetcher() const; | 74 ResourceFetcher* fetcher() const; |
76 LocalFrame* frame() const; | 75 LocalFrame* frame() const; |
77 Document* master() const { return m_master; } | 76 Document* master() const { return m_master; } |
(...skipping 24 matching lines...) Expand all Loading... |
102 | 101 |
103 typedef Vector<RefPtr<HTMLImportLoader> > LoaderList; | 102 typedef Vector<RefPtr<HTMLImportLoader> > LoaderList; |
104 LoaderList m_loaders; | 103 LoaderList m_loaders; |
105 }; | 104 }; |
106 | 105 |
107 DEFINE_TYPE_CASTS(HTMLImportsController, HTMLImport, import, import->isRoot(), i
mport.isRoot()); | 106 DEFINE_TYPE_CASTS(HTMLImportsController, HTMLImport, import, import->isRoot(), i
mport.isRoot()); |
108 | 107 |
109 } // namespace WebCore | 108 } // namespace WebCore |
110 | 109 |
111 #endif // HTMLImportsController_h | 110 #endif // HTMLImportsController_h |
OLD | NEW |