OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEW_APPCACHE_INTERNALS_JOB_H_ | 5 #ifndef WEBKIT_APPCACHE_VIEW_APPCACHE_INTERNALS_JOB_H_ |
6 #define WEBKIT_APPCACHE_VIEW_APPCACHE_INTERNALS_JOB_H_ | 6 #define WEBKIT_APPCACHE_VIEW_APPCACHE_INTERNALS_JOB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/url_request/url_request_simple_job.h" | 10 #include "net/url_request/url_request_simple_job.h" |
11 #include "webkit/appcache/appcache_service.h" | 11 #include "webkit/appcache/appcache_service.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 class URLRequest; | 14 class URLRequest; |
15 } // namespace net | 15 } // namespace net |
16 | 16 |
17 namespace appcache { | 17 namespace appcache { |
18 | 18 |
19 // A job subclass that implements a protocol to inspect the internal | 19 // A job subclass that implements a protocol to inspect the internal |
20 // state of appcache service. | 20 // state of appcache service. |
21 class ViewAppCacheInternalsJob : public URLRequestSimpleJob { | 21 class ViewAppCacheInternalsJob : public net::URLRequestSimpleJob { |
22 public: | 22 public: |
23 // Stores handle to appcache service for getting information. | 23 // Stores handle to appcache service for getting information. |
24 ViewAppCacheInternalsJob(net::URLRequest* request, AppCacheService* service); | 24 ViewAppCacheInternalsJob(net::URLRequest* request, AppCacheService* service); |
25 | 25 |
26 // Fetches the AppCache Info and calls StartAsync after it is done. | 26 // Fetches the AppCache Info and calls StartAsync after it is done. |
27 virtual void Start(); | 27 virtual void Start(); |
28 | 28 |
29 virtual bool GetData(std::string* mime_type, | 29 virtual bool GetData(std::string* mime_type, |
30 std::string* charset, | 30 std::string* charset, |
31 std::string* data) const; | 31 std::string* data) const; |
(...skipping 18 matching lines...) Loading... |
50 scoped_refptr<AppCacheInfoCollection> info_collection_; | 50 scoped_refptr<AppCacheInfoCollection> info_collection_; |
51 // Not owned. | 51 // Not owned. |
52 AppCacheService* appcache_service_; | 52 AppCacheService* appcache_service_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(ViewAppCacheInternalsJob); | 54 DISALLOW_COPY_AND_ASSIGN(ViewAppCacheInternalsJob); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace appcache | 57 } // namespace appcache |
58 | 58 |
59 #endif // WEBKIT_APPCACHE_VIEW_APPCACHE_INTERNALS_JOB_H_ | 59 #endif // WEBKIT_APPCACHE_VIEW_APPCACHE_INTERNALS_JOB_H_ |
OLD | NEW |