| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // until all of its children are loaded. | 87 // until all of its children are loaded. |
| 88 // Note that dynamically added import won't block the parser. | 88 // Note that dynamically added import won't block the parser. |
| 89 // | 89 // |
| 90 // - An import under loading also blocks imported documents that follow from bei
ng created. | 90 // - An import under loading also blocks imported documents that follow from bei
ng created. |
| 91 // This is because an import can include another import that has same URLs of
following ones. | 91 // This is because an import can include another import that has same URLs of
following ones. |
| 92 // In such case, the preceding import should be loaded and following ones shou
ld be de-duped. | 92 // In such case, the preceding import should be loaded and following ones shou
ld be de-duped. |
| 93 // | 93 // |
| 94 | 94 |
| 95 // The superclass of HTMLImportTreeRoot and HTMLImportChild | 95 // The superclass of HTMLImportTreeRoot and HTMLImportChild |
| 96 // This represents the import tree data structure. | 96 // This represents the import tree data structure. |
| 97 class HTMLImport : public DummyBase<HTMLImport>, public TreeNode<HTMLImport> { | 97 class HTMLImport : public TreeNode<HTMLImport> { |
| 98 public: | 98 public: |
| 99 enum SyncMode { | 99 enum SyncMode { |
| 100 Sync = 0, | 100 Sync = 0, |
| 101 Async = 1 | 101 Async = 1 |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 virtual ~HTMLImport() { } | 104 virtual ~HTMLImport() { } |
| 105 | 105 |
| 106 // FIXME: Consider returning HTMLImportTreeRoot. | 106 // FIXME: Consider returning HTMLImportTreeRoot. |
| 107 HTMLImport* root(); | 107 HTMLImport* root(); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 private: | 139 private: |
| 140 HTMLImportState m_state; | 140 HTMLImportState m_state; |
| 141 unsigned m_sync : 1; | 141 unsigned m_sync : 1; |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace blink | 144 } // namespace blink |
| 145 | 145 |
| 146 #endif // HTMLImport_h | 146 #endif // HTMLImport_h |
| OLD | NEW |