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

Side by Side Diff: public/platform/WebURLRequest.h

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: Rebase 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 ~WebURLRequest() { reset(); } 96 ~WebURLRequest() { reset(); }
97 97
98 WebURLRequest() : m_private(0) { } 98 WebURLRequest() : m_private(0) { }
99 WebURLRequest(const WebURLRequest& r) : m_private(0) { assign(r); } 99 WebURLRequest(const WebURLRequest& r) : m_private(0) { assign(r); }
100 WebURLRequest& operator=(const WebURLRequest& r) 100 WebURLRequest& operator=(const WebURLRequest& r)
101 { 101 {
102 assign(r); 102 assign(r);
103 return *this; 103 return *this;
104 } 104 }
105 105
106 explicit WebURLRequest(const WebURL& url) : m_private(0) 106 explicit WebURLRequest(const WebURL&, bool isMainResource = false, bool isMa inFrame = true);
107 {
108 initialize();
109 setURL(url);
110 }
111 107
112 BLINK_PLATFORM_EXPORT void initialize(); 108 BLINK_PLATFORM_EXPORT void initialize();
113 BLINK_PLATFORM_EXPORT void reset(); 109 BLINK_PLATFORM_EXPORT void reset();
114 BLINK_PLATFORM_EXPORT void assign(const WebURLRequest&); 110 BLINK_PLATFORM_EXPORT void assign(const WebURLRequest&);
115 111
116 BLINK_PLATFORM_EXPORT bool isNull() const; 112 BLINK_PLATFORM_EXPORT bool isNull() const;
117 113
118 BLINK_PLATFORM_EXPORT WebURL url() const; 114 BLINK_PLATFORM_EXPORT WebURL url() const;
119 BLINK_PLATFORM_EXPORT void setURL(const WebURL&); 115 BLINK_PLATFORM_EXPORT void setURL(const WebURL&);
120 116
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 protected: 198 protected:
203 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); 199 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*);
204 200
205 private: 201 private:
206 WebURLRequestPrivate* m_private; 202 WebURLRequestPrivate* m_private;
207 }; 203 };
208 204
209 } // namespace blink 205 } // namespace blink
210 206
211 #endif 207 #endif
OLDNEW
« Source/platform/network/ResourceRequest.h ('K') | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698