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

Side by Side Diff: webkit/appcache/appcache_backend_impl.h

Issue 8215002: base::Bind: Cleanup in test_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
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 WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_
6 #define WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "webkit/appcache/appcache_export.h" 9 #include "webkit/appcache/appcache_export.h"
10 #include "webkit/appcache/appcache_host.h" 10 #include "webkit/appcache/appcache_host.h"
(...skipping 23 matching lines...) Expand all
34 const GURL& document_url, 34 const GURL& document_url,
35 const int64 cache_document_was_loaded_from, 35 const int64 cache_document_was_loaded_from,
36 const GURL& manifest_url); 36 const GURL& manifest_url);
37 void GetResourceList( 37 void GetResourceList(
38 int host_id, std::vector<AppCacheResourceInfo>* resource_infos); 38 int host_id, std::vector<AppCacheResourceInfo>* resource_infos);
39 bool SelectCacheForWorker(int host_id, int parent_process_id, 39 bool SelectCacheForWorker(int host_id, int parent_process_id,
40 int parent_host_id); 40 int parent_host_id);
41 bool SelectCacheForSharedWorker(int host_id, int64 appcache_id); 41 bool SelectCacheForSharedWorker(int host_id, int64 appcache_id);
42 bool MarkAsForeignEntry(int host_id, const GURL& document_url, 42 bool MarkAsForeignEntry(int host_id, const GURL& document_url,
43 int64 cache_document_was_loaded_from); 43 int64 cache_document_was_loaded_from);
44 bool GetStatusWithCallback(int host_id, GetStatusCallback* callback, 44 bool GetStatusWithCallback(int host_id, const GetStatusCallback& callback,
45 void* callback_param); 45 void* callback_param);
46 bool StartUpdateWithCallback(int host_id, StartUpdateCallback* callback, 46 bool StartUpdateWithCallback(int host_id, const StartUpdateCallback& callback,
47 void* callback_param); 47 void* callback_param);
48 bool SwapCacheWithCallback(int host_id, SwapCacheCallback* callback, 48 bool SwapCacheWithCallback(int host_id, const SwapCacheCallback& callback,
49 void* callback_param); 49 void* callback_param);
50 50
51 // Returns a pointer to a registered host. The backend retains ownership. 51 // Returns a pointer to a registered host. The backend retains ownership.
52 AppCacheHost* GetHost(int host_id) { 52 AppCacheHost* GetHost(int host_id) {
53 HostMap::iterator it = hosts_.find(host_id); 53 HostMap::iterator it = hosts_.find(host_id);
54 return (it != hosts_.end()) ? (it->second) : NULL; 54 return (it != hosts_.end()) ? (it->second) : NULL;
55 } 55 }
56 56
57 typedef base::hash_map<int, AppCacheHost*> HostMap; 57 typedef base::hash_map<int, AppCacheHost*> HostMap;
58 const HostMap& hosts() { return hosts_; } 58 const HostMap& hosts() { return hosts_; }
59 59
60 private: 60 private:
61 AppCacheService* service_; 61 AppCacheService* service_;
62 AppCacheFrontend* frontend_; 62 AppCacheFrontend* frontend_;
63 int process_id_; 63 int process_id_;
64 HostMap hosts_; 64 HostMap hosts_;
65 }; 65 };
66 66
67 } // namespace 67 } // namespace
68 68
69 #endif // WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ 69 #endif // WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_dispatcher_host.cc ('k') | webkit/appcache/appcache_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698