| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ | 5 #ifndef CHROME_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ |
| 6 #define CHROME_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ | 6 #define CHROME_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class AppCacheDispatcherHost { | 27 class AppCacheDispatcherHost { |
| 28 public: | 28 public: |
| 29 // Constructor for use on the IO thread. | 29 // Constructor for use on the IO thread. |
| 30 explicit AppCacheDispatcherHost( | 30 explicit AppCacheDispatcherHost( |
| 31 URLRequestContext* request_context); | 31 URLRequestContext* request_context); |
| 32 | 32 |
| 33 // Constructor for use on the UI thread. | 33 // Constructor for use on the UI thread. |
| 34 explicit AppCacheDispatcherHost( | 34 explicit AppCacheDispatcherHost( |
| 35 URLRequestContextGetter* request_context_getter); | 35 URLRequestContextGetter* request_context_getter); |
| 36 | 36 |
| 37 ~AppCacheDispatcherHost(); |
| 38 |
| 37 void Initialize(ResourceDispatcherHost::Receiver* receiver); | 39 void Initialize(ResourceDispatcherHost::Receiver* receiver); |
| 38 bool OnMessageReceived(const IPC::Message& msg, bool* msg_is_ok); | 40 bool OnMessageReceived(const IPC::Message& msg, bool* msg_is_ok); |
| 39 | 41 |
| 40 int process_id() const { return backend_impl_.process_id(); } | 42 int process_id() const { return backend_impl_.process_id(); } |
| 41 | 43 |
| 42 // Note: needed to satisfy ipc message dispatching macros. | 44 // Note: needed to satisfy ipc message dispatching macros. |
| 43 bool Send(IPC::Message* msg) { | 45 bool Send(IPC::Message* msg) { |
| 44 return frontend_proxy_.sender()->Send(msg); | 46 return frontend_proxy_.sender()->Send(msg); |
| 45 } | 47 } |
| 46 | 48 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 scoped_ptr<appcache::StartUpdateCallback> start_update_callback_; | 85 scoped_ptr<appcache::StartUpdateCallback> start_update_callback_; |
| 84 scoped_ptr<appcache::SwapCacheCallback> swap_cache_callback_; | 86 scoped_ptr<appcache::SwapCacheCallback> swap_cache_callback_; |
| 85 scoped_ptr<IPC::Message> pending_reply_msg_; | 87 scoped_ptr<IPC::Message> pending_reply_msg_; |
| 86 | 88 |
| 87 ResourceDispatcherHost::Receiver* receiver_; | 89 ResourceDispatcherHost::Receiver* receiver_; |
| 88 | 90 |
| 89 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); | 91 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 #endif // CHROME_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ | 94 #endif // CHROME_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ |
| OLD | NEW |