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

Side by Side Diff: chrome/browser/net/sqlite_server_bound_cert_store.cc

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 "chrome/browser/net/sqlite_server_bound_cert_store.h" 5 #include "chrome/browser/net/sqlite_server_bound_cert_store.h"
6 6
7 #include <list> 7 #include <list>
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "base/threading/thread.h" 18 #include "base/threading/thread.h"
19 #include "base/threading/thread_restrictions.h" 19 #include "base/threading/thread_restrictions.h"
20 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" 20 #include "chrome/browser/diagnostics/sqlite_diagnostics.h"
21 #include "chrome/browser/net/clear_on_exit_policy.h" 21 #include "chrome/browser/net/clear_on_exit_policy.h"
22 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
23 #include "net/base/ssl_client_cert_type.h"
24 #include "net/base/x509_certificate.h" 23 #include "net/base/x509_certificate.h"
24 #include "net/ssl/ssl_client_cert_type.h"
25 #include "sql/meta_table.h" 25 #include "sql/meta_table.h"
26 #include "sql/statement.h" 26 #include "sql/statement.h"
27 #include "sql/transaction.h" 27 #include "sql/transaction.h"
28 28
29 using content::BrowserThread; 29 using content::BrowserThread;
30 30
31 // This class is designed to be shared between any calling threads and the 31 // This class is designed to be shared between any calling threads and the
32 // database thread. It batches operations and commits them on a timer. 32 // database thread. It batches operations and commits them on a timer.
33 class SQLiteServerBoundCertStore::Backend 33 class SQLiteServerBoundCertStore::Backend
34 : public base::RefCountedThreadSafe<SQLiteServerBoundCertStore::Backend> { 34 : public base::RefCountedThreadSafe<SQLiteServerBoundCertStore::Backend> {
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 591
592 void SQLiteServerBoundCertStore::Flush(const base::Closure& completion_task) { 592 void SQLiteServerBoundCertStore::Flush(const base::Closure& completion_task) {
593 backend_->Flush(completion_task); 593 backend_->Flush(completion_task);
594 } 594 }
595 595
596 SQLiteServerBoundCertStore::~SQLiteServerBoundCertStore() { 596 SQLiteServerBoundCertStore::~SQLiteServerBoundCertStore() {
597 backend_->Close(); 597 backend_->Close();
598 // We release our reference to the Backend, though it will probably still have 598 // We release our reference to the Backend, though it will probably still have
599 // a reference if the background thread has not run Close() yet. 599 // a reference if the background thread has not run Close() yet.
600 } 600 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698