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

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

Issue 6672057: Move all the message files in chrome that belong in content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_INDEXED_DB_KEY_H_
6 #define CHROME_COMMON_INDEXED_DB_KEY_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/string16.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
12
13 class IndexedDBKey {
14 public:
15 IndexedDBKey(); // Defaults to WebKit::WebIDBKey::InvalidType.
16 explicit IndexedDBKey(const WebKit::WebIDBKey& key);
17 ~IndexedDBKey();
18
19 void SetNull();
20 void SetInvalid();
21 void SetString(const string16& string);
22 void SetDate(double date);
23 void SetNumber(double number);
24 void Set(const WebKit::WebIDBKey& key);
25
26 WebKit::WebIDBKey::Type type() const { return type_; }
27 const string16& string() const { return string_; }
28 double date() const { return date_; }
29 double number() const { return number_; }
30
31 operator WebKit::WebIDBKey() const;
32
33 private:
34 WebKit::WebIDBKey::Type type_;
35 string16 string_;
36 double date_;
37 double number_;
38 };
39
40 #endif // CHROME_COMMON_INDEXED_DB_KEY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698