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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 * 7 *
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 25 matching lines...) Expand all
36 namespace blink { 36 namespace blink {
37 37
38 enum IDBKeyPathParseError { 38 enum IDBKeyPathParseError {
39 IDBKeyPathParseErrorNone, 39 IDBKeyPathParseErrorNone,
40 IDBKeyPathParseErrorIdentifier, 40 IDBKeyPathParseErrorIdentifier,
41 }; 41 };
42 42
43 MODULES_EXPORT void IDBParseKeyPath(const String&, Vector<String>&, IDBKeyPathPa rseError&); 43 MODULES_EXPORT void IDBParseKeyPath(const String&, Vector<String>&, IDBKeyPathPa rseError&);
44 44
45 class MODULES_EXPORT IDBKeyPath { 45 class MODULES_EXPORT IDBKeyPath {
46 DISALLOW_ALLOCATION(); 46 DISALLOW_NEW();
47 public: 47 public:
48 IDBKeyPath() : m_type(NullType) { } 48 IDBKeyPath() : m_type(NullType) { }
49 explicit IDBKeyPath(const String&); 49 explicit IDBKeyPath(const String&);
50 explicit IDBKeyPath(const Vector<String>& array); 50 explicit IDBKeyPath(const Vector<String>& array);
51 explicit IDBKeyPath(const StringOrStringSequence& keyPath); 51 explicit IDBKeyPath(const StringOrStringSequence& keyPath);
52 IDBKeyPath(const WebIDBKeyPath&); 52 IDBKeyPath(const WebIDBKeyPath&);
53 53
54 operator WebIDBKeyPath() const; 54 operator WebIDBKeyPath() const;
55 55
56 enum Type { 56 enum Type {
(...skipping 22 matching lines...) Expand all
79 79
80 private: 80 private:
81 Type m_type; 81 Type m_type;
82 String m_string; 82 String m_string;
83 Vector<String> m_array; 83 Vector<String> m_array;
84 }; 84 };
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // IDBKeyPath_h 88 #endif // IDBKeyPath_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698