| 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_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // its child processes. There is a distinct host for each child process. | 21 // its child processes. There is a distinct host for each child process. |
| 22 // Messages are handled on the IO thread. The BrowserRenderProcessHost and | 22 // Messages are handled on the IO thread. The BrowserRenderProcessHost and |
| 23 // WorkerProcessHost create an instance and delegates calls to it. | 23 // WorkerProcessHost create an instance and delegates calls to it. |
| 24 class AppCacheDispatcherHost : public BrowserMessageFilter { | 24 class AppCacheDispatcherHost : public BrowserMessageFilter { |
| 25 public: | 25 public: |
| 26 AppCacheDispatcherHost(ChromeAppCacheService* appcache_service, | 26 AppCacheDispatcherHost(ChromeAppCacheService* appcache_service, |
| 27 int process_id); | 27 int process_id); |
| 28 | 28 |
| 29 // BrowserIOMessageFilter implementation | 29 // BrowserIOMessageFilter implementation |
| 30 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 30 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 31 virtual bool OnMessageReceived(const IPC::Message& message, | 31 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 32 bool* message_was_ok) OVERRIDE; | |
| 33 | 32 |
| 34 protected: | 33 protected: |
| 35 virtual ~AppCacheDispatcherHost(); | 34 virtual ~AppCacheDispatcherHost(); |
| 36 | 35 |
| 37 // BrowserMessageFilter override. | 36 // BrowserMessageFilter override. |
| 38 virtual void BadMessageReceived() OVERRIDE; | 37 virtual void BadMessageReceived() OVERRIDE; |
| 39 | 38 |
| 40 private: | 39 private: |
| 41 // IPC message handlers | 40 // IPC message handlers |
| 42 void OnRegisterHost(int host_id); | 41 void OnRegisterHost(int host_id); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 72 | 71 |
| 73 // The corresponding ChildProcessHost object's id(). | 72 // The corresponding ChildProcessHost object's id(). |
| 74 int process_id_; | 73 int process_id_; |
| 75 | 74 |
| 76 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); | 75 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 } // namespace content | 78 } // namespace content |
| 80 | 79 |
| 81 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ | 80 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ |
| OLD | NEW |