| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_MANIFEST_MANIFEST_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_H_ |
| 6 #define CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_H_ | 6 #define CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 enum ResolveState { | 53 enum ResolveState { |
| 54 ResolveStateSuccess, | 54 ResolveStateSuccess, |
| 55 ResolveStateFailure | 55 ResolveStateFailure |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 // RenderFrameObserver implementation. | 58 // RenderFrameObserver implementation. |
| 59 void OnDestruct() override; | 59 void OnDestruct() override; |
| 60 | 60 |
| 61 // Called when receiving a ManifestManagerMsg_RequestManifest from the browser | 61 // Called when receiving a ManifestManagerMsg_RequestManifest from the browser |
| 62 // process. | 62 // process. |
| 63 void OnHasManifest(int request_id); | |
| 64 void OnRequestManifest(int request_id); | 63 void OnRequestManifest(int request_id); |
| 65 void OnRequestManifestComplete(int request_id, | 64 void OnRequestManifestComplete(int request_id, |
| 66 const GURL&, | 65 const GURL&, |
| 67 const Manifest&, | 66 const Manifest&, |
| 68 const ManifestDebugInfo&); | 67 const ManifestDebugInfo&); |
| 69 | 68 |
| 70 void FetchManifest(); | 69 void FetchManifest(); |
| 71 void OnManifestFetchComplete(const GURL& document_url, | 70 void OnManifestFetchComplete(const GURL& document_url, |
| 72 const blink::WebURLResponse& response, | 71 const blink::WebURLResponse& response, |
| 73 const std::string& data); | 72 const std::string& data); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 94 ManifestDebugInfo manifest_debug_info_; | 93 ManifestDebugInfo manifest_debug_info_; |
| 95 | 94 |
| 96 std::list<GetManifestCallback> pending_callbacks_; | 95 std::list<GetManifestCallback> pending_callbacks_; |
| 97 | 96 |
| 98 DISALLOW_COPY_AND_ASSIGN(ManifestManager); | 97 DISALLOW_COPY_AND_ASSIGN(ManifestManager); |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 } // namespace content | 100 } // namespace content |
| 102 | 101 |
| 103 #endif // CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_H_ | 102 #endif // CONTENT_RENDERER_MANIFEST_MANIFEST_MANAGER_H_ |
| OLD | NEW |