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

Side by Side Diff: Source/core/html/parser/CSSPreloadScanner.h

Issue 1306413003: Make classes and structures in core/html fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2010 Google Inc. All Rights Reserved. 3 * Copyright (C) 2010 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 18 matching lines...) Expand all
29 29
30 #include "core/html/parser/HTMLResourcePreloader.h" 30 #include "core/html/parser/HTMLResourcePreloader.h"
31 #include "core/html/parser/HTMLToken.h" 31 #include "core/html/parser/HTMLToken.h"
32 #include "wtf/text/StringBuilder.h" 32 #include "wtf/text/StringBuilder.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class SegmentedString; 36 class SegmentedString;
37 37
38 class CSSPreloadScanner { 38 class CSSPreloadScanner {
39 DISALLOW_ALLOCATION();
39 WTF_MAKE_NONCOPYABLE(CSSPreloadScanner); 40 WTF_MAKE_NONCOPYABLE(CSSPreloadScanner);
40 public: 41 public:
41 CSSPreloadScanner(); 42 CSSPreloadScanner();
42 ~CSSPreloadScanner(); 43 ~CSSPreloadScanner();
43 44
44 void reset(); 45 void reset();
45 46
46 void scan(const HTMLToken::DataVector&, const SegmentedString&, PreloadReque stStream&); 47 void scan(const HTMLToken::DataVector&, const SegmentedString&, PreloadReque stStream&);
47 void scan(const String&, const SegmentedString&, PreloadRequestStream&); 48 void scan(const String&, const SegmentedString&, PreloadRequestStream&);
48 49
(...skipping 25 matching lines...) Expand all
74 75
75 // Only non-zero during scan() 76 // Only non-zero during scan()
76 PreloadRequestStream* m_requests; 77 PreloadRequestStream* m_requests;
77 78
78 ReferrerPolicy m_referrerPolicy; 79 ReferrerPolicy m_referrerPolicy;
79 }; 80 };
80 81
81 } 82 }
82 83
83 #endif 84 #endif
OLDNEW
« no previous file with comments | « Source/core/html/parser/BackgroundHTMLParser.h ('k') | Source/core/html/parser/CompactHTMLToken.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698