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

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

Issue 358993007: Fix nits in content/browser/appcache/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/browser/appcache/appcache_database.h ('k') | content/browser/appcache/appcache_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_APPCACHE_GROUP_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/cancelable_callback.h" 11 #include "base/cancelable_callback.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace content { 20 namespace content {
21 FORWARD_DECLARE_TEST(AppCacheGroupTest, StartUpdate); 21 FORWARD_DECLARE_TEST(AppCacheGroupTest, StartUpdate);
22 FORWARD_DECLARE_TEST(AppCacheGroupTest, CancelUpdate); 22 FORWARD_DECLARE_TEST(AppCacheGroupTest, CancelUpdate);
23 FORWARD_DECLARE_TEST(AppCacheGroupTest, QueueUpdate); 23 FORWARD_DECLARE_TEST(AppCacheGroupTest, QueueUpdate);
24 FORWARD_DECLARE_TEST(AppCacheUpdateJobTest, AlreadyChecking); 24 FORWARD_DECLARE_TEST(AppCacheUpdateJobTest, AlreadyChecking);
25 FORWARD_DECLARE_TEST(AppCacheUpdateJobTest, AlreadyDownloading); 25 FORWARD_DECLARE_TEST(AppCacheUpdateJobTest, AlreadyDownloading);
26 class AppCacheUpdateJobTest;
27 class MockAppCacheStorage;
28 }
29
30 namespace content {
31
32 class AppCache; 26 class AppCache;
33 class AppCacheHost; 27 class AppCacheHost;
34 class AppCacheStorage; 28 class AppCacheStorage;
35 class AppCacheUpdateJob; 29 class AppCacheUpdateJob;
30 class AppCacheUpdateJobTest;
36 class HostObserver; 31 class HostObserver;
32 class MockAppCacheStorage;
37 33
38 // Collection of application caches identified by the same manifest URL. 34 // Collection of application caches identified by the same manifest URL.
39 // A group exists as long as it is in use by a host or is being updated. 35 // A group exists as long as it is in use by a host or is being updated.
40 class CONTENT_EXPORT AppCacheGroup 36 class CONTENT_EXPORT AppCacheGroup
41 : public base::RefCounted<AppCacheGroup> { 37 : public base::RefCounted<AppCacheGroup> {
42 public: 38 public:
43 39
44 class CONTENT_EXPORT UpdateObserver { 40 class CONTENT_EXPORT UpdateObserver {
45 public: 41 public:
46 // Called just after an appcache update has completed. 42 // Called just after an appcache update has completed.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); 164 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate);
169 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyChecking); 165 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyChecking);
170 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyDownloading); 166 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyDownloading);
171 167
172 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup); 168 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup);
173 }; 169 };
174 170
175 } // namespace content 171 } // namespace content
176 172
177 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ 173 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_database.h ('k') | content/browser/appcache/appcache_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698