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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual bool OnMessageReceived(const IPC::Message& message, | 44 virtual bool OnMessageReceived(const IPC::Message& message, |
45 bool* message_was_ok); | 45 bool* message_was_ok); |
46 | 46 |
47 private: | 47 private: |
48 // BrowserMessageFilter override. | 48 // BrowserMessageFilter override. |
49 virtual void BadMessageReceived(); | 49 virtual void BadMessageReceived(); |
50 | 50 |
51 // IPC message handlers | 51 // IPC message handlers |
52 void OnRegisterHost(int host_id); | 52 void OnRegisterHost(int host_id); |
53 void OnUnregisterHost(int host_id); | 53 void OnUnregisterHost(int host_id); |
| 54 void OnSetSpawningHostId(int host_id, int spawning_host_id); |
54 void OnSelectCache(int host_id, const GURL& document_url, | 55 void OnSelectCache(int host_id, const GURL& document_url, |
55 int64 cache_document_was_loaded_from, | 56 int64 cache_document_was_loaded_from, |
56 const GURL& opt_manifest_url); | 57 const GURL& opt_manifest_url); |
57 void OnSelectCacheForWorker(int host_id, int parent_process_id, | 58 void OnSelectCacheForWorker(int host_id, int parent_process_id, |
58 int parent_host_id); | 59 int parent_host_id); |
59 void OnSelectCacheForSharedWorker(int host_id, int64 appcache_id); | 60 void OnSelectCacheForSharedWorker(int host_id, int64 appcache_id); |
60 void OnMarkAsForeignEntry(int host_id, const GURL& document_url, | 61 void OnMarkAsForeignEntry(int host_id, const GURL& document_url, |
61 int64 cache_document_was_loaded_from); | 62 int64 cache_document_was_loaded_from); |
62 void OnGetStatus(int host_id, IPC::Message* reply_msg); | 63 void OnGetStatus(int host_id, IPC::Message* reply_msg); |
63 void OnStartUpdate(int host_id, IPC::Message* reply_msg); | 64 void OnStartUpdate(int host_id, IPC::Message* reply_msg); |
(...skipping 23 matching lines...) Expand all Loading... |
87 scoped_ptr<appcache::SwapCacheCallback> swap_cache_callback_; | 88 scoped_ptr<appcache::SwapCacheCallback> swap_cache_callback_; |
88 scoped_ptr<IPC::Message> pending_reply_msg_; | 89 scoped_ptr<IPC::Message> pending_reply_msg_; |
89 | 90 |
90 // The corresponding ChildProcessHost object's id(). | 91 // The corresponding ChildProcessHost object's id(). |
91 int process_id_; | 92 int process_id_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); | 94 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); |
94 }; | 95 }; |
95 | 96 |
96 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ | 97 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ |
OLD | NEW |