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

Side by Side Diff: Source/core/loader/PrerenderHandle.cpp

Issue 54053006: Move weborigin/ under platform/ so that it may someday call platform APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Stale refernence to weboriginexport in .gpyi Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/PrerenderHandle.h ('k') | Source/core/loader/SubstituteData.h » ('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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "core/loader/PrerenderHandle.h" 32 #include "core/loader/PrerenderHandle.h"
33 33
34 #include "core/dom/Document.h" 34 #include "core/dom/Document.h"
35 #include "core/frame/Frame.h" 35 #include "core/frame/Frame.h"
36 #include "core/loader/FrameLoader.h" 36 #include "core/loader/FrameLoader.h"
37 #include "core/loader/PrerendererClient.h" 37 #include "core/loader/PrerendererClient.h"
38 #include "platform/Prerender.h" 38 #include "platform/Prerender.h"
39 #include "weborigin/ReferrerPolicy.h" 39 #include "platform/weborigin/ReferrerPolicy.h"
40 #include "weborigin/SecurityPolicy.h" 40 #include "platform/weborigin/SecurityPolicy.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 // static 44 // static
45 PassOwnPtr<PrerenderHandle> PrerenderHandle::create(Document& document, Prerende rClient* client, const KURL& url) 45 PassOwnPtr<PrerenderHandle> PrerenderHandle::create(Document& document, Prerende rClient* client, const KURL& url)
46 { 46 {
47 // Prerenders are unlike requests in most ways (for instance, they pass down fragments, and they don't return data), 47 // Prerenders are unlike requests in most ways (for instance, they pass down fragments, and they don't return data),
48 // but they do have referrers. 48 // but they do have referrers.
49 const ReferrerPolicy referrerPolicy = document.referrerPolicy(); 49 const ReferrerPolicy referrerPolicy = document.referrerPolicy();
50 50
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 101
102 void PrerenderHandle::detach() 102 void PrerenderHandle::detach()
103 { 103 {
104 m_prerender->removeClient(); 104 m_prerender->removeClient();
105 m_prerender.clear(); 105 m_prerender.clear();
106 } 106 }
107 107
108 } 108 }
OLDNEW
« no previous file with comments | « Source/core/loader/PrerenderHandle.h ('k') | Source/core/loader/SubstituteData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698