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

Side by Side Diff: Source/core/storage/Storage.cpp

Issue 17225003: Support named query generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 6 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 * 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 if (ec) 108 if (ec)
109 return; 109 return;
110 ASSERT(!key.isNull()); 110 ASSERT(!key.isNull());
111 String val = getItem(key, ec); 111 String val = getItem(key, ec);
112 if (ec) 112 if (ec)
113 return; 113 return;
114 names[i] = key; 114 names[i] = key;
115 } 115 }
116 } 116 }
117 117
118 bool Storage::namedPropertyQuery(const AtomicString& name, int& returnValue, Exc eptionCode& ec)
119 {
120 if (name == "length")
haraken 2013/06/17 07:41:02 It's OK to leave this check in this CL, but this c
kojih 2013/06/17 07:52:57 I agree.
121 return false;
122 bool found = contains(name, ec);
123 if (ec || !found)
124 return false;
125 returnValue = 0;
126 return true;
118 } 127 }
128
129 }
OLDNEW
« Source/bindings/scripts/CodeGeneratorV8.pm ('K') | « Source/core/storage/Storage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698