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

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

Issue 14118002: Implement read-only indexedb-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>
9
10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/browser/indexed_db_context.h"
8 #include "content/public/browser/web_ui_controller.h" 13 #include "content/public/browser/web_ui_controller.h"
9 14
15 namespace base {
16 class ListValue;
17 }
18
10 namespace content { 19 namespace content {
11 20
12 // The implementation for the chrome://indexeddb-internals page. 21 // The implementation for the chrome://indexeddb-internals page.
13 class IndexedDBInternalsUI : public WebUIController { 22 class IndexedDBInternalsUI : public WebUIController {
14 public: 23 public:
15 explicit IndexedDBInternalsUI(WebUI* web_ui); 24 explicit IndexedDBInternalsUI(WebUI* web_ui);
16 virtual ~IndexedDBInternalsUI(); 25 virtual ~IndexedDBInternalsUI();
17 26
18 private: 27 private:
28 void GetAllOrigins(const base::ListValue* args);
29 void GetAllOriginsOnWebkitThread(scoped_refptr<IndexedDBContext> context);
30 void OnOriginsReady(scoped_ptr<std::vector<IndexedDBInfo> > origins);
31 bool fetching_;
jsbell 2013/04/11 18:56:20 Nit: Add blank line between methods and fields? (N
32
19 DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI); 33 DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI);
20 }; 34 };
21 35
22 } // namespace content 36 } // namespace content
23 37
24 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_ 38 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698