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

Side by Side Diff: content/browser/appcache/appcache_disk_cache.cc

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, 6 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 #include "webkit/browser/appcache/appcache_disk_cache.h" 5 #include "content/browser/appcache/appcache_disk_cache.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "net/base/cache_type.h" 13 #include "net/base/cache_type.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 15
16 namespace appcache { 16 namespace content {
17 17
18 // A callback shim that provides storage for the 'backend_ptr' value 18 // A callback shim that provides storage for the 'backend_ptr' value
19 // and will delete a resulting ptr if completion occurs after its 19 // and will delete a resulting ptr if completion occurs after its
20 // been canceled. 20 // been canceled.
21 class AppCacheDiskCache::CreateBackendCallbackShim 21 class AppCacheDiskCache::CreateBackendCallbackShim
22 : public base::RefCounted<CreateBackendCallbackShim> { 22 : public base::RefCounted<CreateBackendCallbackShim> {
23 public: 23 public:
24 explicit CreateBackendCallbackShim(AppCacheDiskCache* object) 24 explicit CreateBackendCallbackShim(AppCacheDiskCache* object)
25 : appcache_diskcache_(object) { 25 : appcache_diskcache_(object) {
26 } 26 }
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 default: 341 default:
342 NOTREACHED(); 342 NOTREACHED();
343 break; 343 break;
344 } 344 }
345 if (rv != net::ERR_IO_PENDING) 345 if (rv != net::ERR_IO_PENDING)
346 iter->callback.Run(rv); 346 iter->callback.Run(rv);
347 } 347 }
348 pending_calls_.clear(); 348 pending_calls_.clear();
349 } 349 }
350 350
351 } // namespace appcache 351 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698