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

Side by Side Diff: chrome/browser/appcache/appcache_dispatcher_host.h

Issue 3009005: Chrome side of changes required to populate appcache resource list.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 int64 cache_document_was_loaded_from, 51 int64 cache_document_was_loaded_from,
52 const GURL& opt_manifest_url); 52 const GURL& opt_manifest_url);
53 void OnSelectCacheForWorker(int host_id, int parent_process_id, 53 void OnSelectCacheForWorker(int host_id, int parent_process_id,
54 int parent_host_id); 54 int parent_host_id);
55 void OnSelectCacheForSharedWorker(int host_id, int64 appcache_id); 55 void OnSelectCacheForSharedWorker(int host_id, int64 appcache_id);
56 void OnMarkAsForeignEntry(int host_id, const GURL& document_url, 56 void OnMarkAsForeignEntry(int host_id, const GURL& document_url,
57 int64 cache_document_was_loaded_from); 57 int64 cache_document_was_loaded_from);
58 void OnGetStatus(int host_id, IPC::Message* reply_msg); 58 void OnGetStatus(int host_id, IPC::Message* reply_msg);
59 void OnStartUpdate(int host_id, IPC::Message* reply_msg); 59 void OnStartUpdate(int host_id, IPC::Message* reply_msg);
60 void OnSwapCache(int host_id, IPC::Message* reply_msg); 60 void OnSwapCache(int host_id, IPC::Message* reply_msg);
61 61 void OnGetResourceList(
62 int host_id,
63 std::vector<appcache::AppCacheResourceInfo>* resource_infos);
62 void GetStatusCallback(appcache::Status status, void* param); 64 void GetStatusCallback(appcache::Status status, void* param);
63 void StartUpdateCallback(bool result, void* param); 65 void StartUpdateCallback(bool result, void* param);
64 void SwapCacheCallback(bool result, void* param); 66 void SwapCacheCallback(bool result, void* param);
65 67
66 void ReceivedBadMessage(uint32 msg_type); 68 void ReceivedBadMessage(uint32 msg_type);
67 69
68 AppCacheFrontendProxy frontend_proxy_; 70 AppCacheFrontendProxy frontend_proxy_;
69 appcache::AppCacheBackendImpl backend_impl_; 71 appcache::AppCacheBackendImpl backend_impl_;
70 72
71 // Temporary until Initialize() can be called from the IO thread, 73 // Temporary until Initialize() can be called from the IO thread,
72 // which will extract the AppCacheService from the URLRequestContext. 74 // which will extract the AppCacheService from the URLRequestContext.
73 scoped_refptr<URLRequestContext> request_context_; 75 scoped_refptr<URLRequestContext> request_context_;
74 scoped_refptr<URLRequestContextGetter> request_context_getter_; 76 scoped_refptr<URLRequestContextGetter> request_context_getter_;
75 77
76 // This is only valid once Initialize() has been called. 78 // This is only valid once Initialize() has been called.
77 scoped_refptr<ChromeAppCacheService> appcache_service_; 79 scoped_refptr<ChromeAppCacheService> appcache_service_;
78 80
79 scoped_ptr<appcache::GetStatusCallback> get_status_callback_; 81 scoped_ptr<appcache::GetStatusCallback> get_status_callback_;
80 scoped_ptr<appcache::StartUpdateCallback> start_update_callback_; 82 scoped_ptr<appcache::StartUpdateCallback> start_update_callback_;
81 scoped_ptr<appcache::SwapCacheCallback> swap_cache_callback_; 83 scoped_ptr<appcache::SwapCacheCallback> swap_cache_callback_;
82 scoped_ptr<IPC::Message> pending_reply_msg_; 84 scoped_ptr<IPC::Message> pending_reply_msg_;
83 85
84 ResourceDispatcherHost::Receiver* receiver_; 86 ResourceDispatcherHost::Receiver* receiver_;
85 87
86 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); 88 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost);
87 }; 89 };
88 90
89 #endif // CHROME_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 91 #endif // CHROME_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/appcache/appcache_dispatcher_host.cc » ('j') | webkit/appcache/appcache_storage_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698