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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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) 2013 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2013 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 18 matching lines...) Expand all
29 #include "platform/text/SegmentedString.h" 29 #include "platform/text/SegmentedString.h"
30 #include "wtf/Allocator.h" 30 #include "wtf/Allocator.h"
31 #include "wtf/Vector.h" 31 #include "wtf/Vector.h"
32 #include "wtf/text/WTFString.h" 32 #include "wtf/text/WTFString.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 typedef size_t HTMLInputCheckpoint; 36 typedef size_t HTMLInputCheckpoint;
37 37
38 class BackgroundHTMLInputStream { 38 class BackgroundHTMLInputStream {
39 DISALLOW_ALLOCATION(); 39 DISALLOW_NEW();
40 WTF_MAKE_NONCOPYABLE(BackgroundHTMLInputStream); 40 WTF_MAKE_NONCOPYABLE(BackgroundHTMLInputStream);
41 public: 41 public:
42 BackgroundHTMLInputStream(); 42 BackgroundHTMLInputStream();
43 43
44 void append(const String&); 44 void append(const String&);
45 void close(); 45 void close();
46 46
47 SegmentedString& current() { return m_current; } 47 SegmentedString& current() { return m_current; }
48 48
49 // An HTMLInputCheckpoint is valid until the next call to rewindTo, at which 49 // An HTMLInputCheckpoint is valid until the next call to rewindTo, at which
(...skipping 26 matching lines...) Expand all
76 size_t m_firstValidCheckpointIndex; 76 size_t m_firstValidCheckpointIndex;
77 size_t m_firstValidSegmentIndex; 77 size_t m_firstValidSegmentIndex;
78 size_t m_totalCheckpointTokenCount; 78 size_t m_totalCheckpointTokenCount;
79 79
80 void updateTotalCheckpointTokenCount(); 80 void updateTotalCheckpointTokenCount();
81 }; 81 };
82 82
83 } 83 }
84 84
85 #endif 85 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698