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

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

Issue 164933002: Expose details for appcache error events [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore failed_resource_url Created 6 years, 8 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 | Annotate | Revision Log
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 "third_party/WebKit/public/platform/WebApplicationCacheHost.h" 10 #include "third_party/WebKit/public/platform/WebApplicationCacheHost.h"
(...skipping 16 matching lines...) Expand all
27 virtual ~WebApplicationCacheHostImpl(); 27 virtual ~WebApplicationCacheHostImpl();
28 28
29 int host_id() const { return host_id_; } 29 int host_id() const { return host_id_; }
30 appcache::AppCacheBackend* backend() const { return backend_; } 30 appcache::AppCacheBackend* backend() const { return backend_; }
31 blink::WebApplicationCacheHostClient* client() const { return client_; } 31 blink::WebApplicationCacheHostClient* client() const { return client_; }
32 32
33 virtual void OnCacheSelected(const appcache::AppCacheInfo& info); 33 virtual void OnCacheSelected(const appcache::AppCacheInfo& info);
34 void OnStatusChanged(appcache::Status); 34 void OnStatusChanged(appcache::Status);
35 void OnEventRaised(appcache::EventID); 35 void OnEventRaised(appcache::EventID);
36 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); 36 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete);
37 void OnErrorEventRaised(const std::string& message); 37 void OnErrorEventRaised(const appcache::ErrorDetails& details);
38 virtual void OnLogMessage(appcache::LogLevel log_level, 38 virtual void OnLogMessage(appcache::LogLevel log_level,
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);
(...skipping 23 matching lines...) Expand all
71 bool is_get_method_; 71 bool is_get_method_;
72 IsNewMasterEntry is_new_master_entry_; 72 IsNewMasterEntry is_new_master_entry_;
73 appcache::AppCacheInfo cache_info_; 73 appcache::AppCacheInfo cache_info_;
74 GURL original_main_resource_url_; // Used to detect redirection. 74 GURL original_main_resource_url_; // Used to detect redirection.
75 bool was_select_cache_called_; 75 bool was_select_cache_called_;
76 }; 76 };
77 77
78 } // namespace content 78 } // namespace content
79 79
80 #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 | « content/child/appcache/appcache_frontend_impl.cc ('k') | content/child/appcache/web_application_cache_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698