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

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

Issue 666333002: Remove isSyncDatabase in WebDatabaseObserver [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | 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 "storage/common/database/database_connections.h" 10 #include "storage/common/database/database_connections.h"
(...skipping 13 matching lines...) Expand all
24 unsigned long estimated_size); 24 unsigned long estimated_size);
25 virtual void databaseModified( 25 virtual void databaseModified(
26 const blink::WebString& origin_identifier, 26 const blink::WebString& origin_identifier,
27 const blink::WebString& database_name); 27 const blink::WebString& database_name);
28 virtual void databaseClosed( 28 virtual void databaseClosed(
29 const blink::WebString& origin_identifier, 29 const blink::WebString& origin_identifier,
30 const blink::WebString& database_name); 30 const blink::WebString& database_name);
31 virtual void reportOpenDatabaseResult( 31 virtual void reportOpenDatabaseResult(
32 const blink::WebString& origin_identifier, 32 const blink::WebString& origin_identifier,
33 const blink::WebString& database_name, 33 const blink::WebString& database_name,
34 bool is_sync_database,
35 int callsite, int websql_error, int sqlite_error); 34 int callsite, int websql_error, int sqlite_error);
36 virtual void reportChangeVersionResult( 35 virtual void reportChangeVersionResult(
37 const blink::WebString& origin_identifier, 36 const blink::WebString& origin_identifier,
38 const blink::WebString& database_name, 37 const blink::WebString& database_name,
39 bool is_sync_database,
40 int callsite, int websql_error, int sqlite_error); 38 int callsite, int websql_error, int sqlite_error);
41 virtual void reportStartTransactionResult( 39 virtual void reportStartTransactionResult(
42 const blink::WebString& origin_identifier, 40 const blink::WebString& origin_identifier,
43 const blink::WebString& database_name, 41 const blink::WebString& database_name,
44 bool is_sync_database,
45 int callsite, int websql_error, int sqlite_error); 42 int callsite, int websql_error, int sqlite_error);
46 virtual void reportCommitTransactionResult( 43 virtual void reportCommitTransactionResult(
47 const blink::WebString& origin_identifier, 44 const blink::WebString& origin_identifier,
48 const blink::WebString& database_name, 45 const blink::WebString& database_name,
49 bool is_sync_database,
50 int callsite, int websql_error, int sqlite_error); 46 int callsite, int websql_error, int sqlite_error);
51 virtual void reportExecuteStatementResult( 47 virtual void reportExecuteStatementResult(
52 const blink::WebString& origin_identifier, 48 const blink::WebString& origin_identifier,
53 const blink::WebString& database_name, 49 const blink::WebString& database_name,
54 bool is_sync_database,
55 int callsite, int websql_error, int sqlite_error); 50 int callsite, int websql_error, int sqlite_error);
56 virtual void reportVacuumDatabaseResult( 51 virtual void reportVacuumDatabaseResult(
57 const blink::WebString& origin_identifier, 52 const blink::WebString& origin_identifier,
58 const blink::WebString& database_name, 53 const blink::WebString& database_name,
59 bool is_sync_database,
60 int sqlite_error); 54 int sqlite_error);
61 55
62 void WaitForAllDatabasesToClose(); 56 void WaitForAllDatabasesToClose();
63 57
64 private: 58 private:
65 void HandleSqliteError(const blink::WebString& origin_identifier, 59 void HandleSqliteError(const blink::WebString& origin_identifier,
66 const blink::WebString& database_name, 60 const blink::WebString& database_name,
67 int error); 61 int error);
68 62
69 scoped_refptr<IPC::SyncMessageFilter> sender_; 63 scoped_refptr<IPC::SyncMessageFilter> sender_;
70 scoped_refptr<storage::DatabaseConnectionsWrapper> open_connections_; 64 scoped_refptr<storage::DatabaseConnectionsWrapper> open_connections_;
71 65
72 DISALLOW_COPY_AND_ASSIGN(WebDatabaseObserverImpl); 66 DISALLOW_COPY_AND_ASSIGN(WebDatabaseObserverImpl);
73 }; 67 };
74 68
75 } // namespace content 69 } // namespace content
76 70
77 #endif // CONTENT_CHILD_WEB_DATABASE_OBSERVER_IMPL_H_ 71 #endif // CONTENT_CHILD_WEB_DATABASE_OBSERVER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/web_database_observer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698