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

Side by Side Diff: net/disk_cache/blockfile/in_flight_backend_io.cc

Issue 121643003: Reorganize net/disk_cache into backend specific directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to upstream Created 6 years, 10 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 "net/disk_cache/in_flight_backend_io.h" 5 #include "net/disk_cache/blockfile/in_flight_backend_io.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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 #include "net/disk_cache/backend_impl.h" 12 #include "net/disk_cache/blockfile/backend_impl.h"
13 #include "net/disk_cache/entry_impl.h" 13 #include "net/disk_cache/blockfile/entry_impl.h"
14 14
15 #define CACHE_HISTOGRAM_MACROS_BACKEND_IMPL_OBJ backend_ 15 #define CACHE_HISTOGRAM_MACROS_BACKEND_IMPL_OBJ backend_
16 #include "net/disk_cache/histogram_macros.h" 16 #include "net/disk_cache/blockfile/histogram_macros.h"
17 17
18 namespace disk_cache { 18 namespace disk_cache {
19 19
20 BackendIO::BackendIO(InFlightIO* controller, BackendImpl* backend, 20 BackendIO::BackendIO(InFlightIO* controller, BackendImpl* backend,
21 const net::CompletionCallback& callback) 21 const net::CompletionCallback& callback)
22 : BackgroundIO(controller), 22 : BackgroundIO(controller),
23 backend_(backend), 23 backend_(backend),
24 callback_(callback), 24 callback_(callback),
25 operation_(OP_NONE), 25 operation_(OP_NONE),
26 entry_ptr_(NULL), 26 entry_ptr_(NULL),
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 background_thread_->PostTask(FROM_HERE, 515 background_thread_->PostTask(FROM_HERE,
516 base::Bind(&BackendIO::ExecuteOperation, operation)); 516 base::Bind(&BackendIO::ExecuteOperation, operation));
517 OnOperationPosted(operation); 517 OnOperationPosted(operation);
518 } 518 }
519 519
520 base::WeakPtr<InFlightBackendIO> InFlightBackendIO::GetWeakPtr() { 520 base::WeakPtr<InFlightBackendIO> InFlightBackendIO::GetWeakPtr() {
521 return ptr_factory_.GetWeakPtr(); 521 return ptr_factory_.GetWeakPtr();
522 } 522 }
523 523
524 } // namespace 524 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698