OLD | NEW |
---|---|
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_ |
OLD | NEW |