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

Side by Side Diff: content/browser/indexed_db/indexed_db_internals_ui.h

Issue 14156003: Support multiple storage partitions in chrome://indexeddb-internals/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cocoa unit test Created 7 years, 8 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 CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/browser/indexed_db_context.h" 12 #include "content/public/browser/indexed_db_context.h"
13 #include "content/public/browser/web_ui_controller.h" 13 #include "content/public/browser/web_ui_controller.h"
14 14
15 namespace base { 15 namespace base { class ListValue; }
16 class ListValue;
17 }
18 16
19 namespace content { 17 namespace content {
20 18
19 class StoragePartition;
20
21 // The implementation for the chrome://indexeddb-internals page. 21 // The implementation for the chrome://indexeddb-internals page.
22 class IndexedDBInternalsUI : public WebUIController { 22 class IndexedDBInternalsUI : public WebUIController {
23 public: 23 public:
24 explicit IndexedDBInternalsUI(WebUI* web_ui); 24 explicit IndexedDBInternalsUI(WebUI* web_ui);
25 virtual ~IndexedDBInternalsUI(); 25 virtual ~IndexedDBInternalsUI();
26 26
27 private: 27 private:
28 typedef std::vector<scoped_refptr<IndexedDBContext> > ContextList;
28 void GetAllOrigins(const base::ListValue* args); 29 void GetAllOrigins(const base::ListValue* args);
29 void GetAllOriginsOnWebkitThread(scoped_refptr<IndexedDBContext> context); 30 void GetAllOriginsOnWebkitThread(
30 void OnOriginsReady(scoped_ptr<std::vector<IndexedDBInfo> > origins); 31 scoped_ptr<ContextList> contexts,
32 scoped_ptr<std::vector<base::FilePath> > context_paths);
33 void OnOriginsReady(scoped_ptr<std::vector<IndexedDBInfo> > origins,
34 const base::FilePath& path);
35
36 static void AddContextFromStoragePartition(ContextList* contexts,
37 std::vector<base::FilePath>* paths,
38 StoragePartition* partition);
31 39
32 DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI); 40 DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI);
33 }; 41 };
34 42
35 } // namespace content 43 } // namespace content
36 44
37 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_ 45 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_context_impl.cc ('k') | content/browser/indexed_db/indexed_db_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698