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

Side by Side Diff: chrome/common/indexed_db_key.cc

Issue 5983001: Re-land 69416 - IndexedDB: Preparatory patch for using Date objects as keys.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/common/indexed_db_param_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/indexed_db_key.h" 5 #include "chrome/common/indexed_db_key.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 8 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
9 9
10 using WebKit::WebIDBKey; 10 using WebKit::WebIDBKey;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 IndexedDBKey::operator WebIDBKey() const { 49 IndexedDBKey::operator WebIDBKey() const {
50 switch (type_) { 50 switch (type_) {
51 case WebIDBKey::NullType: 51 case WebIDBKey::NullType:
52 return WebIDBKey::createNull(); 52 return WebIDBKey::createNull();
53 case WebIDBKey::StringType: 53 case WebIDBKey::StringType:
54 return WebIDBKey(string_); 54 return WebIDBKey(string_);
55 case WebIDBKey::NumberType: 55 case WebIDBKey::NumberType:
56 return WebIDBKey(number_); 56 return WebIDBKey(number_);
57 case WebIDBKey::InvalidType: 57 case WebIDBKey::InvalidType:
58 return WebIDBKey::createInvalid(); 58 return WebIDBKey::createInvalid();
59 default:
60 // TODO(hans): Implement the WebIDBKey::DateType case once that is added
61 // WebKit side, and then remove this temporary default: clause.
62 return WebIDBKey::createInvalid();
59 } 63 }
60 NOTREACHED(); 64 NOTREACHED();
61 return WebIDBKey::createInvalid(); 65 return WebIDBKey::createInvalid();
62 } 66 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/indexed_db_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698