summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_web_database_observer.h
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 01:04:25 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 01:04:25 +0000
commit12cbfda3f72e24147789eed981e68c373ba1c14f (patch)
tree9cf47e58dc21c8bf9ba61cd56ab08cecca80c601 /chrome/renderer/renderer_web_database_observer.h
parent63b06e38ffea00111f7efdd20e34ed68b6c4eab9 (diff)
downloadchromium_src-12cbfda3f72e24147789eed981e68c373ba1c14f.zip
chromium_src-12cbfda3f72e24147789eed981e68c373ba1c14f.tar.gz
chromium_src-12cbfda3f72e24147789eed981e68c373ba1c14f.tar.bz2
Wait for the DB thread to finish posting tasks to the main thread
before setting the WebKit client to NULL. TEST=none BUG=32228,32226 Review URL: http://codereview.chromium.org/545178 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37594 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_web_database_observer.h')
-rw-r--r--chrome/renderer/renderer_web_database_observer.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/renderer/renderer_web_database_observer.h b/chrome/renderer/renderer_web_database_observer.h
index 8d7ce56..120b277 100644
--- a/chrome/renderer/renderer_web_database_observer.h
+++ b/chrome/renderer/renderer_web_database_observer.h
@@ -1,12 +1,13 @@
-// Copyright (c) 2009 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.
+// 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.
#ifndef CHROME_RENDERER_RENDERER_WEB_DATABASE_OBSERVER_H_
#define CHROME_RENDERER_RENDERER_WEB_DATABASE_OBSERVER_H_
#include "ipc/ipc_message.h"
#include "third_party/WebKit/WebKit/chromium/public/WebDatabaseObserver.h"
+#include "webkit/database/database_connections.h"
class RendererWebDatabaseObserver : public WebKit::WebDatabaseObserver {
public:
@@ -15,8 +16,12 @@ class RendererWebDatabaseObserver : public WebKit::WebDatabaseObserver {
virtual void databaseModified(const WebKit::WebDatabase& database);
virtual void databaseClosed(const WebKit::WebDatabase& database);
+ void WaitForAllDatabasesToClose();
+
private:
IPC::Message::Sender* sender_;
+ bool waiting_for_dbs_to_close_;
+ webkit_database::DatabaseConnections database_connections_;
};
#endif // CHROME_RENDERER_RENDERER_WEB_DATABASE_OBSERVER_H_