| Index: app/sql/statement.h
|
| diff --git a/app/sql/statement.h b/app/sql/statement.h
|
| index 22682c8274b10a4e8da21d357a28a914c4fbcb4b..0fbbfba93d269ad4c6aedcd5d6164043e8d218e9 100644
|
| --- a/app/sql/statement.h
|
| +++ b/app/sql/statement.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -11,6 +11,7 @@
|
| #include "app/sql/connection.h"
|
| #include "base/basictypes.h"
|
| #include "base/ref_counted.h"
|
| +#include "base/string16.h"
|
|
|
| namespace sql {
|
|
|
| @@ -104,6 +105,7 @@ class Statement {
|
| bool BindDouble(int col, double val);
|
| bool BindCString(int col, const char* val);
|
| bool BindString(int col, const std::string& val);
|
| + bool BindString16(int col, const string16& value);
|
| bool BindBlob(int col, const void* value, int value_len);
|
|
|
| // Retrieving ----------------------------------------------------------------
|
| @@ -125,12 +127,14 @@ class Statement {
|
| int64 ColumnInt64(int col) const;
|
| double ColumnDouble(int col) const;
|
| std::string ColumnString(int col) const;
|
| + string16 ColumnString16(int col) const;
|
|
|
| // When reading a blob, you can get a raw pointer to the underlying data,
|
| // along with the length, or you can just ask us to copy the blob into a
|
| // vector. Danger! ColumnBlob may return NULL if there is no data!
|
| int ColumnByteLength(int col) const;
|
| const void* ColumnBlob(int col) const;
|
| + bool ColumnBlobAsString(int col, std::string* blob);
|
| void ColumnBlobAsVector(int col, std::vector<char>* val) const;
|
| void ColumnBlobAsVector(int col, std::vector<unsigned char>* val) const;
|
|
|
|
|