OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/renderer/renderer_web_database_observer.h" | 5 #include "chrome/renderer/renderer_web_database_observer.h" |
6 | 6 |
7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
8 #include "webkit/api/public/WebDatabase.h" | 8 #include "third_party/WebKit/WebKit/chromium/public/WebDatabase.h" |
9 | 9 |
10 RendererWebDatabaseObserver::RendererWebDatabaseObserver( | 10 RendererWebDatabaseObserver::RendererWebDatabaseObserver( |
11 IPC::Message::Sender* sender) | 11 IPC::Message::Sender* sender) |
12 : sender_(sender) { | 12 : sender_(sender) { |
13 } | 13 } |
14 | 14 |
15 void RendererWebDatabaseObserver::databaseOpened( | 15 void RendererWebDatabaseObserver::databaseOpened( |
16 const WebKit::WebDatabase& database) { | 16 const WebKit::WebDatabase& database) { |
17 sender_->Send(new ViewHostMsg_DatabaseOpened( | 17 sender_->Send(new ViewHostMsg_DatabaseOpened( |
18 database.securityOrigin().databaseIdentifier(), database.name(), | 18 database.securityOrigin().databaseIdentifier(), database.name(), |
19 database.displayName(), database.estimatedSize())); | 19 database.displayName(), database.estimatedSize())); |
20 } | 20 } |
21 | 21 |
22 void RendererWebDatabaseObserver::databaseModified( | 22 void RendererWebDatabaseObserver::databaseModified( |
23 const WebKit::WebDatabase& database) { | 23 const WebKit::WebDatabase& database) { |
24 sender_->Send(new ViewHostMsg_DatabaseModified( | 24 sender_->Send(new ViewHostMsg_DatabaseModified( |
25 database.securityOrigin().databaseIdentifier(), database.name())); | 25 database.securityOrigin().databaseIdentifier(), database.name())); |
26 } | 26 } |
27 | 27 |
28 void RendererWebDatabaseObserver::databaseClosed( | 28 void RendererWebDatabaseObserver::databaseClosed( |
29 const WebKit::WebDatabase& database) { | 29 const WebKit::WebDatabase& database) { |
30 sender_->Send(new ViewHostMsg_DatabaseClosed( | 30 sender_->Send(new ViewHostMsg_DatabaseClosed( |
31 database.securityOrigin().databaseIdentifier(), database.name())); | 31 database.securityOrigin().databaseIdentifier(), database.name())); |
32 } | 32 } |
OLD | NEW |