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

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

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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
« no previous file with comments | « webkit/appcache/appcache_host.h ('k') | webkit/appcache/view_appcache_internals_job.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) 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_UPDATE_JOB_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_
6 #define WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 15 matching lines...) Expand all
26 26
27 namespace appcache { 27 namespace appcache {
28 28
29 class HostNotifier; 29 class HostNotifier;
30 30
31 // Application cache Update algorithm and state. 31 // Application cache Update algorithm and state.
32 class AppCacheUpdateJob : public AppCacheStorage::Delegate, 32 class AppCacheUpdateJob : public AppCacheStorage::Delegate,
33 public AppCacheHost::Observer { 33 public AppCacheHost::Observer {
34 public: 34 public:
35 AppCacheUpdateJob(AppCacheService* service, AppCacheGroup* group); 35 AppCacheUpdateJob(AppCacheService* service, AppCacheGroup* group);
36 ~AppCacheUpdateJob(); 36 virtual ~AppCacheUpdateJob();
37 37
38 // Triggers the update process or adds more info if this update is already 38 // Triggers the update process or adds more info if this update is already
39 // in progress. 39 // in progress.
40 void StartUpdate(AppCacheHost* host, const GURL& new_master_resource); 40 void StartUpdate(AppCacheHost* host, const GURL& new_master_resource);
41 41
42 private: 42 private:
43 friend class ScopedRunnableMethodFactory<AppCacheUpdateJob>; 43 friend class ScopedRunnableMethodFactory<AppCacheUpdateJob>;
44 friend class AppCacheUpdateJobTest; 44 friend class AppCacheUpdateJobTest;
45 class URLFetcher; 45 class URLFetcher;
46 46
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 public: 94 public:
95 enum FetchType { 95 enum FetchType {
96 MANIFEST_FETCH, 96 MANIFEST_FETCH,
97 URL_FETCH, 97 URL_FETCH,
98 MASTER_ENTRY_FETCH, 98 MASTER_ENTRY_FETCH,
99 MANIFEST_REFETCH, 99 MANIFEST_REFETCH,
100 }; 100 };
101 URLFetcher(const GURL& url, 101 URLFetcher(const GURL& url,
102 FetchType fetch_type, 102 FetchType fetch_type,
103 AppCacheUpdateJob* job); 103 AppCacheUpdateJob* job);
104 ~URLFetcher(); 104 virtual ~URLFetcher();
105 void Start(); 105 void Start();
106 FetchType fetch_type() const { return fetch_type_; } 106 FetchType fetch_type() const { return fetch_type_; }
107 net::URLRequest* request() const { return request_.get(); } 107 net::URLRequest* request() const { return request_.get(); }
108 const AppCacheEntry& existing_entry() const { return existing_entry_; } 108 const AppCacheEntry& existing_entry() const { return existing_entry_; }
109 const std::string& manifest_data() const { return manifest_data_; } 109 const std::string& manifest_data() const { return manifest_data_; }
110 AppCacheResponseWriter* response_writer() const { 110 AppCacheResponseWriter* response_writer() const {
111 return response_writer_.get(); 111 return response_writer_.get();
112 } 112 }
113 void set_existing_response_headers(net::HttpResponseHeaders* headers) { 113 void set_existing_response_headers(net::HttpResponseHeaders* headers) {
114 existing_response_headers_ = headers; 114 existing_response_headers_ = headers;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 policy_callback_; 314 policy_callback_;
315 315
316 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); 316 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate);
317 317
318 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); 318 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob);
319 }; 319 };
320 320
321 } // namespace appcache 321 } // namespace appcache
322 322
323 #endif // WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_ 323 #endif // WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_host.h ('k') | webkit/appcache/view_appcache_internals_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698