OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BROWSER_APPCACHE_APPCACHE_INTERNALS_UI_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_INTERNALS_UI_H_ |
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_INTERNALS_UI_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_INTERNALS_UI_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 scoped_refptr<AppCacheResponseInfo> response_info, | 73 scoped_refptr<AppCacheResponseInfo> response_info, |
74 std::unique_ptr<AppCacheResponseReader> reader, | 74 std::unique_ptr<AppCacheResponseReader> reader, |
75 scoped_refptr<net::IOBuffer> response_data, | 75 scoped_refptr<net::IOBuffer> response_data, |
76 int net_result_code); | 76 int net_result_code); |
77 void Initialize( | 77 void Initialize( |
78 const scoped_refptr<ChromeAppCacheService>& chrome_appcache_service); | 78 const scoped_refptr<ChromeAppCacheService>& chrome_appcache_service); |
79 void Shutdown(); | 79 void Shutdown(); |
80 | 80 |
81 base::WeakPtr<AppCacheInternalsUI> appcache_internals_ui_; | 81 base::WeakPtr<AppCacheInternalsUI> appcache_internals_ui_; |
82 base::WeakPtr<AppCacheServiceImpl> appcache_service_; | 82 base::WeakPtr<AppCacheServiceImpl> appcache_service_; |
83 AppCacheStorage* appcache_storage_; | |
84 base::FilePath partition_path_; | 83 base::FilePath partition_path_; |
85 scoped_refptr<AppCacheStorageReference> disabled_appcache_storage_ref_; | 84 scoped_refptr<AppCacheStorageReference> disabled_appcache_storage_ref_; |
86 std::list<ResponseEnquiry> response_enquiries_; | 85 std::list<ResponseEnquiry> response_enquiries_; |
87 bool preparing_response_; | 86 bool preparing_response_; |
88 bool shutdown_called_; | 87 bool shutdown_called_; |
89 }; | 88 }; |
90 | 89 |
91 base::WeakPtr<AppCacheInternalsUI> AsWeakPtr() { | 90 base::WeakPtr<AppCacheInternalsUI> AsWeakPtr() { |
92 return weak_ptr_factory_.GetWeakPtr(); | 91 return weak_ptr_factory_.GetWeakPtr(); |
93 } | 92 } |
(...skipping 29 matching lines...) Expand all Loading... |
123 | 122 |
124 Proxy* GetProxyForPartitionPath(const base::FilePath& path); | 123 Proxy* GetProxyForPartitionPath(const base::FilePath& path); |
125 std::list<scoped_refptr<Proxy>> appcache_proxies_; | 124 std::list<scoped_refptr<Proxy>> appcache_proxies_; |
126 base::WeakPtrFactory<AppCacheInternalsUI> weak_ptr_factory_; | 125 base::WeakPtrFactory<AppCacheInternalsUI> weak_ptr_factory_; |
127 | 126 |
128 DISALLOW_COPY_AND_ASSIGN(AppCacheInternalsUI); | 127 DISALLOW_COPY_AND_ASSIGN(AppCacheInternalsUI); |
129 }; | 128 }; |
130 | 129 |
131 } // namespace content | 130 } // namespace content |
132 #endif | 131 #endif |
OLD | NEW |