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

Side by Side Diff: content/browser/appcache/appcache_response.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_RESPONSE_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/common/appcache_interfaces.h" 12 #include "content/common/appcache_interfaces.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
15 #include "net/http/http_response_info.h" 15 #include "net/http/http_response_info.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 namespace net { 18 namespace net {
19 class IOBuffer; 19 class IOBuffer;
20 } 20 }
21 21
22 namespace content { 22 namespace content {
23 class AppCacheStorage;
23 class MockAppCacheStorage; 24 class MockAppCacheStorage;
24 }
25
26 namespace content {
27
28 class AppCacheStorage;
29 25
30 static const int kUnkownResponseDataSize = -1; 26 static const int kUnkownResponseDataSize = -1;
31 27
32 // Response info for a particular response id. Instances are tracked in 28 // Response info for a particular response id. Instances are tracked in
33 // the working set. 29 // the working set.
34 class CONTENT_EXPORT AppCacheResponseInfo 30 class CONTENT_EXPORT AppCacheResponseInfo
35 : public base::RefCounted<AppCacheResponseInfo> { 31 : public base::RefCounted<AppCacheResponseInfo> {
36 public: 32 public:
37 // AppCacheResponseInfo takes ownership of the http_info. 33 // AppCacheResponseInfo takes ownership of the http_info.
38 AppCacheResponseInfo(AppCacheStorage* storage, const GURL& manifest_url, 34 AppCacheResponseInfo(AppCacheStorage* storage, const GURL& manifest_url,
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 int write_position_; 253 int write_position_;
258 int write_amount_; 254 int write_amount_;
259 CreationPhase creation_phase_; 255 CreationPhase creation_phase_;
260 net::CompletionCallback create_callback_; 256 net::CompletionCallback create_callback_;
261 base::WeakPtrFactory<AppCacheResponseWriter> weak_factory_; 257 base::WeakPtrFactory<AppCacheResponseWriter> weak_factory_;
262 }; 258 };
263 259
264 } // namespace content 260 } // namespace content
265 261
266 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_ 262 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_request_handler.h ('k') | content/browser/appcache/appcache_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698