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

Side by Side Diff: content/browser/dom_storage/dom_storage_message_filter.h

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Landing Created 6 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 | Annotate | Revision Log
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_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 22 matching lines...) Expand all
33 explicit DOMStorageMessageFilter(int render_process_id, 33 explicit DOMStorageMessageFilter(int render_process_id,
34 DOMStorageContextWrapper* context); 34 DOMStorageContextWrapper* context);
35 35
36 private: 36 private:
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::Sender* sender) 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) OVERRIDE; 47 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
48 48
49 // Message Handlers. 49 // Message Handlers.
50 void OnOpenStorageArea(int connection_id, int64 namespace_id, 50 void OnOpenStorageArea(int connection_id, int64 namespace_id,
51 const GURL& origin); 51 const GURL& origin);
52 void OnCloseStorageArea(int connection_id); 52 void OnCloseStorageArea(int connection_id);
53 void OnLoadStorageArea(int connection_id, DOMStorageValuesMap* map, 53 void OnLoadStorageArea(int connection_id, DOMStorageValuesMap* map,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 scoped_refptr<DOMStorageContextImpl> context_; 90 scoped_refptr<DOMStorageContextImpl> context_;
91 scoped_ptr<DOMStorageHost> host_; 91 scoped_ptr<DOMStorageHost> host_;
92 int connection_dispatching_message_for_; 92 int connection_dispatching_message_for_;
93 93
94 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageMessageFilter); 94 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageMessageFilter);
95 }; 95 };
96 96
97 } // namespace content 97 } // namespace content
98 98
99 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_ 99 #endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « components/tracing/child_trace_message_filter.cc ('k') | content/browser/dom_storage/dom_storage_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698