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

Side by Side Diff: sky/engine/core/fetch/FetchRequest.h

Issue 710383002: Remove preload support from the MemoryCache (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 KURL& url() const { return m_resourceRequest.url(); }
51 const String& charset() const { return m_charset; } 51 const String& charset() const { return m_charset; }
52 void setCharset(const String& charset) { m_charset = charset; } 52 void setCharset(const String& charset) { m_charset = charset; }
53 const ResourceLoaderOptions& options() const { return m_options; } 53 const ResourceLoaderOptions& options() const { return m_options; }
54 void setOptions(const ResourceLoaderOptions& options) { m_options = options; } 54 void setOptions(const ResourceLoaderOptions& options) { m_options = options; }
55 ResourceLoadPriority priority() const { return m_priority; } 55 ResourceLoadPriority priority() const { return m_priority; }
56 bool forPreload() const { return m_forPreload; }
57 void setForPreload(bool forPreload) { m_forPreload = forPreload; }
58 DeferOption defer() const { return m_defer; } 56 DeferOption defer() const { return m_defer; }
59 void setDefer(DeferOption defer) { m_defer = defer; } 57 void setDefer(DeferOption defer) { m_defer = defer; }
60 OriginRestriction originRestriction() const { return m_originRestriction; } 58 OriginRestriction originRestriction() const { return m_originRestriction; }
61 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti on = restriction; } 59 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti on = restriction; }
62 60
63 private: 61 private:
64 ResourceRequest m_resourceRequest; 62 ResourceRequest m_resourceRequest;
65 String m_charset; 63 String m_charset;
66 ResourceLoaderOptions m_options; 64 ResourceLoaderOptions m_options;
67 ResourceLoadPriority m_priority; 65 ResourceLoadPriority m_priority;
68 bool m_forPreload;
69 DeferOption m_defer; 66 DeferOption m_defer;
70 OriginRestriction m_originRestriction; 67 OriginRestriction m_originRestriction;
71 }; 68 };
72 69
73 } // namespace blink 70 } // namespace blink
74 71
75 #endif 72 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698