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

Side by Side Diff: content/public/browser/appcache_service.h

Issue 2473003002: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Another missing forward declaration Created 4 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_APPCACHE_SERVICE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_APPCACHE_SERVICE_H_
6 #define CONTENT_PUBLIC_BROWSER_APPCACHE_SERVICE_H_ 6 #define CONTENT_PUBLIC_BROWSER_APPCACHE_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/common/appcache_info.h" 14 #include "content/public/common/appcache_info.h"
15 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 class AppCacheStorage;
20
21 // Refcounted container to avoid copying the collection in callbacks. 19 // Refcounted container to avoid copying the collection in callbacks.
22 struct CONTENT_EXPORT AppCacheInfoCollection 20 struct CONTENT_EXPORT AppCacheInfoCollection
23 : public base::RefCountedThreadSafe<AppCacheInfoCollection> { 21 : public base::RefCountedThreadSafe<AppCacheInfoCollection> {
24 AppCacheInfoCollection(); 22 AppCacheInfoCollection();
25 23
26 std::map<GURL, AppCacheInfoVector> infos_by_origin; 24 std::map<GURL, AppCacheInfoVector> infos_by_origin;
27 25
28 private: 26 private:
29 friend class base::RefCountedThreadSafe<AppCacheInfoCollection>; 27 friend class base::RefCountedThreadSafe<AppCacheInfoCollection>;
30 virtual ~AppCacheInfoCollection(); 28 virtual ~AppCacheInfoCollection();
(...skipping 18 matching lines...) Expand all
49 virtual void DeleteAppCacheGroup(const GURL& manifest_url, 47 virtual void DeleteAppCacheGroup(const GURL& manifest_url,
50 const net::CompletionCallback& callback) = 0; 48 const net::CompletionCallback& callback) = 0;
51 49
52 protected: 50 protected:
53 virtual ~AppCacheService() {} 51 virtual ~AppCacheService() {}
54 }; 52 };
55 53
56 } // namespace content 54 } // namespace content
57 55
58 #endif // CONTENT_PUBLIC_BROWSER_APPCACHE_SERVICE_H_ 56 #endif // CONTENT_PUBLIC_BROWSER_APPCACHE_SERVICE_H_
OLDNEW
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | content/public/browser/background_sync_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698