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

Side by Side Diff: content/common/indexed_db/indexed_db_key.cc

Issue 10272018: Move IndexedDBKey, IndexedDBKeyRange into content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use "using content::*" aliasing for IDB/SSV types Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/common/indexed_db/indexed_db_key.h" 5 #include "content/common/indexed_db/indexed_db_key.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
10 10
11 namespace content {
12
11 using WebKit::WebIDBKey; 13 using WebKit::WebIDBKey;
12 using WebKit::WebVector; 14 using WebKit::WebVector;
13 15
14 IndexedDBKey::IndexedDBKey() 16 IndexedDBKey::IndexedDBKey()
15 : type_(WebIDBKey::NullType), 17 : type_(WebIDBKey::NullType),
16 date_(0), 18 date_(0),
17 number_(0) { 19 number_(0) {
18 } 20 }
19 21
20 IndexedDBKey::IndexedDBKey(const WebIDBKey& key) { 22 IndexedDBKey::IndexedDBKey(const WebIDBKey& key) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 case WebIDBKey::NumberType: 80 case WebIDBKey::NumberType:
79 return WebIDBKey::createNumber(number_); 81 return WebIDBKey::createNumber(number_);
80 case WebIDBKey::InvalidType: 82 case WebIDBKey::InvalidType:
81 return WebIDBKey::createInvalid(); 83 return WebIDBKey::createInvalid();
82 case WebIDBKey::NullType: 84 case WebIDBKey::NullType:
83 return WebIDBKey::createNull(); 85 return WebIDBKey::createNull();
84 } 86 }
85 NOTREACHED(); 87 NOTREACHED();
86 return WebIDBKey::createInvalid(); 88 return WebIDBKey::createInvalid();
87 } 89 }
90
91 } // namespace content
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_key.h ('k') | content/common/indexed_db/indexed_db_key_range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698