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

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

Issue 666563004: Restore code removed temporarily for refactoring on WebApplicationCacheHost in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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
« no previous file with comments | « no previous file | content/child/appcache/web_application_cache_host_impl.cc » ('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 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"
(...skipping 28 matching lines...) Expand all
39 const std::string& message) {} 39 const std::string& message) {}
40 virtual void OnContentBlocked(const GURL& manifest_url) {} 40 virtual void OnContentBlocked(const GURL& manifest_url) {}
41 41
42 // blink::WebApplicationCacheHost: 42 // blink::WebApplicationCacheHost:
43 virtual void willStartMainResourceRequest( 43 virtual void willStartMainResourceRequest(
44 blink::WebURLRequest&, const blink::WebApplicationCacheHost*); 44 blink::WebURLRequest&, const blink::WebApplicationCacheHost*);
45 virtual void willStartSubResourceRequest(blink::WebURLRequest&); 45 virtual void willStartSubResourceRequest(blink::WebURLRequest&);
46 virtual void selectCacheWithoutManifest(); 46 virtual void selectCacheWithoutManifest();
47 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL); 47 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL);
48 virtual void didReceiveResponseForMainResource(const blink::WebURLResponse&); 48 virtual void didReceiveResponseForMainResource(const blink::WebURLResponse&);
49 // TODO(tyoshino): Revive didReceiveDataForMainResource once Blink side 49 virtual void didReceiveDataForMainResource(const char* data, unsigned len);
50 // refactoring is done. See crbug.com/418885.
51 virtual void didFinishLoadingMainResource(bool success); 50 virtual void didFinishLoadingMainResource(bool success);
52 virtual blink::WebApplicationCacheHost::Status status(); 51 virtual blink::WebApplicationCacheHost::Status status();
53 virtual bool startUpdate(); 52 virtual bool startUpdate();
54 virtual bool swapCache(); 53 virtual bool swapCache();
55 virtual void getResourceList(blink::WebVector<ResourceInfo>* resources); 54 virtual void getResourceList(blink::WebVector<ResourceInfo>* resources);
56 virtual void getAssociatedCacheInfo(CacheInfo* info); 55 virtual void getAssociatedCacheInfo(CacheInfo* info);
57 56
58 private: 57 private:
59 enum IsNewMasterEntry { 58 enum IsNewMasterEntry {
60 MAYBE, 59 MAYBE,
(...skipping 11 matching lines...) Expand all
72 bool is_get_method_; 71 bool is_get_method_;
73 IsNewMasterEntry is_new_master_entry_; 72 IsNewMasterEntry is_new_master_entry_;
74 AppCacheInfo cache_info_; 73 AppCacheInfo cache_info_;
75 GURL original_main_resource_url_; // Used to detect redirection. 74 GURL original_main_resource_url_; // Used to detect redirection.
76 bool was_select_cache_called_; 75 bool was_select_cache_called_;
77 }; 76 };
78 77
79 } // namespace content 78 } // namespace content
80 79
81 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ 80 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/appcache/web_application_cache_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698