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

Side by Side Diff: Source/core/loader/cache/FetchRequest.h

Issue 22573005: [HTML Imports] Implement "load" and "error" events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/LinkResource.h ('k') | no next file » | 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) 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 29 matching lines...) Expand all
40 public: 40 public:
41 enum DeferOption { NoDefer, DeferredByClient }; 41 enum DeferOption { NoDefer, DeferredByClient };
42 42
43 explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator, const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUn resolved); 43 explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator, const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUn resolved);
44 FetchRequest(const ResourceRequest&, const AtomicString& initiator, const Re sourceLoaderOptions&); 44 FetchRequest(const ResourceRequest&, const AtomicString& initiator, const Re sourceLoaderOptions&);
45 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&); 45 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&);
46 ~FetchRequest(); 46 ~FetchRequest();
47 47
48 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } 48 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; }
49 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } 49 const ResourceRequest& resourceRequest() const { return m_resourceRequest; }
50 const KURL& url() const { return m_resourceRequest.url(); }
50 const String& charset() const { return m_charset; } 51 const String& charset() const { return m_charset; }
51 void setCharset(const String& charset) { m_charset = charset; } 52 void setCharset(const String& charset) { m_charset = charset; }
52 const ResourceLoaderOptions& options() const { return m_options; } 53 const ResourceLoaderOptions& options() const { return m_options; }
53 void setOptions(const ResourceLoaderOptions& options) { m_options = options; } 54 void setOptions(const ResourceLoaderOptions& options) { m_options = options; }
54 ResourceLoadPriority priority() const { return m_priority; } 55 ResourceLoadPriority priority() const { return m_priority; }
55 bool forPreload() const { return m_forPreload; } 56 bool forPreload() const { return m_forPreload; }
56 void setForPreload(bool forPreload) { m_forPreload = forPreload; } 57 void setForPreload(bool forPreload) { m_forPreload = forPreload; }
57 DeferOption defer() const { return m_defer; } 58 DeferOption defer() const { return m_defer; }
58 void setDefer(DeferOption defer) { m_defer = defer; } 59 void setDefer(DeferOption defer) { m_defer = defer; }
59 void setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolic yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; } 60 void setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolic yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; }
60 void setPotentiallyCrossOriginEnabled(SecurityOrigin*, StoredCredentials); 61 void setPotentiallyCrossOriginEnabled(SecurityOrigin*, StoredCredentials);
61 62
62 private: 63 private:
63 ResourceRequest m_resourceRequest; 64 ResourceRequest m_resourceRequest;
64 String m_charset; 65 String m_charset;
65 ResourceLoaderOptions m_options; 66 ResourceLoaderOptions m_options;
66 ResourceLoadPriority m_priority; 67 ResourceLoadPriority m_priority;
67 bool m_forPreload; 68 bool m_forPreload;
68 DeferOption m_defer; 69 DeferOption m_defer;
69 }; 70 };
70 71
71 } // namespace WebCore 72 } // namespace WebCore
72 73
73 #endif 74 #endif
OLDNEW
« no previous file with comments | « Source/core/html/LinkResource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698