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

Unified Diff: chrome/renderer/renderer_web_database_observer.h

Issue 573044: Merge 37594 - Wait for the DB thread to finish posting tasks to the main thre... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/307/src/
Patch Set: Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | chrome/renderer/renderer_web_database_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_web_database_observer.h
===================================================================
--- chrome/renderer/renderer_web_database_observer.h (revision 38290)
+++ chrome/renderer/renderer_web_database_observer.h (working copy)
@@ -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 @@
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_
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | chrome/renderer/renderer_web_database_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698