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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLResponse.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 WebURLResponse::ExtraData* extraData) { 53 WebURLResponse::ExtraData* extraData) {
54 return adoptRef(new ExtraDataContainer(extraData)); 54 return adoptRef(new ExtraDataContainer(extraData));
55 } 55 }
56 56
57 ~ExtraDataContainer() override {} 57 ~ExtraDataContainer() override {}
58 58
59 WebURLResponse::ExtraData* getExtraData() const { return m_extraData.get(); } 59 WebURLResponse::ExtraData* getExtraData() const { return m_extraData.get(); }
60 60
61 private: 61 private:
62 explicit ExtraDataContainer(WebURLResponse::ExtraData* extraData) 62 explicit ExtraDataContainer(WebURLResponse::ExtraData* extraData)
63 : m_extraData(wrapUnique(extraData)) {} 63 : m_extraData(WTF::wrapUnique(extraData)) {}
64 64
65 std::unique_ptr<WebURLResponse::ExtraData> m_extraData; 65 std::unique_ptr<WebURLResponse::ExtraData> m_extraData;
66 }; 66 };
67 67
68 } // namespace 68 } // namespace
69 69
70 // The purpose of this struct is to permit allocating a ResourceResponse on the 70 // The purpose of this struct is to permit allocating a ResourceResponse on the
71 // heap, which is otherwise disallowed by the DISALLOW_NEW_EXCEPT_PLACEMENT_NEW 71 // heap, which is otherwise disallowed by the DISALLOW_NEW_EXCEPT_PLACEMENT_NEW
72 // annotation on ResourceResponse. 72 // annotation on ResourceResponse.
73 struct WebURLResponse::ResourceResponseContainer { 73 struct WebURLResponse::ResourceResponseContainer {
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); 465 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData));
466 } 466 }
467 467
468 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { 468 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) {
469 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); 469 m_resourceResponse->appendRedirectResponse(response.toResourceResponse());
470 } 470 }
471 471
472 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} 472 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {}
473 473
474 } // namespace blink 474 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698