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

Side by Side Diff: Source/core/fetch/FetchRequest.h

Issue 344883006: Give the RequestFetcher access to cross-origin URLs when allowed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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) 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 21 matching lines...) Expand all
32 #include "platform/network/ResourceLoadPriority.h" 32 #include "platform/network/ResourceLoadPriority.h"
33 #include "platform/network/ResourceRequest.h" 33 #include "platform/network/ResourceRequest.h"
34 #include "wtf/text/AtomicString.h" 34 #include "wtf/text/AtomicString.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 class SecurityOrigin; 37 class SecurityOrigin;
38 38
39 class FetchRequest { 39 class FetchRequest {
40 public: 40 public:
41 enum DeferOption { NoDefer, DeferredByClient }; 41 enum DeferOption { NoDefer, DeferredByClient };
42 enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameO rigin }; 42 enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameO rigin, NoOriginRestriction };
43 43
44 explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator, const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUn resolved); 44 explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator, const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUn resolved);
45 FetchRequest(const ResourceRequest&, const AtomicString& initiator, const Re sourceLoaderOptions&); 45 FetchRequest(const ResourceRequest&, const AtomicString& initiator, const Re sourceLoaderOptions&);
46 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&); 46 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&);
47 ~FetchRequest(); 47 ~FetchRequest();
48 48
49 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } 49 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; }
50 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } 50 const ResourceRequest& resourceRequest() const { return m_resourceRequest; }
51 const KURL& url() const { return m_resourceRequest.url(); } 51 const KURL& url() const { return m_resourceRequest.url(); }
52 const String& charset() const { return m_charset; } 52 const String& charset() const { return m_charset; }
(...skipping 18 matching lines...) Expand all
71 ResourceLoaderOptions m_options; 71 ResourceLoaderOptions m_options;
72 ResourceLoadPriority m_priority; 72 ResourceLoadPriority m_priority;
73 bool m_forPreload; 73 bool m_forPreload;
74 DeferOption m_defer; 74 DeferOption m_defer;
75 OriginRestriction m_originRestriction; 75 OriginRestriction m_originRestriction;
76 }; 76 };
77 77
78 } // namespace WebCore 78 } // namespace WebCore
79 79
80 #endif 80 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698