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

Side by Side Diff: content/browser/appcache/appcache_working_set.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, 5 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 WEBKIT_BROWSER_APPCACHE_APPCACHE_WORKING_SET_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_WORKING_SET_H_
6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_WORKING_SET_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_WORKING_SET_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
11 #include "content/common/content_export.h"
11 #include "url/gurl.h" 12 #include "url/gurl.h"
12 #include "webkit/browser/webkit_storage_browser_export.h"
13 13
14 namespace appcache { 14 namespace content {
15 15
16 class AppCache; 16 class AppCache;
17 class AppCacheGroup; 17 class AppCacheGroup;
18 class AppCacheResponseInfo; 18 class AppCacheResponseInfo;
19 19
20 // Represents the working set of appcache object instances 20 // Represents the working set of appcache object instances
21 // currently in memory. 21 // currently in memory.
22 class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheWorkingSet { 22 class CONTENT_EXPORT AppCacheWorkingSet {
23 public: 23 public:
24 typedef std::map<GURL, AppCacheGroup*> GroupMap; 24 typedef std::map<GURL, AppCacheGroup*> GroupMap;
25 25
26 AppCacheWorkingSet(); 26 AppCacheWorkingSet();
27 ~AppCacheWorkingSet(); 27 ~AppCacheWorkingSet();
28 28
29 void Disable(); 29 void Disable();
30 bool is_disabled() const { return is_disabled_; } 30 bool is_disabled() const { return is_disabled_; }
31 31
32 void AddCache(AppCache* cache); 32 void AddCache(AppCache* cache);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 return (it != groups_by_origin_.end()) ? &it->second : NULL; 64 return (it != groups_by_origin_.end()) ? &it->second : NULL;
65 } 65 }
66 66
67 CacheMap caches_; 67 CacheMap caches_;
68 GroupMap groups_; 68 GroupMap groups_;
69 GroupsByOriginMap groups_by_origin_; // origin -> (manifest -> group) 69 GroupsByOriginMap groups_by_origin_; // origin -> (manifest -> group)
70 ResponseInfoMap response_infos_; 70 ResponseInfoMap response_infos_;
71 bool is_disabled_; 71 bool is_disabled_;
72 }; 72 };
73 73
74 } // namespace appcache 74 } // namespace content
75 75
76 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_WORKING_SET_H_ 76 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_WORKING_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698