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

Side by Side Diff: content/browser/indexed_db/indexed_db_dispatcher_host.h

Issue 1504033007: Move Indexed DB from dedicated thread to task scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timer
Patch Set: Tweak traits Created 3 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 return weak_factory_.GetWeakPtr(); 75 return weak_factory_.GetWeakPtr();
76 } 76 }
77 77
78 // Called by UI thread. Used to kill outstanding bindings and weak pointers 78 // Called by UI thread. Used to kill outstanding bindings and weak pointers
79 // in callbacks. 79 // in callbacks.
80 void RenderProcessExited(RenderProcessHost* host, 80 void RenderProcessExited(RenderProcessHost* host,
81 base::TerminationStatus status, 81 base::TerminationStatus status,
82 int exit_code) override; 82 int exit_code) override;
83 83
84 private: 84 private:
85 class IDBThreadHelper; 85 class IDBSequenceHelper;
86 // Friends to enable OnDestruct() delegation. 86 // Friends to enable OnDestruct() delegation.
87 friend class BrowserThread; 87 friend class BrowserThread;
88 friend class IndexedDBDispatcherHostTest; 88 friend class IndexedDBDispatcherHostTest;
89 friend class base::DeleteHelper<IndexedDBDispatcherHost>; 89 friend class base::DeleteHelper<IndexedDBDispatcherHost>;
90 90
91 ~IndexedDBDispatcherHost() override; 91 ~IndexedDBDispatcherHost() override;
92 92
93 // indexed_db::mojom::Factory implementation: 93 // indexed_db::mojom::Factory implementation:
94 void GetDatabaseNames( 94 void GetDatabaseNames(
95 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info, 95 ::indexed_db::mojom::CallbacksAssociatedPtrInfo callbacks_info,
(...skipping 28 matching lines...) Expand all
124 const int ipc_process_id_; 124 const int ipc_process_id_;
125 125
126 mojo::AssociatedBindingSet<::indexed_db::mojom::Factory> bindings_; 126 mojo::AssociatedBindingSet<::indexed_db::mojom::Factory> bindings_;
127 127
128 mojo::StrongAssociatedBindingSet<::indexed_db::mojom::Database> 128 mojo::StrongAssociatedBindingSet<::indexed_db::mojom::Database>
129 database_bindings_; 129 database_bindings_;
130 130
131 mojo::StrongAssociatedBindingSet<::indexed_db::mojom::Cursor> 131 mojo::StrongAssociatedBindingSet<::indexed_db::mojom::Cursor>
132 cursor_bindings_; 132 cursor_bindings_;
133 133
134 IDBThreadHelper* idb_helper_; 134 IDBSequenceHelper* idb_helper_;
135 135
136 base::WeakPtrFactory<IndexedDBDispatcherHost> weak_factory_; 136 base::WeakPtrFactory<IndexedDBDispatcherHost> weak_factory_;
137 137
138 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 138 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
139 }; 139 };
140 140
141 } // namespace content 141 } // namespace content
142 142
143 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ 143 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_callbacks.cc ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698