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

Side by Side Diff: webkit/appcache/web_application_cache_host_impl.h

Issue 1600002: Indicate in the tab UI if appcache creation was blocked by privacy settings. (Closed)
Patch Set: updates Created 10 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
OLDNEW
1 // Copyright (c) 2009 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_WEB_APPLICATION_CACHE_HOST_IMPL_H_ 5 #ifndef WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
6 #define WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ 6 #define WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
7 7
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 #include "third_party/WebKit/WebKit/chromium/public/WebApplicationCacheHostClien t.h" 9 #include "third_party/WebKit/WebKit/chromium/public/WebApplicationCacheHostClien t.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h"
11 #include "webkit/appcache/appcache_interfaces.h" 11 #include "webkit/appcache/appcache_interfaces.h"
(...skipping 14 matching lines...) Expand all
26 26
27 WebApplicationCacheHostImpl(WebKit::WebApplicationCacheHostClient* client, 27 WebApplicationCacheHostImpl(WebKit::WebApplicationCacheHostClient* client,
28 AppCacheBackend* backend); 28 AppCacheBackend* backend);
29 virtual ~WebApplicationCacheHostImpl(); 29 virtual ~WebApplicationCacheHostImpl();
30 30
31 int host_id() const { return host_id_; } 31 int host_id() const { return host_id_; }
32 32
33 void OnCacheSelected(int64 selected_cache_id, appcache::Status status); 33 void OnCacheSelected(int64 selected_cache_id, appcache::Status status);
34 void OnStatusChanged(appcache::Status); 34 void OnStatusChanged(appcache::Status);
35 void OnEventRaised(appcache::EventID); 35 void OnEventRaised(appcache::EventID);
36 virtual void OnContentBlocked() {}
36 37
37 // WebApplicationCacheHost methods 38 // WebApplicationCacheHost methods
38 virtual void willStartMainResourceRequest(WebKit::WebURLRequest&); 39 virtual void willStartMainResourceRequest(WebKit::WebURLRequest&);
39 virtual void willStartSubResourceRequest(WebKit::WebURLRequest&); 40 virtual void willStartSubResourceRequest(WebKit::WebURLRequest&);
40 virtual void selectCacheWithoutManifest(); 41 virtual void selectCacheWithoutManifest();
41 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); 42 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL);
42 virtual void didReceiveResponseForMainResource(const WebKit::WebURLResponse&); 43 virtual void didReceiveResponseForMainResource(const WebKit::WebURLResponse&);
43 virtual void didReceiveDataForMainResource(const char* data, int len); 44 virtual void didReceiveDataForMainResource(const char* data, int len);
44 virtual void didFinishLoadingMainResource(bool success); 45 virtual void didFinishLoadingMainResource(bool success);
45 virtual WebKit::WebApplicationCacheHost::Status status(); 46 virtual WebKit::WebApplicationCacheHost::Status status();
(...skipping 17 matching lines...) Expand all
63 WebKit::WebURLResponse document_response_; 64 WebKit::WebURLResponse document_response_;
64 GURL document_url_; 65 GURL document_url_;
65 bool is_scheme_supported_; 66 bool is_scheme_supported_;
66 bool is_get_method_; 67 bool is_get_method_;
67 IsNewMasterEntry is_new_master_entry_; 68 IsNewMasterEntry is_new_master_entry_;
68 }; 69 };
69 70
70 } // namespace 71 } // namespace
71 72
72 #endif // WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ 73 #endif // WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698