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

Side by Side Diff: third_party/WebKit/Source/platform/Prerender.h

Issue 2308063002: Rename blink::Prerender::referrer() to getReferrer(). (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/exported/WebPrerender.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 DECLARE_TRACE(); 62 DECLARE_TRACE();
63 63
64 void dispose(); 64 void dispose();
65 65
66 void add(); 66 void add();
67 void cancel(); 67 void cancel();
68 void abandon(); 68 void abandon();
69 69
70 const KURL& url() const { return m_url; } 70 const KURL& url() const { return m_url; }
71 unsigned relTypes() const { return m_relTypes; } 71 unsigned relTypes() const { return m_relTypes; }
72 const String& referrer() const { return m_referrer.referrer; } 72 const String& getReferrer() const { return m_referrer.referrer; }
73 ReferrerPolicy getReferrerPolicy() const { return m_referrer.referrerPolicy; } 73 ReferrerPolicy getReferrerPolicy() const { return m_referrer.referrerPolicy; }
74 74
75 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; } 75 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; }
76 ExtraData* getExtraData() { return m_extraData.get(); } 76 ExtraData* getExtraData() { return m_extraData.get(); }
77 77
78 void didStartPrerender(); 78 void didStartPrerender();
79 void didStopPrerender(); 79 void didStopPrerender();
80 void didSendLoadForPrerender(); 80 void didSendLoadForPrerender();
81 void didSendDOMContentLoadedForPrerender(); 81 void didSendDOMContentLoadedForPrerender();
82 82
83 private: 83 private:
84 Prerender(PrerenderClient*, const KURL&, unsigned relTypes, const Referrer&) ; 84 Prerender(PrerenderClient*, const KURL&, unsigned relTypes, const Referrer&) ;
85 85
86 // The embedder's prerendering support holds on to pending Prerender objects ; 86 // The embedder's prerendering support holds on to pending Prerender objects ;
87 // those references should not keep the PrerenderClient alive -- if the clie nt 87 // those references should not keep the PrerenderClient alive -- if the clie nt
88 // becomes otherwise unreachable it should be GCed (at which point it will 88 // becomes otherwise unreachable it should be GCed (at which point it will
89 // abandon this Prerender object.) 89 // abandon this Prerender object.)
90 WeakMember<PrerenderClient> m_client; 90 WeakMember<PrerenderClient> m_client;
91 91
92 const KURL m_url; 92 const KURL m_url;
93 const unsigned m_relTypes; 93 const unsigned m_relTypes;
94 const Referrer m_referrer; 94 const Referrer m_referrer;
95 95
96 RefPtr<ExtraData> m_extraData; 96 RefPtr<ExtraData> m_extraData;
97 }; 97 };
98 98
99 } // namespace blink 99 } // namespace blink
100 100
101 #endif // Prerender_h 101 #endif // Prerender_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/exported/WebPrerender.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698