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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | chrome/renderer/renderer_web_database_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // source code is governed by a BSD-style license that can be found in the 2 // Use of this source code is governed by a BSD-style license that can be
3 // LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_RENDERER_WEB_DATABASE_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_RENDERER_WEB_DATABASE_OBSERVER_H_
6 #define CHROME_RENDERER_RENDERER_WEB_DATABASE_OBSERVER_H_ 6 #define CHROME_RENDERER_RENDERER_WEB_DATABASE_OBSERVER_H_
7 7
8 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
9 #include "third_party/WebKit/WebKit/chromium/public/WebDatabaseObserver.h" 9 #include "third_party/WebKit/WebKit/chromium/public/WebDatabaseObserver.h"
10 #include "webkit/database/database_connections.h"
10 11
11 class RendererWebDatabaseObserver : public WebKit::WebDatabaseObserver { 12 class RendererWebDatabaseObserver : public WebKit::WebDatabaseObserver {
12 public: 13 public:
13 explicit RendererWebDatabaseObserver(IPC::Message::Sender* sender); 14 explicit RendererWebDatabaseObserver(IPC::Message::Sender* sender);
14 virtual void databaseOpened(const WebKit::WebDatabase& database); 15 virtual void databaseOpened(const WebKit::WebDatabase& database);
15 virtual void databaseModified(const WebKit::WebDatabase& database); 16 virtual void databaseModified(const WebKit::WebDatabase& database);
16 virtual void databaseClosed(const WebKit::WebDatabase& database); 17 virtual void databaseClosed(const WebKit::WebDatabase& database);
17 18
19 void WaitForAllDatabasesToClose();
20
18 private: 21 private:
19 IPC::Message::Sender* sender_; 22 IPC::Message::Sender* sender_;
23 bool waiting_for_dbs_to_close_;
24 webkit_database::DatabaseConnections database_connections_;
20 }; 25 };
21 26
22 #endif // CHROME_RENDERER_RENDERER_WEB_DATABASE_OBSERVER_H_ 27 #endif // CHROME_RENDERER_RENDERER_WEB_DATABASE_OBSERVER_H_
OLDNEW
« 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