OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 WebNavigationType WebDataSourceImpl::navigationType() const { | 97 WebNavigationType WebDataSourceImpl::navigationType() const { |
98 return toWebNavigationType(DocumentLoader::getNavigationType()); | 98 return toWebNavigationType(DocumentLoader::getNavigationType()); |
99 } | 99 } |
100 | 100 |
101 WebDataSource::ExtraData* WebDataSourceImpl::getExtraData() const { | 101 WebDataSource::ExtraData* WebDataSourceImpl::getExtraData() const { |
102 return m_extraData.get(); | 102 return m_extraData.get(); |
103 } | 103 } |
104 | 104 |
105 void WebDataSourceImpl::setExtraData(ExtraData* extraData) { | 105 void WebDataSourceImpl::setExtraData(ExtraData* extraData) { |
106 // extraData can't be a std::unique_ptr because setExtraData is a WebKit API f
unction. | 106 // extraData can't be a std::unique_ptr because setExtraData is a WebKit API |
| 107 // function. |
107 m_extraData = wrapUnique(extraData); | 108 m_extraData = wrapUnique(extraData); |
108 } | 109 } |
109 | 110 |
110 void WebDataSourceImpl::setNavigationStartTime(double navigationStart) { | 111 void WebDataSourceImpl::setNavigationStartTime(double navigationStart) { |
111 timing().setNavigationStart(navigationStart); | 112 timing().setNavigationStart(navigationStart); |
112 } | 113 } |
113 | 114 |
114 WebNavigationType WebDataSourceImpl::toWebNavigationType(NavigationType type) { | 115 WebNavigationType WebDataSourceImpl::toWebNavigationType(NavigationType type) { |
115 switch (type) { | 116 switch (type) { |
116 case NavigationTypeLinkClicked: | 117 case NavigationTypeLinkClicked: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void WebDataSourceImpl::setSubresourceFilter( | 151 void WebDataSourceImpl::setSubresourceFilter( |
151 WebDocumentSubresourceFilter* subresourceFilter) { | 152 WebDocumentSubresourceFilter* subresourceFilter) { |
152 DocumentLoader::setSubresourceFilter(WTF::wrapUnique(subresourceFilter)); | 153 DocumentLoader::setSubresourceFilter(WTF::wrapUnique(subresourceFilter)); |
153 } | 154 } |
154 | 155 |
155 DEFINE_TRACE(WebDataSourceImpl) { | 156 DEFINE_TRACE(WebDataSourceImpl) { |
156 DocumentLoader::trace(visitor); | 157 DocumentLoader::trace(visitor); |
157 } | 158 } |
158 | 159 |
159 } // namespace blink | 160 } // namespace blink |
OLD | NEW |