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

Side by Side Diff: Source/platform/exported/WebURLRequest.cpp

Issue 339593005: Set the target type when creating the request for main resource (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 { 94 {
95 assign(0); 95 assign(0);
96 } 96 }
97 97
98 void WebURLRequest::assign(const WebURLRequest& r) 98 void WebURLRequest::assign(const WebURLRequest& r)
99 { 99 {
100 if (&r != this) 100 if (&r != this)
101 assign(r.m_private ? new WebURLRequestPrivateImpl(r.m_private) : 0); 101 assign(r.m_private ? new WebURLRequestPrivateImpl(r.m_private) : 0);
102 } 102 }
103 103
104 void WebURLRequest::initializeForMainResource(bool isMainFrame)
105 {
106 m_private->m_resourceRequest->initializeForMainResource(isMainFrame);
107 }
108
104 bool WebURLRequest::isNull() const 109 bool WebURLRequest::isNull() const
105 { 110 {
106 return !m_private || m_private->m_resourceRequest->isNull(); 111 return !m_private || m_private->m_resourceRequest->isNull();
107 } 112 }
108 113
109 WebURL WebURLRequest::url() const 114 WebURL WebURLRequest::url() const
110 { 115 {
111 return m_private->m_resourceRequest->url(); 116 return m_private->m_resourceRequest->url();
112 } 117 }
113 118
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // Subclasses may call this directly so a self-assignment check is needed 345 // Subclasses may call this directly so a self-assignment check is needed
341 // here as well as in the public assign method. 346 // here as well as in the public assign method.
342 if (m_private == p) 347 if (m_private == p)
343 return; 348 return;
344 if (m_private) 349 if (m_private)
345 m_private->dispose(); 350 m_private->dispose();
346 m_private = p; 351 m_private = p;
347 } 352 }
348 353
349 } // namespace blink 354 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698