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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 25 matching lines...) Expand all Loading... |
36 public: | 36 public: |
37 explicit DOMStorageMessageFilter(DOMStorageContextWrapper* context); | 37 explicit DOMStorageMessageFilter(DOMStorageContextWrapper* context); |
38 | 38 |
39 private: | 39 private: |
40 ~DOMStorageMessageFilter() override; | 40 ~DOMStorageMessageFilter() override; |
41 | 41 |
42 void InitializeInSequence(); | 42 void InitializeInSequence(); |
43 void UninitializeInSequence(); | 43 void UninitializeInSequence(); |
44 | 44 |
45 // BrowserMessageFilter implementation | 45 // BrowserMessageFilter implementation |
46 void OnFilterAdded(IPC::Sender* sender) override; | 46 void OnFilterAdded(IPC::Channel* channel) override; |
47 void OnFilterRemoved() override; | 47 void OnFilterRemoved() override; |
48 base::TaskRunner* OverrideTaskRunnerForMessage( | 48 base::TaskRunner* OverrideTaskRunnerForMessage( |
49 const IPC::Message& message) override; | 49 const IPC::Message& message) override; |
50 bool OnMessageReceived(const IPC::Message& message) override; | 50 bool OnMessageReceived(const IPC::Message& message) override; |
51 | 51 |
52 // Message Handlers. | 52 // Message Handlers. |
53 void OnOpenStorageArea(int connection_id, | 53 void OnOpenStorageArea(int connection_id, |
54 int64_t namespace_id, | 54 int64_t namespace_id, |
55 const GURL& origin); | 55 const GURL& origin); |
56 void OnCloseStorageArea(int connection_id); | 56 void OnCloseStorageArea(int connection_id); |
(...skipping 29 matching lines...) Expand all Loading... |
86 scoped_refptr<DOMStorageContextImpl> context_; | 86 scoped_refptr<DOMStorageContextImpl> context_; |
87 std::unique_ptr<DOMStorageHost> host_; | 87 std::unique_ptr<DOMStorageHost> host_; |
88 int connection_dispatching_message_for_; | 88 int connection_dispatching_message_for_; |
89 | 89 |
90 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageMessageFilter); | 90 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageMessageFilter); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace content | 93 } // namespace content |
94 | 94 |
95 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ | 95 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ |
OLD | NEW |