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

Side by Side Diff: webkit/appcache/appcache_frontend_impl.cc

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 #include "webkit/appcache/appcache_frontend_impl.h" 5 #include "webkit/appcache/appcache_frontend_impl.h"
6 #include "webkit/appcache/web_application_cache_host_impl.h" 6 #include "webkit/appcache/web_application_cache_host_impl.h"
7 7
8 namespace appcache { 8 namespace appcache {
9 9
10 // Inline helper to keep the lines shorter and unwrapped. 10 // Inline helper to keep the lines shorter and unwrapped.
11 inline WebApplicationCacheHostImpl* GetHost(int id) { 11 inline WebApplicationCacheHostImpl* GetHost(int id) {
(...skipping 20 matching lines...) Expand all
32 void AppCacheFrontendImpl::OnEventRaised(const std::vector<int>& host_ids, 32 void AppCacheFrontendImpl::OnEventRaised(const std::vector<int>& host_ids,
33 EventID event_id) { 33 EventID event_id) {
34 for (std::vector<int>::const_iterator i = host_ids.begin(); 34 for (std::vector<int>::const_iterator i = host_ids.begin();
35 i != host_ids.end(); ++i) { 35 i != host_ids.end(); ++i) {
36 WebApplicationCacheHostImpl* host = GetHost(*i); 36 WebApplicationCacheHostImpl* host = GetHost(*i);
37 if (host) 37 if (host)
38 host->OnEventRaised(event_id); 38 host->OnEventRaised(event_id);
39 } 39 }
40 } 40 }
41 41
42 void AppCacheFrontendImpl::OnContentBlocked(int host_id) {
43 WebApplicationCacheHostImpl* host = GetHost(host_id);
44 if (host)
45 host->OnContentBlocked();
46 }
47
42 } // namespace appcache 48 } // namespace appcache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698