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

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

Issue 8912009: Move BrowserMessageFilter to public, and into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/id_map.h" 10 #include "base/id_map.h"
11 #include "content/browser/browser_message_filter.h"
12 #include "content/browser/in_process_webkit/webkit_context.h" 11 #include "content/browser/in_process_webkit/webkit_context.h"
12 #include "content/public/browser/browser_message_filter.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h"
14 14
15 class IndexedDBKey; 15 class IndexedDBKey;
16 class NullableString16; 16 class NullableString16;
17 struct IndexedDBHostMsg_DatabaseCreateObjectStore_Params; 17 struct IndexedDBHostMsg_DatabaseCreateObjectStore_Params;
18 struct IndexedDBHostMsg_FactoryGetDatabaseNames_Params; 18 struct IndexedDBHostMsg_FactoryGetDatabaseNames_Params;
19 struct IndexedDBHostMsg_FactoryDeleteDatabase_Params; 19 struct IndexedDBHostMsg_FactoryDeleteDatabase_Params;
20 struct IndexedDBHostMsg_FactoryOpen_Params; 20 struct IndexedDBHostMsg_FactoryOpen_Params;
21 struct IndexedDBHostMsg_IndexOpenCursor_Params; 21 struct IndexedDBHostMsg_IndexOpenCursor_Params;
22 struct IndexedDBHostMsg_ObjectStoreCreateIndex_Params; 22 struct IndexedDBHostMsg_ObjectStoreCreateIndex_Params;
23 struct IndexedDBHostMsg_ObjectStoreOpenCursor_Params; 23 struct IndexedDBHostMsg_ObjectStoreOpenCursor_Params;
24 struct IndexedDBHostMsg_ObjectStorePut_Params; 24 struct IndexedDBHostMsg_ObjectStorePut_Params;
25 25
26 namespace WebKit { 26 namespace WebKit {
27 class WebDOMStringList; 27 class WebDOMStringList;
28 class WebIDBCursor; 28 class WebIDBCursor;
29 class WebIDBDatabase; 29 class WebIDBDatabase;
30 class WebIDBIndex; 30 class WebIDBIndex;
31 class WebIDBObjectStore; 31 class WebIDBObjectStore;
32 class WebIDBTransaction; 32 class WebIDBTransaction;
33 } 33 }
34 34
35 namespace content { 35 namespace content {
36 class SerializedScriptValue; 36 class SerializedScriptValue;
37 } 37 }
38 38
39 // Handles all IndexedDB related messages from a particular renderer process. 39 // Handles all IndexedDB related messages from a particular renderer process.
40 class IndexedDBDispatcherHost : public BrowserMessageFilter { 40 class IndexedDBDispatcherHost : public content::BrowserMessageFilter {
41 public: 41 public:
42 // Only call the constructor from the UI thread. 42 // Only call the constructor from the UI thread.
43 IndexedDBDispatcherHost(int process_id, WebKitContext* webkit_context); 43 IndexedDBDispatcherHost(int process_id, WebKitContext* webkit_context);
44 44
45 // BrowserMessageFilter implementation. 45 // content::BrowserMessageFilter implementation.
46 virtual void OnChannelClosing() OVERRIDE; 46 virtual void OnChannelClosing() OVERRIDE;
47 virtual void OverrideThreadForMessage( 47 virtual void OverrideThreadForMessage(
48 const IPC::Message& message, 48 const IPC::Message& message,
49 content::BrowserThread::ID* thread) OVERRIDE; 49 content::BrowserThread::ID* thread) OVERRIDE;
50 virtual bool OnMessageReceived(const IPC::Message& message, 50 virtual bool OnMessageReceived(const IPC::Message& message,
51 bool* message_was_ok) OVERRIDE; 51 bool* message_was_ok) OVERRIDE;
52 52
53 void TransactionComplete(int32 transaction_id); 53 void TransactionComplete(int32 transaction_id);
54 54
55 // A shortcut for accessing our context. 55 // A shortcut for accessing our context.
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; 288 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_;
289 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; 289 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_;
290 290
291 // Used to dispatch messages to the correct view host. 291 // Used to dispatch messages to the correct view host.
292 int process_id_; 292 int process_id_;
293 293
294 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 294 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
295 }; 295 };
296 296
297 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 297 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698