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

Side by Side Diff: content/child/web_database_observer_impl.h

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/child/socket_stream_dispatcher.cc ('k') | content/child/web_database_observer_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_CHILD_WEB_DATABASE_OBSERVER_IMPL_H_ 5 #ifndef CONTENT_CHILD_WEB_DATABASE_OBSERVER_IMPL_H_
6 #define CONTENT_CHILD_WEB_DATABASE_OBSERVER_IMPL_H_ 6 #define CONTENT_CHILD_WEB_DATABASE_OBSERVER_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "ipc/ipc_sync_message_filter.h" 9 #include "ipc/ipc_sync_message_filter.h"
10 #include "third_party/WebKit/public/web/WebDatabaseObserver.h" 10 #include "third_party/WebKit/public/web/WebDatabaseObserver.h"
11 #include "webkit/common/database/database_connections.h" 11 #include "webkit/common/database/database_connections.h"
12 12
13 namespace WebKit { 13 namespace blink {
14 class WebString; 14 class WebString;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 18
19 class WebDatabaseObserverImpl : public WebKit::WebDatabaseObserver { 19 class WebDatabaseObserverImpl : public blink::WebDatabaseObserver {
20 public: 20 public:
21 explicit WebDatabaseObserverImpl(IPC::SyncMessageFilter* sender); 21 explicit WebDatabaseObserverImpl(IPC::SyncMessageFilter* sender);
22 virtual ~WebDatabaseObserverImpl(); 22 virtual ~WebDatabaseObserverImpl();
23 23
24 virtual void databaseOpened(const WebKit::WebDatabase& database) OVERRIDE; 24 virtual void databaseOpened(const blink::WebDatabase& database) OVERRIDE;
25 virtual void databaseModified(const WebKit::WebDatabase& database) OVERRIDE; 25 virtual void databaseModified(const blink::WebDatabase& database) OVERRIDE;
26 virtual void databaseClosed(const WebKit::WebString& origin_identifier, 26 virtual void databaseClosed(const blink::WebString& origin_identifier,
27 const WebKit::WebString& database_name); 27 const blink::WebString& database_name);
28 // TODO(jochen): Remove this version once the blink side has rolled. 28 // TODO(jochen): Remove this version once the blink side has rolled.
29 virtual void databaseClosed(const WebKit::WebDatabase& database); 29 virtual void databaseClosed(const blink::WebDatabase& database);
30 30
31 virtual void reportOpenDatabaseResult( 31 virtual void reportOpenDatabaseResult(
32 const WebKit::WebDatabase& database, int callsite, 32 const blink::WebDatabase& database, int callsite,
33 int websql_error, int sqlite_error) OVERRIDE; 33 int websql_error, int sqlite_error) OVERRIDE;
34 virtual void reportChangeVersionResult( 34 virtual void reportChangeVersionResult(
35 const WebKit::WebDatabase& database, int callsite, 35 const blink::WebDatabase& database, int callsite,
36 int websql_error, int sqlite_error) OVERRIDE; 36 int websql_error, int sqlite_error) OVERRIDE;
37 virtual void reportStartTransactionResult( 37 virtual void reportStartTransactionResult(
38 const WebKit::WebDatabase& database, int callsite, 38 const blink::WebDatabase& database, int callsite,
39 int websql_error, int sqlite_error) OVERRIDE; 39 int websql_error, int sqlite_error) OVERRIDE;
40 virtual void reportCommitTransactionResult( 40 virtual void reportCommitTransactionResult(
41 const WebKit::WebDatabase& database, int callsite, 41 const blink::WebDatabase& database, int callsite,
42 int websql_error, int sqlite_error) OVERRIDE; 42 int websql_error, int sqlite_error) OVERRIDE;
43 virtual void reportExecuteStatementResult( 43 virtual void reportExecuteStatementResult(
44 const WebKit::WebDatabase& database, int callsite, 44 const blink::WebDatabase& database, int callsite,
45 int websql_error, int sqlite_error) OVERRIDE; 45 int websql_error, int sqlite_error) OVERRIDE;
46 virtual void reportVacuumDatabaseResult( 46 virtual void reportVacuumDatabaseResult(
47 const WebKit::WebDatabase& database, int sqlite_error) OVERRIDE; 47 const blink::WebDatabase& database, int sqlite_error) OVERRIDE;
48 48
49 void WaitForAllDatabasesToClose(); 49 void WaitForAllDatabasesToClose();
50 50
51 private: 51 private:
52 void HandleSqliteError(const WebKit::WebDatabase& database, int error); 52 void HandleSqliteError(const blink::WebDatabase& database, int error);
53 53
54 scoped_refptr<IPC::SyncMessageFilter> sender_; 54 scoped_refptr<IPC::SyncMessageFilter> sender_;
55 scoped_refptr<webkit_database::DatabaseConnectionsWrapper> open_connections_; 55 scoped_refptr<webkit_database::DatabaseConnectionsWrapper> open_connections_;
56 }; 56 };
57 57
58 } // namespace content 58 } // namespace content
59 59
60 #endif // CONTENT_CHILD_WEB_DATABASE_OBSERVER_IMPL_H_ 60 #endif // CONTENT_CHILD_WEB_DATABASE_OBSERVER_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/socket_stream_dispatcher.cc ('k') | content/child/web_database_observer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698