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

Unified Diff: content/public/browser/appcache_service.h

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/appcache_service.h
diff --git a/webkit/browser/appcache/appcache_service.h b/content/public/browser/appcache_service.h
similarity index 74%
rename from webkit/browser/appcache/appcache_service.h
rename to content/public/browser/appcache_service.h
index dc6e33b4308ef35b70a7f784128782788201cddc..7742abd3f3f89b0b1f31ae8a1fc427c0ab031503 100644
--- a/webkit/browser/appcache/appcache_service.h
+++ b/content/public/browser/appcache_service.h
@@ -2,23 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_BROWSER_APPCACHE_APPCACHE_SERVICE_H_
-#define WEBKIT_BROWSER_APPCACHE_APPCACHE_SERVICE_H_
+#ifndef CONTENT_PUBLIC_BROWSER_APPCACHE_SERVICE_H_
+#define CONTENT_PUBLIC_BROWSER_APPCACHE_SERVICE_H_
#include <map>
#include <set>
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "webkit/browser/webkit_storage_browser_export.h"
-#include "webkit/common/appcache/appcache_interfaces.h"
+#include "content/common/content_export.h"
+#include "content/public/common/appcache_info.h"
+#include "net/base/completion_callback.h"
-namespace appcache {
+namespace content {
class AppCacheStorage;
// Refcounted container to avoid copying the collection in callbacks.
-struct WEBKIT_STORAGE_BROWSER_EXPORT AppCacheInfoCollection
+struct CONTENT_EXPORT AppCacheInfoCollection
: public base::RefCountedThreadSafe<AppCacheInfoCollection> {
AppCacheInfoCollection();
@@ -29,13 +30,10 @@ struct WEBKIT_STORAGE_BROWSER_EXPORT AppCacheInfoCollection
virtual ~AppCacheInfoCollection();
};
-// Class that manages the application cache service. Sends notifications
-// to many frontends. One instance per user-profile. Each instance has
-// exclusive access to its cache_directory on disk.
-class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheService {
+// Exposes a limited interface to the AppCacheService.
+// Call these methods only on the IO thread.
+class CONTENT_EXPORT AppCacheService {
public:
- virtual ~AppCacheService() { }
-
// Determines if a request for 'url' can be satisfied while offline.
// This method always completes asynchronously.
virtual void CanHandleMainResourceOffline(const GURL& url,
@@ -57,8 +55,11 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheService {
// will fail. This method always completes asynchronously.
virtual void DeleteAppCacheGroup(const GURL& manifest_url,
const net::CompletionCallback& callback) = 0;
+
+ protected:
+ virtual ~AppCacheService() {}
};
-} // namespace appcache
+} // namespace content
-#endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_SERVICE_H_
+#endif // CONTENT_PUBLIC_BROWSER_APPCACHE_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698