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

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

Issue 2671643002: Rename WebApplicationCacheHostImpl::IsNewMasterEntry enum to not use YES/NO. (Closed)
Patch Set: Created 3 years, 10 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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void didReceiveResponseForMainResource(const blink::WebURLResponse&) override; 50 void didReceiveResponseForMainResource(const blink::WebURLResponse&) override;
51 void didReceiveDataForMainResource(const char* data, unsigned len) override; 51 void didReceiveDataForMainResource(const char* data, unsigned len) override;
52 void didFinishLoadingMainResource(bool success) override; 52 void didFinishLoadingMainResource(bool success) override;
53 blink::WebApplicationCacheHost::Status getStatus() override; 53 blink::WebApplicationCacheHost::Status getStatus() override;
54 bool startUpdate() override; 54 bool startUpdate() override;
55 bool swapCache() override; 55 bool swapCache() override;
56 void getResourceList(blink::WebVector<ResourceInfo>* resources) override; 56 void getResourceList(blink::WebVector<ResourceInfo>* resources) override;
57 void getAssociatedCacheInfo(CacheInfo* info) override; 57 void getAssociatedCacheInfo(CacheInfo* info) override;
58 58
59 private: 59 private:
60 enum IsNewMasterEntry { 60 enum IsNewMasterEntry { MAYBE_NEW_ENTRY, NEW_ENTRY, OLD_ENTRY };
61 MAYBE,
62 YES,
63 NO
64 };
65 61
66 blink::WebApplicationCacheHostClient* client_; 62 blink::WebApplicationCacheHostClient* client_;
67 AppCacheBackend* backend_; 63 AppCacheBackend* backend_;
68 int host_id_; 64 int host_id_;
69 AppCacheStatus status_; 65 AppCacheStatus status_;
70 blink::WebURLResponse document_response_; 66 blink::WebURLResponse document_response_;
71 GURL document_url_; 67 GURL document_url_;
72 bool is_scheme_supported_; 68 bool is_scheme_supported_;
73 bool is_get_method_; 69 bool is_get_method_;
74 IsNewMasterEntry is_new_master_entry_; 70 IsNewMasterEntry is_new_master_entry_;
75 AppCacheInfo cache_info_; 71 AppCacheInfo cache_info_;
76 GURL original_main_resource_url_; // Used to detect redirection. 72 GURL original_main_resource_url_; // Used to detect redirection.
77 bool was_select_cache_called_; 73 bool was_select_cache_called_;
78 }; 74 };
79 75
80 } // namespace content 76 } // namespace content
81 77
82 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ 78 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698