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

Side by Side Diff: chrome/renderer/renderer_web_database_observer.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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
OLDNEW
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_web_database_observer.h ('k') | chrome/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698