| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 class PLATFORM_EXPORT ResourceRequest final { | 66 class PLATFORM_EXPORT ResourceRequest final { |
| 67 DISALLOW_NEW(); | 67 DISALLOW_NEW(); |
| 68 public: | 68 public: |
| 69 enum class RedirectStatus { FollowedRedirect, NoRedirect }; | 69 enum class RedirectStatus { FollowedRedirect, NoRedirect }; |
| 70 | 70 |
| 71 class ExtraData : public RefCounted<ExtraData> { | 71 class ExtraData : public RefCounted<ExtraData> { |
| 72 public: | 72 public: |
| 73 virtual ~ExtraData() { } | 73 virtual ~ExtraData() { } |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 ResourceRequest() | 76 ResourceRequest(); |
| 77 { | 77 ResourceRequest(const String& urlString); |
| 78 initialize(KURL()); | 78 ResourceRequest(const KURL&); |
| 79 } | |
| 80 | |
| 81 ResourceRequest(const String& urlString) | |
| 82 { | |
| 83 initialize(KURL(ParsedURLString, urlString)); | |
| 84 } | |
| 85 | |
| 86 ResourceRequest(const KURL& url) | |
| 87 { | |
| 88 initialize(url); | |
| 89 } | |
| 90 | |
| 91 explicit ResourceRequest(CrossThreadResourceRequestData*); | 79 explicit ResourceRequest(CrossThreadResourceRequestData*); |
| 80 ResourceRequest(const ResourceRequest&); |
| 81 ResourceRequest& operator=(const ResourceRequest&); |
| 92 | 82 |
| 93 // Gets a copy of the data suitable for passing to another thread. | 83 // Gets a copy of the data suitable for passing to another thread. |
| 94 std::unique_ptr<CrossThreadResourceRequestData> copyData() const; | 84 std::unique_ptr<CrossThreadResourceRequestData> copyData() const; |
| 95 | 85 |
| 96 bool isNull() const; | 86 bool isNull() const; |
| 97 bool isEmpty() const; | 87 bool isEmpty() const; |
| 98 | 88 |
| 99 const KURL& url() const; | 89 const KURL& url() const; |
| 100 void setURL(const KURL& url); | 90 void setURL(const KURL& url); |
| 101 | 91 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 bool m_checkForBrowserSideNavigation; | 323 bool m_checkForBrowserSideNavigation; |
| 334 double m_uiStartTime; | 324 double m_uiStartTime; |
| 335 bool m_isExternalRequest; | 325 bool m_isExternalRequest; |
| 336 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 326 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 337 ResourceRequest::RedirectStatus m_redirectStatus; | 327 ResourceRequest::RedirectStatus m_redirectStatus; |
| 338 }; | 328 }; |
| 339 | 329 |
| 340 } // namespace blink | 330 } // namespace blink |
| 341 | 331 |
| 342 #endif // ResourceRequest_h | 332 #endif // ResourceRequest_h |
| OLD | NEW |