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

Side by Side Diff: content/child/appcache/web_application_cache_host_impl.h

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Address review comments Created 4 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ 5 #ifndef CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
6 #define CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ 6 #define CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/appcache_interfaces.h" 10 #include "content/common/appcache_interfaces.h"
11 #include "third_party/WebKit/public/platform/WebApplicationCacheHost.h" 11 #include "third_party/WebKit/public/platform/WebApplicationCacheHost.h"
12 #include "third_party/WebKit/public/platform/WebApplicationCacheHostClient.h" 12 #include "third_party/WebKit/public/platform/WebApplicationCacheHostClient.h"
13 #include "third_party/WebKit/public/platform/WebURLResponse.h" 13 #include "third_party/WebKit/public/platform/WebURLResponse.h"
14 #include "third_party/WebKit/public/platform/WebVector.h" 14 #include "third_party/WebKit/public/platform/WebVector.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 class WebApplicationCacheHostImpl 19 class WebApplicationCacheHostImpl
20 : NON_EXPORTED_BASE(public blink::WebApplicationCacheHost) { 20 : NON_EXPORTED_BASE(public blink::WebApplicationCacheHost) {
21 public: 21 public:
22 // Returns the host having given id or NULL if there is no such host. 22 // Returns the host having given id or NULL if there is no such host.
23 static WebApplicationCacheHostImpl* FromId(int id); 23 static WebApplicationCacheHostImpl* FromId(int id);
24 24
25 WebApplicationCacheHostImpl(blink::WebApplicationCacheHostClient* client, 25 WebApplicationCacheHostImpl(blink::WebApplicationCacheHostClient* client,
26 AppCacheBackend* backend); 26 AppCacheBackend* backend,
27 int appcache_host_id);
27 ~WebApplicationCacheHostImpl() override; 28 ~WebApplicationCacheHostImpl() override;
28 29
29 int host_id() const { return host_id_; } 30 int host_id() const { return host_id_; }
30 AppCacheBackend* backend() const { return backend_; } 31 AppCacheBackend* backend() const { return backend_; }
31 blink::WebApplicationCacheHostClient* client() const { return client_; } 32 blink::WebApplicationCacheHostClient* client() const { return client_; }
32 33
33 virtual void OnCacheSelected(const AppCacheInfo& info); 34 virtual void OnCacheSelected(const AppCacheInfo& info);
34 void OnStatusChanged(AppCacheStatus); 35 void OnStatusChanged(AppCacheStatus);
35 void OnEventRaised(AppCacheEventID); 36 void OnEventRaised(AppCacheEventID);
36 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); 37 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool is_get_method_; 73 bool is_get_method_;
73 IsNewMasterEntry is_new_master_entry_; 74 IsNewMasterEntry is_new_master_entry_;
74 AppCacheInfo cache_info_; 75 AppCacheInfo cache_info_;
75 GURL original_main_resource_url_; // Used to detect redirection. 76 GURL original_main_resource_url_; // Used to detect redirection.
76 bool was_select_cache_called_; 77 bool was_select_cache_called_;
77 }; 78 };
78 79
79 } // namespace content 80 } // namespace content
80 81
81 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ 82 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_unittest.cc ('k') | content/child/appcache/web_application_cache_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698