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

Side by Side Diff: webkit/support/test_webidbfactory.h

Issue 15937016: Update refernces to Blink's Platform API (webkit) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 2013 The Chromium Authors. All rights reserved. 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 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 WEBKIT_SUPPORT_TEST_WEBIDBFACTORY_H_ 5 #ifndef WEBKIT_SUPPORT_TEST_WEBIDBFACTORY_H_
6 #define WEBKIT_SUPPORT_TEST_WEBIDBFACTORY_H_ 6 #define WEBKIT_SUPPORT_TEST_WEBIDBFACTORY_H_
7 7
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/threading/thread_local.h" 9 #include "base/threading/thread_local.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBFactory.h" 10 #include "third_party/WebKit/public/platform/WebIDBFactory.h"
11 11
12 // Wrap a WebKit::WebIDBFactory to rewrite the data directory to 12 // Wrap a WebKit::WebIDBFactory to rewrite the data directory to
13 // a scoped temp directory. In multiprocess Chromium this is rewritten 13 // a scoped temp directory. In multiprocess Chromium this is rewritten
14 // to a real profile directory during IPC. 14 // to a real profile directory during IPC.
15 class TestWebIDBFactory : public WebKit::WebIDBFactory { 15 class TestWebIDBFactory : public WebKit::WebIDBFactory {
16 public: 16 public:
17 TestWebIDBFactory(); 17 TestWebIDBFactory();
18 virtual ~TestWebIDBFactory(); 18 virtual ~TestWebIDBFactory();
19 19
20 // WebIDBFactory methods: 20 // WebIDBFactory methods:
(...skipping 22 matching lines...) Expand all
43 // We allocate a separate WebIDBFactory instance per thread since the 43 // We allocate a separate WebIDBFactory instance per thread since the
44 // implementation is not thread-safe. We also intentionally leak the 44 // implementation is not thread-safe. We also intentionally leak the
45 // factory instances to avoid shutdown races. TODO(darin): Can we 45 // factory instances to avoid shutdown races. TODO(darin): Can we
46 // avoid leaking these? 46 // avoid leaking these?
47 base::ThreadLocalPointer<WebKit::WebIDBFactory> factories_; 47 base::ThreadLocalPointer<WebKit::WebIDBFactory> factories_;
48 48
49 base::ScopedTempDir indexed_db_dir_; 49 base::ScopedTempDir indexed_db_dir_;
50 }; 50 };
51 51
52 #endif // WEBKIT_SUPPORT_TEST_WEBIDBFACTORY_H_ 52 #endif // WEBKIT_SUPPORT_TEST_WEBIDBFACTORY_H_
OLDNEW
« no previous file with comments | « webkit/support/test_media_stream_client.cc ('k') | webkit/support/test_webkit_platform_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698