diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 20:14:49 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 20:14:49 +0000 |
commit | bc0939b9bed53465f4f89db1c8bfa4509d57569a (patch) | |
tree | 9490ad4c7872a52c71f564e246c03c0c46d07b20 | |
parent | 3a49b10712651203a015b56b3ca0c5d7e8058fb3 (diff) | |
download | chromium_src-bc0939b9bed53465f4f89db1c8bfa4509d57569a.zip chromium_src-bc0939b9bed53465f4f89db1c8bfa4509d57569a.tar.gz chromium_src-bc0939b9bed53465f4f89db1c8bfa4509d57569a.tar.bz2 |
Coverity: Fix missing const on RendererWebIDBIndexImpl and RendererWebIDBDatabaseImpl methods.
CID=9390,9389,9388,10844,10845,10846,10847
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/2891023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52516 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/renderer/renderer_webidbdatabase_impl.cc | 8 | ||||
-rw-r--r-- | chrome/renderer/renderer_webidbdatabase_impl.h | 8 | ||||
-rw-r--r-- | chrome/renderer/renderer_webidbindex_impl.cc | 6 | ||||
-rw-r--r-- | chrome/renderer/renderer_webidbindex_impl.h | 6 |
4 files changed, 14 insertions, 14 deletions
diff --git a/chrome/renderer/renderer_webidbdatabase_impl.cc b/chrome/renderer/renderer_webidbdatabase_impl.cc index 140b16f..0f07369 100644 --- a/chrome/renderer/renderer_webidbdatabase_impl.cc +++ b/chrome/renderer/renderer_webidbdatabase_impl.cc @@ -26,28 +26,28 @@ RendererWebIDBDatabaseImpl::~RendererWebIDBDatabaseImpl() { idb_database_id_)); } -WebString RendererWebIDBDatabaseImpl::name() { +WebString RendererWebIDBDatabaseImpl::name() const { string16 result; RenderThread::current()->Send( new ViewHostMsg_IDBDatabaseName(idb_database_id_, &result)); return result; } -WebString RendererWebIDBDatabaseImpl::description() { +WebString RendererWebIDBDatabaseImpl::description() const { string16 result; RenderThread::current()->Send( new ViewHostMsg_IDBDatabaseDescription(idb_database_id_, &result)); return result; } -WebString RendererWebIDBDatabaseImpl::version() { +WebString RendererWebIDBDatabaseImpl::version() const { string16 result; RenderThread::current()->Send( new ViewHostMsg_IDBDatabaseVersion(idb_database_id_, &result)); return result; } -WebDOMStringList RendererWebIDBDatabaseImpl::objectStores() { +WebDOMStringList RendererWebIDBDatabaseImpl::objectStores() const { std::vector<string16> result; RenderThread::current()->Send( new ViewHostMsg_IDBDatabaseObjectStores(idb_database_id_, &result)); diff --git a/chrome/renderer/renderer_webidbdatabase_impl.h b/chrome/renderer/renderer_webidbdatabase_impl.h index 4c21ada..e7936a0 100644 --- a/chrome/renderer/renderer_webidbdatabase_impl.h +++ b/chrome/renderer/renderer_webidbdatabase_impl.h @@ -21,10 +21,10 @@ class RendererWebIDBDatabaseImpl : public WebKit::WebIDBDatabase { virtual ~RendererWebIDBDatabaseImpl(); // WebKit::WebIDBDatabase - virtual WebKit::WebString name(); - virtual WebKit::WebString description(); - virtual WebKit::WebString version(); - virtual WebKit::WebDOMStringList objectStores(); + virtual WebKit::WebString name() const; + virtual WebKit::WebString description() const; + virtual WebKit::WebString version() const; + virtual WebKit::WebDOMStringList objectStores() const; virtual void createObjectStore( const WebKit::WebString& name, const WebKit::WebString& key_path, bool auto_increment, WebKit::WebIDBCallbacks* callbacks); diff --git a/chrome/renderer/renderer_webidbindex_impl.cc b/chrome/renderer/renderer_webidbindex_impl.cc index 9f69c51..97e6409 100644 --- a/chrome/renderer/renderer_webidbindex_impl.cc +++ b/chrome/renderer/renderer_webidbindex_impl.cc @@ -23,21 +23,21 @@ RendererWebIDBIndexImpl::~RendererWebIDBIndexImpl() { idb_index_id_)); } -WebString RendererWebIDBIndexImpl::name() { +WebString RendererWebIDBIndexImpl::name() const { string16 result; RenderThread::current()->Send( new ViewHostMsg_IDBIndexName(idb_index_id_, &result)); return result; } -WebString RendererWebIDBIndexImpl::keyPath() { +WebString RendererWebIDBIndexImpl::keyPath() const { NullableString16 result; RenderThread::current()->Send( new ViewHostMsg_IDBIndexKeyPath(idb_index_id_, &result)); return result; } -bool RendererWebIDBIndexImpl::unique() { +bool RendererWebIDBIndexImpl::unique() const { bool result; RenderThread::current()->Send( new ViewHostMsg_IDBIndexUnique(idb_index_id_, &result)); diff --git a/chrome/renderer/renderer_webidbindex_impl.h b/chrome/renderer/renderer_webidbindex_impl.h index 9cceaad..234a4ec 100644 --- a/chrome/renderer/renderer_webidbindex_impl.h +++ b/chrome/renderer/renderer_webidbindex_impl.h @@ -15,9 +15,9 @@ class RendererWebIDBIndexImpl : public WebKit::WebIDBIndex { virtual ~RendererWebIDBIndexImpl(); // WebKit::WebIDBIndex - virtual WebKit::WebString name(); - virtual WebKit::WebString keyPath(); - virtual bool unique(); + virtual WebKit::WebString name() const; + virtual WebKit::WebString keyPath() const; + virtual bool unique() const; private: int32 idb_index_id_; |