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

Side by Side Diff: content/browser/appcache/appcache_quota_client.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
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_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
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 "content/browser/appcache/appcache_storage.h" 15 #include "content/browser/appcache/appcache_storage.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "net/base/completion_callback.h" 17 #include "net/base/completion_callback.h"
18 #include "webkit/browser/quota/quota_client.h" 18 #include "webkit/browser/quota/quota_client.h"
19 #include "webkit/browser/quota/quota_task.h" 19 #include "webkit/browser/quota/quota_task.h"
20 #include "webkit/common/quota/quota_types.h" 20 #include "webkit/common/quota/quota_types.h"
21 21
22 namespace content { 22 namespace content {
23 class AppCacheQuotaClientTest; 23 class AppCacheQuotaClientTest;
24 }
25
26 namespace content {
27
28 class AppCacheServiceImpl; 24 class AppCacheServiceImpl;
29 class AppCacheStorageImpl; 25 class AppCacheStorageImpl;
30 class AppCacheQuotaClientTest;
31 26
32 // A QuotaClient implementation to integrate the appcache service 27 // A QuotaClient implementation to integrate the appcache service
33 // with the quota management system. The QuotaClient interface is 28 // with the quota management system. The QuotaClient interface is
34 // used on the IO thread by the quota manager. This class deletes 29 // used on the IO thread by the quota manager. This class deletes
35 // itself when both the quota manager and the appcache service have 30 // itself when both the quota manager and the appcache service have
36 // been destroyed. 31 // been destroyed.
37 class AppCacheQuotaClient : public quota::QuotaClient { 32 class AppCacheQuotaClient : public quota::QuotaClient {
38 public: 33 public:
39 typedef std::deque<base::Closure> RequestQueue; 34 typedef std::deque<base::Closure> RequestQueue;
40 35
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 AppCacheServiceImpl* service_; 85 AppCacheServiceImpl* service_;
91 bool appcache_is_ready_; 86 bool appcache_is_ready_;
92 bool quota_manager_is_destroyed_; 87 bool quota_manager_is_destroyed_;
93 88
94 DISALLOW_COPY_AND_ASSIGN(AppCacheQuotaClient); 89 DISALLOW_COPY_AND_ASSIGN(AppCacheQuotaClient);
95 }; 90 };
96 91
97 } // namespace content 92 } // namespace content
98 93
99 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_ 94 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_QUOTA_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_interceptor.h ('k') | content/browser/appcache/appcache_request_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698