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

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

Issue 457413002: Defer late and async scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Lower priorities for late/async scripts Created 6 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
« no previous file with comments | « Source/core/dom/ScriptLoader.cpp ('k') | Source/core/fetch/FetchRequest.cpp » ('j') | 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; }
53 void setCharset(const String& charset) { m_charset = charset; } 53 void setCharset(const String& charset) { m_charset = charset; }
54 const ResourceLoaderOptions& options() const { return m_options; } 54 const ResourceLoaderOptions& options() const { return m_options; }
55 void setOptions(const ResourceLoaderOptions& options) { m_options = options; } 55 void setOptions(const ResourceLoaderOptions& options) { m_options = options; }
56 ResourceLoadPriority priority() const { return m_priority; } 56 ResourceLoadPriority priority() const { return m_priority; }
57 bool forPreload() const { return m_forPreload; } 57 bool forPreload() const { return m_forPreload; }
58 void setForPreload(bool forPreload) { m_forPreload = forPreload; } 58 void setForPreload(bool forPreload) { m_forPreload = forPreload; }
59 bool isBeforeBody() const { return m_isBeforeBody; }
60 void setIsBeforeBody(bool isBeforeBody) { m_isBeforeBody = isBeforeBody; }
61 bool execAsync() const { return m_execAsync; }
62 void setExecAsync(bool execAsync) { m_execAsync = execAsync; }
59 DeferOption defer() const { return m_defer; } 63 DeferOption defer() const { return m_defer; }
60 void setDefer(DeferOption defer) { m_defer = defer; } 64 void setDefer(DeferOption defer) { m_defer = defer; }
61 void setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolic yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; } 65 void setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolic yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; }
62 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials, Credent ialRequest); 66 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials, Credent ialRequest);
63 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials); 67 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials);
64 void setCrossOriginAccessControl(SecurityOrigin*, const AtomicString& crossO riginMode); 68 void setCrossOriginAccessControl(SecurityOrigin*, const AtomicString& crossO riginMode);
65 OriginRestriction originRestriction() const { return m_originRestriction; } 69 OriginRestriction originRestriction() const { return m_originRestriction; }
66 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti on = restriction; } 70 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti on = restriction; }
67 71
68 private: 72 private:
69 ResourceRequest m_resourceRequest; 73 ResourceRequest m_resourceRequest;
70 String m_charset; 74 String m_charset;
71 ResourceLoaderOptions m_options; 75 ResourceLoaderOptions m_options;
72 ResourceLoadPriority m_priority; 76 ResourceLoadPriority m_priority;
73 bool m_forPreload; 77 bool m_forPreload;
78 bool m_isBeforeBody;
79 bool m_execAsync;
74 DeferOption m_defer; 80 DeferOption m_defer;
75 OriginRestriction m_originRestriction; 81 OriginRestriction m_originRestriction;
76 }; 82 };
77 83
78 } // namespace blink 84 } // namespace blink
79 85
80 #endif 86 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptLoader.cpp ('k') | Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698