| 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_COMMON_APP_CACHE_APP_CACHE_CONTEXT_IMPL_H_ | 5 #ifndef CHROME_COMMON_APP_CACHE_APP_CACHE_CONTEXT_IMPL_H_ |
| 6 #define CHROME_COMMON_APP_CACHE_APP_CACHE_CONTEXT_IMPL_H_ | 6 #define CHROME_COMMON_APP_CACHE_APP_CACHE_CONTEXT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/id_map.h" | 8 #include "chrome/common/id_map.h" |
| 9 #include "ipc/ipc_message.h" | 9 #include "ipc/ipc_message.h" |
| 10 #include "webkit/glue/webappcachecontext.h" | 10 #include "webkit/glue/webappcachecontext.h" |
| 11 | 11 |
| 12 // A concrete implemenation of WebAppCacheContext for use in a child process. | 12 // A concrete implemenation of WebAppCacheContext for use in a child process. |
| 13 class AppCacheContextImpl : public WebAppCacheContext { | 13 class AppCacheContextImpl : public WebAppCacheContext { |
| 14 public: | 14 public: |
| 15 // Returns the context having given id or NULL if there is no such context. | 15 // Returns the context having given id or NULL if there is no such context. |
| 16 static AppCacheContextImpl* FromContextId(int id); | 16 static AppCacheContextImpl* FromContextId(int id); |
| 17 | 17 |
| 18 AppCacheContextImpl(IPC::Message::Sender* sender); | 18 AppCacheContextImpl(IPC::Message::Sender* sender); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 int context_id_; | 40 int context_id_; |
| 41 int64 app_cache_id_; | 41 int64 app_cache_id_; |
| 42 int pending_select_request_id_; | 42 int pending_select_request_id_; |
| 43 IPC::Message::Sender* sender_; | 43 IPC::Message::Sender* sender_; |
| 44 | 44 |
| 45 static IDMap<AppCacheContextImpl> all_contexts; | 45 static IDMap<AppCacheContextImpl> all_contexts; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // CHROME_COMMON_APP_CACHE_APP_CACHE_CONTEXT_IMPL_H_ | 48 #endif // CHROME_COMMON_APP_CACHE_APP_CACHE_CONTEXT_IMPL_H_ |
| OLD | NEW |