OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 int process_id); | 28 int process_id); |
29 virtual ~AppCacheDispatcherHost(); | 29 virtual ~AppCacheDispatcherHost(); |
30 | 30 |
31 // BrowserIOMessageFilter implementation | 31 // BrowserIOMessageFilter implementation |
32 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 32 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
33 virtual bool OnMessageReceived(const IPC::Message& message, | 33 virtual bool OnMessageReceived(const IPC::Message& message, |
34 bool* message_was_ok) OVERRIDE; | 34 bool* message_was_ok) OVERRIDE; |
35 | 35 |
36 private: | 36 private: |
37 // BrowserMessageFilter override. | 37 // BrowserMessageFilter override. |
38 virtual void BadMessageReceived(); | 38 virtual void BadMessageReceived() OVERRIDE; |
39 | 39 |
40 // IPC message handlers | 40 // IPC message handlers |
41 void OnRegisterHost(int host_id); | 41 void OnRegisterHost(int host_id); |
42 void OnUnregisterHost(int host_id); | 42 void OnUnregisterHost(int host_id); |
43 void OnSetSpawningHostId(int host_id, int spawning_host_id); | 43 void OnSetSpawningHostId(int host_id, int spawning_host_id); |
44 void OnSelectCache(int host_id, const GURL& document_url, | 44 void OnSelectCache(int host_id, const GURL& document_url, |
45 int64 cache_document_was_loaded_from, | 45 int64 cache_document_was_loaded_from, |
46 const GURL& opt_manifest_url); | 46 const GURL& opt_manifest_url); |
47 void OnSelectCacheForWorker(int host_id, int parent_process_id, | 47 void OnSelectCacheForWorker(int host_id, int parent_process_id, |
48 int parent_host_id); | 48 int parent_host_id); |
(...skipping 20 matching lines...) Expand all Loading... |
69 appcache::SwapCacheCallback swap_cache_callback_; | 69 appcache::SwapCacheCallback swap_cache_callback_; |
70 scoped_ptr<IPC::Message> pending_reply_msg_; | 70 scoped_ptr<IPC::Message> pending_reply_msg_; |
71 | 71 |
72 // The corresponding ChildProcessHost object's id(). | 72 // The corresponding ChildProcessHost object's id(). |
73 int process_id_; | 73 int process_id_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); | 75 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ | 78 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ |
OLD | NEW |