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

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: 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 {
16 class ListValue; 16 class ListValue;
17 } 17 }
18 18
19 namespace content { 19 namespace content {
20 20
21 class StoragePartition;
22
21 // The implementation for the chrome://indexeddb-internals page. 23 // The implementation for the chrome://indexeddb-internals page.
22 class IndexedDBInternalsUI : public WebUIController { 24 class IndexedDBInternalsUI : public WebUIController {
23 public: 25 public:
24 explicit IndexedDBInternalsUI(WebUI* web_ui); 26 explicit IndexedDBInternalsUI(WebUI* web_ui);
25 virtual ~IndexedDBInternalsUI(); 27 virtual ~IndexedDBInternalsUI();
26 28
27 private: 29 private:
30 typedef std::vector<scoped_refptr<IndexedDBContext> > ContextList;
28 void GetAllOrigins(const base::ListValue* args); 31 void GetAllOrigins(const base::ListValue* args);
29 void GetAllOriginsOnWebkitThread(scoped_refptr<IndexedDBContext> context); 32 void GetAllOriginsOnWebkitThread(
30 void OnOriginsReady(scoped_ptr<std::vector<IndexedDBInfo> > origins); 33 scoped_ptr<ContextList> contexts,
34 scoped_ptr<std::vector<base::FilePath> > context_paths);
35 void OnOriginsReady(scoped_ptr<std::vector<IndexedDBInfo> > origins,
36 const base::FilePath& path);
37
38 static void AddContextFromStoragePartition(ContextList* contexts,
39 std::vector<base::FilePath>* paths,
40 StoragePartition* partition);
41
31 42
32 DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI); 43 DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI);
33 }; 44 };
34 45
35 } // namespace content 46 } // namespace content
36 47
37 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_ 48 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698