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

Side by Side Diff: content/browser/appcache/chrome_appcache_service.h

Issue 7720022: Third-party appcache blocking. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 3 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
6 #define CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 6 #define CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/browser/browser_thread.h" 10 #include "content/browser/browser_thread.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const content::ResourceContext* resource_context, 42 const content::ResourceContext* resource_context,
43 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy); 43 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy);
44 44
45 private: 45 private:
46 friend class BrowserThread; 46 friend class BrowserThread;
47 friend class DeleteTask<ChromeAppCacheService>; 47 friend class DeleteTask<ChromeAppCacheService>;
48 48
49 virtual ~ChromeAppCacheService(); 49 virtual ~ChromeAppCacheService();
50 50
51 // AppCachePolicy overrides 51 // AppCachePolicy overrides
52 virtual bool CanLoadAppCache(const GURL& manifest_url); 52 virtual bool CanLoadAppCache(const GURL& manifest_url,
53 virtual int CanCreateAppCache(const GURL& manifest_url, 53 const GURL& first_party);
54 net::CompletionCallback* callback); 54 virtual bool CanCreateAppCache(const GURL& manifest_url,
55 const GURL& first_party);
55 56
56 // NotificationObserver override 57 // NotificationObserver override
57 virtual void Observe(int type, 58 virtual void Observe(int type,
58 const NotificationSource& source, 59 const NotificationSource& source,
59 const NotificationDetails& details); 60 const NotificationDetails& details);
60 61
61 const content::ResourceContext* resource_context_; 62 const content::ResourceContext* resource_context_;
62 NotificationRegistrar registrar_; 63 NotificationRegistrar registrar_;
63 FilePath cache_path_; 64 FilePath cache_path_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(ChromeAppCacheService); 66 DISALLOW_COPY_AND_ASSIGN(ChromeAppCacheService);
66 }; 67 };
67 68
68 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 69 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/offline_resource_handler.cc ('k') | content/browser/appcache/chrome_appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698