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

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

Issue 1310643003: Make classes and structures in core/events and core/fetch fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 14 matching lines...) Expand all
25 25
26 #ifndef FetchRequest_h 26 #ifndef FetchRequest_h
27 #define FetchRequest_h 27 #define FetchRequest_h
28 28
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "core/fetch/ClientHintsPreferences.h" 30 #include "core/fetch/ClientHintsPreferences.h"
31 #include "core/fetch/FetchInitiatorInfo.h" 31 #include "core/fetch/FetchInitiatorInfo.h"
32 #include "core/fetch/ResourceLoaderOptions.h" 32 #include "core/fetch/ResourceLoaderOptions.h"
33 #include "platform/network/ResourceLoadPriority.h" 33 #include "platform/network/ResourceLoadPriority.h"
34 #include "platform/network/ResourceRequest.h" 34 #include "platform/network/ResourceRequest.h"
35 #include "wtf/Allocator.h"
35 #include "wtf/text/AtomicString.h" 36 #include "wtf/text/AtomicString.h"
36 37
37 namespace blink { 38 namespace blink {
38 class SecurityOrigin; 39 class SecurityOrigin;
39 40
40 class CORE_EXPORT FetchRequest { 41 class CORE_EXPORT FetchRequest {
42 STACK_ALLOCATED();
41 public: 43 public:
42 enum DeferOption { NoDefer, LazyLoad, DeferredByClient }; 44 enum DeferOption { NoDefer, LazyLoad, DeferredByClient };
43 enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameO rigin, NoOriginRestriction }; 45 enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameO rigin, NoOriginRestriction };
44 46
45 struct ResourceWidth { 47 struct ResourceWidth {
48 DISALLOW_ALLOCATION();
46 float width; 49 float width;
47 bool isSet; 50 bool isSet;
48 51
49 ResourceWidth() 52 ResourceWidth()
50 : width(0) 53 : width(0)
51 , isSet(false) 54 , isSet(false)
52 { 55 {
53 } 56 }
54 }; 57 };
55 58
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool m_forPreload; 100 bool m_forPreload;
98 DeferOption m_defer; 101 DeferOption m_defer;
99 OriginRestriction m_originRestriction; 102 OriginRestriction m_originRestriction;
100 ResourceWidth m_resourceWidth; 103 ResourceWidth m_resourceWidth;
101 ClientHintsPreferences m_clientHintPreferences; 104 ClientHintsPreferences m_clientHintPreferences;
102 }; 105 };
103 106
104 } // namespace blink 107 } // namespace blink
105 108
106 #endif 109 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698