Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: chrome/common/app_cache/app_cache_context_impl.h

Issue 173026: Move IDMap back to base/ where it is needed. (Closed)
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/app_cache/app_cache_dispatcher_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/common/id_map.h" 8 #include "base/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
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_
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/app_cache/app_cache_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698