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

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

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 ChromeBlobStorageContext* blob_storage_context); 51 ChromeBlobStorageContext* blob_storage_context);
52 IndexedDBDispatcherHost(int ipc_process_id, 52 IndexedDBDispatcherHost(int ipc_process_id,
53 net::URLRequestContext* request_context, 53 net::URLRequestContext* request_context,
54 IndexedDBContextImpl* indexed_db_context, 54 IndexedDBContextImpl* indexed_db_context,
55 ChromeBlobStorageContext* blob_storage_context); 55 ChromeBlobStorageContext* blob_storage_context);
56 56
57 static ::IndexedDBDatabaseMetadata ConvertMetadata( 57 static ::IndexedDBDatabaseMetadata ConvertMetadata(
58 const content::IndexedDBDatabaseMetadata& metadata); 58 const content::IndexedDBDatabaseMetadata& metadata);
59 59
60 // BrowserMessageFilter implementation. 60 // BrowserMessageFilter implementation.
61 virtual void OnChannelConnected(int32 peer_pid) override; 61 void OnChannelConnected(int32 peer_pid) override;
62 virtual void OnChannelClosing() override; 62 void OnChannelClosing() override;
63 virtual void OnDestruct() const override; 63 void OnDestruct() const override;
64 virtual base::TaskRunner* OverrideTaskRunnerForMessage( 64 base::TaskRunner* OverrideTaskRunnerForMessage(
65 const IPC::Message& message) override; 65 const IPC::Message& message) override;
66 virtual bool OnMessageReceived(const IPC::Message& message) override; 66 bool OnMessageReceived(const IPC::Message& message) override;
67 67
68 void FinishTransaction(int64 host_transaction_id, bool committed); 68 void FinishTransaction(int64 host_transaction_id, bool committed);
69 69
70 // A shortcut for accessing our context. 70 // A shortcut for accessing our context.
71 IndexedDBContextImpl* Context() { return indexed_db_context_.get(); } 71 IndexedDBContextImpl* Context() { return indexed_db_context_.get(); }
72 storage::BlobStorageContext* blob_storage_context() const { 72 storage::BlobStorageContext* blob_storage_context() const {
73 return blob_storage_context_->context(); 73 return blob_storage_context_->context();
74 } 74 }
75 75
76 // IndexedDBCallbacks call these methods to add the results into the 76 // IndexedDBCallbacks call these methods to add the results into the
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 int unused_prefetches); 227 int unused_prefetches);
228 void OnDestroyed(int32 ipc_cursor_id); 228 void OnDestroyed(int32 ipc_cursor_id);
229 229
230 IndexedDBDispatcherHost* parent_; 230 IndexedDBDispatcherHost* parent_;
231 RefIDMap<IndexedDBCursor> map_; 231 RefIDMap<IndexedDBCursor> map_;
232 232
233 private: 233 private:
234 DISALLOW_COPY_AND_ASSIGN(CursorDispatcherHost); 234 DISALLOW_COPY_AND_ASSIGN(CursorDispatcherHost);
235 }; 235 };
236 236
237 virtual ~IndexedDBDispatcherHost(); 237 ~IndexedDBDispatcherHost() override;
238 238
239 // Helper templates. 239 // Helper templates.
240 template <class ReturnType> 240 template <class ReturnType>
241 ReturnType* GetOrTerminateProcess(IDMap<ReturnType, IDMapOwnPointer>* map, 241 ReturnType* GetOrTerminateProcess(IDMap<ReturnType, IDMapOwnPointer>* map,
242 int32 ipc_return_object_id); 242 int32 ipc_return_object_id);
243 template <class ReturnType> 243 template <class ReturnType>
244 ReturnType* GetOrTerminateProcess(RefIDMap<ReturnType>* map, 244 ReturnType* GetOrTerminateProcess(RefIDMap<ReturnType>* map,
245 int32 ipc_return_object_id); 245 int32 ipc_return_object_id);
246 246
247 template <typename MapType> 247 template <typename MapType>
(...skipping 29 matching lines...) Expand all
277 277
278 // Used to set file permissions for blob storage. 278 // Used to set file permissions for blob storage.
279 int ipc_process_id_; 279 int ipc_process_id_;
280 280
281 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 281 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
282 }; 282 };
283 283
284 } // namespace content 284 } // namespace content
285 285
286 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ 286 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_unittest.cc ('k') | content/browser/indexed_db/indexed_db_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698