OLD | NEW |
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_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 10 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual ~DOMStorageMessageFilter(); | 37 virtual ~DOMStorageMessageFilter(); |
38 | 38 |
39 void InitializeInSequence(); | 39 void InitializeInSequence(); |
40 void UninitializeInSequence(); | 40 void UninitializeInSequence(); |
41 | 41 |
42 // BrowserMessageFilter implementation | 42 // BrowserMessageFilter implementation |
43 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE; | 43 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE; |
44 virtual void OnFilterRemoved() OVERRIDE; | 44 virtual void OnFilterRemoved() OVERRIDE; |
45 virtual base::TaskRunner* OverrideTaskRunnerForMessage( | 45 virtual base::TaskRunner* OverrideTaskRunnerForMessage( |
46 const IPC::Message& message) OVERRIDE; | 46 const IPC::Message& message) OVERRIDE; |
47 virtual bool OnMessageReceived(const IPC::Message& message, | 47 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
48 bool* message_was_ok) OVERRIDE; | |
49 | 48 |
50 // Message Handlers. | 49 // Message Handlers. |
51 void OnOpenStorageArea(int connection_id, int64 namespace_id, | 50 void OnOpenStorageArea(int connection_id, int64 namespace_id, |
52 const GURL& origin); | 51 const GURL& origin); |
53 void OnCloseStorageArea(int connection_id); | 52 void OnCloseStorageArea(int connection_id); |
54 void OnLoadStorageArea(int connection_id, DOMStorageValuesMap* map, | 53 void OnLoadStorageArea(int connection_id, DOMStorageValuesMap* map, |
55 bool* send_log_get_messages); | 54 bool* send_log_get_messages); |
56 void OnSetItem(int connection_id, const base::string16& key, | 55 void OnSetItem(int connection_id, const base::string16& key, |
57 const base::string16& value, const GURL& page_url); | 56 const base::string16& value, const GURL& page_url); |
58 void OnLogGetItem(int connection_id, const base::string16& key, | 57 void OnLogGetItem(int connection_id, const base::string16& key, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 scoped_refptr<DOMStorageContextImpl> context_; | 90 scoped_refptr<DOMStorageContextImpl> context_; |
92 scoped_ptr<DOMStorageHost> host_; | 91 scoped_ptr<DOMStorageHost> host_; |
93 int connection_dispatching_message_for_; | 92 int connection_dispatching_message_for_; |
94 | 93 |
95 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageMessageFilter); | 94 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageMessageFilter); |
96 }; | 95 }; |
97 | 96 |
98 } // namespace content | 97 } // namespace content |
99 | 98 |
100 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ | 99 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ |
OLD | NEW |