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

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: remove int returnValue and hard code v8::None 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
« no previous file with comments | « Source/core/storage/Storage.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, ExceptionCode& ec)
119 {
120 if (name == "length")
121 return false;
122 bool found = contains(name, ec);
123 if (ec || !found)
124 return false;
125 return true;
118 } 126 }
127
128 }
OLDNEW
« no previous file with comments | « Source/core/storage/Storage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698