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

Side by Side Diff: content/browser/indexed_db/indexed_db_connection.cc

Issue 18221003: Convert WebIDBDatabaseImpl to IndexedDBConnection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 7 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/indexed_db/indexed_db_connection.h"
6
7 namespace content {
8
9 IndexedDBConnection::IndexedDBConnection(
10 scoped_refptr<IndexedDBDatabase> database,
11 scoped_refptr<IndexedDBDatabaseCallbacks> callbacks)
12 : database_(database), callbacks_(callbacks) {}
13
14 IndexedDBConnection::~IndexedDBConnection() {}
15
16 void IndexedDBConnection::Close() {
17 if (!callbacks_)
18 return;
19 database_->Close(this);
20 callbacks_ = NULL;
21 }
22
23 void IndexedDBConnection::ForceClose() {
24 if (!callbacks_)
25 return;
26 database_->Close(this);
27 callbacks_->OnForcedClose();
28 callbacks_ = NULL;
29 }
30
31 } // namespace WebKit
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_connection.h ('k') | content/browser/indexed_db/indexed_db_context_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698