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

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

Issue 6667057: Loading from the "most appropiate" appcache. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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) 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 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_host.h" 9 #include "webkit/appcache/appcache_host.h"
10 10
(...skipping 10 matching lines...) Expand all
21 AppCacheFrontend* frontend, 21 AppCacheFrontend* frontend,
22 int process_id); 22 int process_id);
23 23
24 int process_id() const { return process_id_; } 24 int process_id() const { return process_id_; }
25 25
26 // Methods to support the AppCacheBackend interface. A false return 26 // Methods to support the AppCacheBackend interface. A false return
27 // value indicates an invalid host_id and that no action was taken 27 // value indicates an invalid host_id and that no action was taken
28 // by the backend impl. 28 // by the backend impl.
29 bool RegisterHost(int host_id); 29 bool RegisterHost(int host_id);
30 bool UnregisterHost(int host_id); 30 bool UnregisterHost(int host_id);
31 bool SetSpawningHostId(int host_id, int spawning_host_id);
31 bool SelectCache(int host_id, 32 bool SelectCache(int host_id,
32 const GURL& document_url, 33 const GURL& document_url,
33 const int64 cache_document_was_loaded_from, 34 const int64 cache_document_was_loaded_from,
34 const GURL& manifest_url); 35 const GURL& manifest_url);
35 void GetResourceList( 36 void GetResourceList(
36 int host_id, std::vector<AppCacheResourceInfo>* resource_infos); 37 int host_id, std::vector<AppCacheResourceInfo>* resource_infos);
37 bool SelectCacheForWorker(int host_id, int parent_process_id, 38 bool SelectCacheForWorker(int host_id, int parent_process_id,
38 int parent_host_id); 39 int parent_host_id);
39 bool SelectCacheForSharedWorker(int host_id, int64 appcache_id); 40 bool SelectCacheForSharedWorker(int host_id, int64 appcache_id);
40 bool MarkAsForeignEntry(int host_id, const GURL& document_url, 41 bool MarkAsForeignEntry(int host_id, const GURL& document_url,
(...skipping 17 matching lines...) Expand all
58 private: 59 private:
59 AppCacheService* service_; 60 AppCacheService* service_;
60 AppCacheFrontend* frontend_; 61 AppCacheFrontend* frontend_;
61 int process_id_; 62 int process_id_;
62 HostMap hosts_; 63 HostMap hosts_;
63 }; 64 };
64 65
65 } // namespace 66 } // namespace
66 67
67 #endif // WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ 68 #endif // WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_
OLDNEW
« no previous file with comments | « content/worker/worker_webapplicationcachehost_impl.cc ('k') | webkit/appcache/appcache_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698