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

Side by Side Diff: content/public/browser/indexed_db_context.h

Issue 2930183002: Let IndexedDBContextImpl create its own task runner (Closed)
Patch Set: Use ScopedTaskEnvironment for most tests Created 3 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
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_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 // indexed db directory in the destination context needs to be empty. 39 // indexed db directory in the destination context needs to be empty.
40 virtual void CopyOriginData(const GURL& origin_url, 40 virtual void CopyOriginData(const GURL& origin_url,
41 IndexedDBContext* dest_context) = 0; 41 IndexedDBContext* dest_context) = 0;
42 42
43 // Get the file name of the local storage file for the given origin. 43 // Get the file name of the local storage file for the given origin.
44 virtual base::FilePath GetFilePathForTesting( 44 virtual base::FilePath GetFilePathForTesting(
45 const GURL& origin_url) const = 0; 45 const GURL& origin_url) const = 0;
46 46
47 // Set the task runner for tests if browser main loop is not initialized. 47 // Set the task runner for tests if browser main loop is not initialized.
48 virtual void SetTaskRunnerForTesting( 48 virtual void SetTaskRunnerForTesting(
49 base::SequencedTaskRunner* task_runner) = 0; 49 const scoped_refptr<base::SequencedTaskRunner>& task_runner) = 0;
gab 2017/06/13 15:31:23 Taking scoped_refptr by value and std::move() in i
50 50
51 protected: 51 protected:
52 friend class base::RefCountedThreadSafe<IndexedDBContext>; 52 friend class base::RefCountedThreadSafe<IndexedDBContext>;
53 virtual ~IndexedDBContext() {} 53 virtual ~IndexedDBContext() {}
54 }; 54 };
55 55
56 } // namespace content 56 } // namespace content
57 57
58 #endif // CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ 58 #endif // CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698