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> | 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/download_interrupt_reasons.h" | 12 #include "content/public/browser/download_interrupt_reasons.h" |
13 #include "content/public/browser/indexed_db_context.h" | 13 #include "content/public/browser/indexed_db_context.h" |
14 #include "content/public/browser/web_ui_controller.h" | 14 #include "content/public/browser/web_ui_controller.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class ListValue; | 17 class ListValue; |
18 } | 18 } |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 class DownloadItem; | 22 class DownloadItem; |
23 class IndexedDBContextImpl; | 23 class IndexedDBContextImpl; |
24 class StoragePartition; | 24 class StoragePartition; |
25 | 25 |
26 // The implementation for the chrome://indexeddb-internals page. | 26 // The implementation for the chrome://indexeddb-internals page. |
27 class IndexedDBInternalsUI : public WebUIController { | 27 class IndexedDBInternalsUI : public WebUIController { |
28 public: | 28 public: |
29 explicit IndexedDBInternalsUI(WebUI* web_ui); | 29 explicit IndexedDBInternalsUI(WebUI* web_ui); |
30 virtual ~IndexedDBInternalsUI(); | 30 ~IndexedDBInternalsUI() override; |
31 | 31 |
32 private: | 32 private: |
33 void GetAllOrigins(const base::ListValue* args); | 33 void GetAllOrigins(const base::ListValue* args); |
34 void GetAllOriginsOnIndexedDBThread(scoped_refptr<IndexedDBContext> context, | 34 void GetAllOriginsOnIndexedDBThread(scoped_refptr<IndexedDBContext> context, |
35 const base::FilePath& context_path); | 35 const base::FilePath& context_path); |
36 void OnOriginsReady(scoped_ptr<base::ListValue> origins, | 36 void OnOriginsReady(scoped_ptr<base::ListValue> origins, |
37 const base::FilePath& path); | 37 const base::FilePath& path); |
38 | 38 |
39 void AddContextFromStoragePartition(StoragePartition* partition); | 39 void AddContextFromStoragePartition(StoragePartition* partition); |
40 | 40 |
(...skipping 29 matching lines...) Expand all Loading... |
70 base::FilePath* path, | 70 base::FilePath* path, |
71 GURL* origin_url, | 71 GURL* origin_url, |
72 scoped_refptr<IndexedDBContextImpl>* context); | 72 scoped_refptr<IndexedDBContextImpl>* context); |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI); | 74 DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
78 | 78 |
79 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_ | 79 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_ |
OLD | NEW |