OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_DOM_STORAGE_DOM_STORAGE_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_DOM_STORAGE_DOM_STORAGE_DISPATCHER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ipc/ipc_channel.h" |
| 10 |
| 11 struct DOMStorageMsg_Event_Params; |
| 12 |
| 13 // Dispatches DomStorage related messages sent to a renderer process from the |
| 14 // main browser process. There is one instance per child process. Messages |
| 15 // are dispatched on the main renderer thread. The RenderThreadImpl |
| 16 // creates an instance and delegates calls to it. |
| 17 class DomStorageDispatcher : public IPC::Channel::Listener { |
| 18 public: |
| 19 DomStorageDispatcher() {} |
| 20 |
| 21 // IPC::Channel::Listener implementation |
| 22 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 23 |
| 24 private: |
| 25 // IPC message handlers |
| 26 void OnStorageEvent(const DOMStorageMsg_Event_Params& params); |
| 27 }; |
| 28 |
| 29 #endif // CONTENT_COMMON_APPCACHE_APPCACHE_DISPATCHER_H_ |
OLD | NEW |