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

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

Issue 3299020: Remove vestigial cookie/web app permissions prompting UI now that the async U... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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) 2010 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 CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
6 #define CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 6 #define CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "chrome/browser/chrome_thread.h" 10 #include "chrome/browser/chrome_thread.h"
(...skipping 30 matching lines...) Expand all
41 // unlimited storage to app extensions. 41 // unlimited storage to app extensions.
42 void SetOriginQuotaInMemory(const GURL& origin, int64 quota); 42 void SetOriginQuotaInMemory(const GURL& origin, int64 quota);
43 void ResetOriginQuotaInMemory(const GURL& origin); 43 void ResetOriginQuotaInMemory(const GURL& origin);
44 44
45 static void ClearLocalState(const FilePath& profile_path); 45 static void ClearLocalState(const FilePath& profile_path);
46 46
47 private: 47 private:
48 friend class ChromeThread; 48 friend class ChromeThread;
49 friend class DeleteTask<ChromeAppCacheService>; 49 friend class DeleteTask<ChromeAppCacheService>;
50 50
51 class PromptDelegate;
52
53 virtual ~ChromeAppCacheService(); 51 virtual ~ChromeAppCacheService();
54 52
55 // AppCachePolicy overrides 53 // AppCachePolicy overrides
56 virtual bool CanLoadAppCache(const GURL& manifest_url); 54 virtual bool CanLoadAppCache(const GURL& manifest_url);
57 virtual int CanCreateAppCache(const GURL& manifest_url, 55 virtual int CanCreateAppCache(const GURL& manifest_url,
58 net::CompletionCallback* callback); 56 net::CompletionCallback* callback);
59 57
60 // The DoPrompt and DidPrrompt methods are called on the UI thread, and
61 // the following CallCallback method is called on the IO thread.
62 void DoPrompt(const GURL& manifest_url, net::CompletionCallback* callback);
63 void DidPrompt(int rv, const GURL& manifest_url,
64 net::CompletionCallback* callback);
65 void CallCallback(int rv, net::CompletionCallback* callback);
66
67 // NotificationObserver override 58 // NotificationObserver override
68 virtual void Observe(NotificationType type, 59 virtual void Observe(NotificationType type,
69 const NotificationSource& source, 60 const NotificationSource& source,
70 const NotificationDetails& details); 61 const NotificationDetails& details);
71 62
72 scoped_refptr<HostContentSettingsMap> host_contents_settings_map_; 63 scoped_refptr<HostContentSettingsMap> host_contents_settings_map_;
73 NotificationRegistrar registrar_; 64 NotificationRegistrar registrar_;
74 }; 65 };
75 66
76 #endif // CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 67 #endif // CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698