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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 months 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 namespace blink { 44 namespace blink {
45 45
46 namespace { 46 namespace {
47 47
48 class ExtraDataContainer : public ResourceResponse::ExtraData { 48 class ExtraDataContainer : public ResourceResponse::ExtraData {
49 public: 49 public:
50 static PassRefPtr<ExtraDataContainer> create(WebURLResponse::ExtraData* extr aData) { return adoptRef(new ExtraDataContainer(extraData)); } 50 static PassRefPtr<ExtraDataContainer> create(WebURLResponse::ExtraData* extr aData) { return adoptRef(new ExtraDataContainer(extraData)); }
51 51
52 ~ExtraDataContainer() override {} 52 ~ExtraDataContainer() override {}
53 53
54 WebURLResponse::ExtraData* extraData() const { return m_extraData.get(); } 54 WebURLResponse::ExtraData* getExtraData() const { return m_extraData.get(); }
55 55
56 private: 56 private:
57 explicit ExtraDataContainer(WebURLResponse::ExtraData* extraData) 57 explicit ExtraDataContainer(WebURLResponse::ExtraData* extraData)
58 : m_extraData(adoptPtr(extraData)) 58 : m_extraData(adoptPtr(extraData))
59 { 59 {
60 } 60 }
61 61
62 OwnPtr<WebURLResponse::ExtraData> m_extraData; 62 OwnPtr<WebURLResponse::ExtraData> m_extraData;
63 }; 63 };
64 64
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 unsigned short WebURLResponse::remotePort() const 473 unsigned short WebURLResponse::remotePort() const
474 { 474 {
475 return m_private->m_resourceResponse->remotePort(); 475 return m_private->m_resourceResponse->remotePort();
476 } 476 }
477 477
478 void WebURLResponse::setRemotePort(unsigned short remotePort) 478 void WebURLResponse::setRemotePort(unsigned short remotePort)
479 { 479 {
480 m_private->m_resourceResponse->setRemotePort(remotePort); 480 m_private->m_resourceResponse->setRemotePort(remotePort);
481 } 481 }
482 482
483 WebURLResponse::ExtraData* WebURLResponse::extraData() const 483 WebURLResponse::ExtraData* WebURLResponse::getExtraData() const
484 { 484 {
485 RefPtr<ResourceResponse::ExtraData> data = m_private->m_resourceResponse->ex traData(); 485 RefPtr<ResourceResponse::ExtraData> data = m_private->m_resourceResponse->ge tExtraData();
486 if (!data) 486 if (!data)
487 return 0; 487 return 0;
488 return static_cast<ExtraDataContainer*>(data.get())->extraData(); 488 return static_cast<ExtraDataContainer*>(data.get())->getExtraData();
489 } 489 }
490 490
491 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) 491 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData)
492 { 492 {
493 m_private->m_resourceResponse->setExtraData(ExtraDataContainer::create(extra Data)); 493 m_private->m_resourceResponse->setExtraData(ExtraDataContainer::create(extra Data));
494 } 494 }
495 495
496 void WebURLResponse::assign(WebURLResponsePrivate* p) 496 void WebURLResponse::assign(WebURLResponsePrivate* p)
497 { 497 {
498 // Subclasses may call this directly so a self-assignment check is needed 498 // Subclasses may call this directly so a self-assignment check is needed
499 // here as well as in the public assign method. 499 // here as well as in the public assign method.
500 if (m_private == p) 500 if (m_private == p)
501 return; 501 return;
502 if (m_private) 502 if (m_private)
503 m_private->dispose(); 503 m_private->dispose();
504 m_private = p; 504 m_private = p;
505 } 505 }
506 506
507 } // namespace blink 507 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebURLRequest.cpp ('k') | third_party/WebKit/Source/platform/fonts/Font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698