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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_internals_ui.h
diff --git a/content/browser/indexed_db/indexed_db_internals_ui.h b/content/browser/indexed_db/indexed_db_internals_ui.h
index e679fa9ec2293004e3917c0fa5da774278d4346e..174db191bc29566b86c6b7ebdcc63f0a8f459442 100644
--- a/content/browser/indexed_db/indexed_db_internals_ui.h
+++ b/content/browser/indexed_db/indexed_db_internals_ui.h
@@ -12,12 +12,12 @@
#include "content/public/browser/indexed_db_context.h"
#include "content/public/browser/web_ui_controller.h"
-namespace base {
- class ListValue;
-}
+namespace base { class ListValue; }
namespace content {
+class StoragePartition;
+
// The implementation for the chrome://indexeddb-internals page.
class IndexedDBInternalsUI : public WebUIController {
public:
@@ -25,9 +25,17 @@ class IndexedDBInternalsUI : public WebUIController {
virtual ~IndexedDBInternalsUI();
private:
+ typedef std::vector<scoped_refptr<IndexedDBContext> > ContextList;
void GetAllOrigins(const base::ListValue* args);
- void GetAllOriginsOnWebkitThread(scoped_refptr<IndexedDBContext> context);
- void OnOriginsReady(scoped_ptr<std::vector<IndexedDBInfo> > origins);
+ void GetAllOriginsOnWebkitThread(
+ scoped_ptr<ContextList> contexts,
+ scoped_ptr<std::vector<base::FilePath> > context_paths);
+ void OnOriginsReady(scoped_ptr<std::vector<IndexedDBInfo> > origins,
+ const base::FilePath& path);
+
+ static void AddContextFromStoragePartition(ContextList* contexts,
+ std::vector<base::FilePath>* paths,
+ StoragePartition* partition);
DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI);
};
« 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