OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 2011, 2012 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 m_exposedHeaders.remove("set-cookie"); | 105 m_exposedHeaders.remove("set-cookie"); |
106 m_exposedHeaders.remove("set-cookie2"); | 106 m_exposedHeaders.remove("set-cookie2"); |
107 // Block Access-Control-Expose-Header itself. It could be exposed later. | 107 // Block Access-Control-Expose-Header itself. It could be exposed later. |
108 m_blockedHeaders.add("access-control-expose-headers"); | 108 m_blockedHeaders.add("access-control-expose-headers"); |
109 m_blockedHeaders.removeAll(m_exposedHeaders); | 109 m_blockedHeaders.removeAll(m_exposedHeaders); |
110 } | 110 } |
111 | 111 |
112 return m_blockedHeaders; | 112 return m_blockedHeaders; |
113 } | 113 } |
114 | 114 |
115 } | 115 } // namespace |
116 | 116 |
117 // This class bridges the interface differences between WebCore and WebKit loade
r clients. | 117 // This class bridges the interface differences between WebCore and WebKit loade
r clients. |
118 // It forwards its ThreadableLoaderClient notifications to a WebURLLoaderClient. | 118 // It forwards its ThreadableLoaderClient notifications to a WebURLLoaderClient. |
119 class AssociatedURLLoader::ClientAdapter final : public DocumentThreadableLoader
Client { | 119 class AssociatedURLLoader::ClientAdapter final : public DocumentThreadableLoader
Client { |
120 WTF_MAKE_NONCOPYABLE(ClientAdapter); | 120 WTF_MAKE_NONCOPYABLE(ClientAdapter); |
121 public: | 121 public: |
122 static PassOwnPtr<ClientAdapter> create(AssociatedURLLoader*, WebURLLoaderCl
ient*, const WebURLLoaderOptions&); | 122 static PassOwnPtr<ClientAdapter> create(AssociatedURLLoader*, WebURLLoaderCl
ient*, const WebURLLoaderOptions&); |
123 | 123 |
124 // ThreadableLoaderClient | 124 // ThreadableLoaderClient |
125 void didSendData(unsigned long long /*bytesSent*/, unsigned long long /*tota
lBytesToBeSent*/) override; | 125 void didSendData(unsigned long long /*bytesSent*/, unsigned long long /*tota
lBytesToBeSent*/) override; |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 if (m_loader) | 381 if (m_loader) |
382 m_loader->setDefersLoading(defersLoading); | 382 m_loader->setDefersLoading(defersLoading); |
383 } | 383 } |
384 | 384 |
385 void AssociatedURLLoader::setLoadingTaskRunner(blink::WebTaskRunner*) | 385 void AssociatedURLLoader::setLoadingTaskRunner(blink::WebTaskRunner*) |
386 { | 386 { |
387 // TODO(alexclarke): Maybe support this one day if it proves worthwhile. | 387 // TODO(alexclarke): Maybe support this one day if it proves worthwhile. |
388 } | 388 } |
389 | 389 |
390 } // namespace blink | 390 } // namespace blink |
OLD | NEW |