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" |
(...skipping 14 matching lines...) Expand all Loading... |
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 virtual ~IndexedDBInternalsUI(); |
31 | 31 |
32 private: | 32 private: |
33 typedef std::vector<scoped_refptr<IndexedDBContext> > ContextList; | 33 typedef std::vector<scoped_refptr<IndexedDBContext> > ContextList; |
34 void GetAllOrigins(const base::ListValue* args); | 34 void GetAllOrigins(const base::ListValue* args); |
35 void GetAllOriginsOnWebkitThread( | 35 void GetAllOriginsOnIndexedDBThread( |
36 const scoped_ptr<ContextList> contexts, | 36 scoped_refptr<IndexedDBContext> context, |
37 const scoped_ptr<std::vector<base::FilePath> > context_paths); | 37 const base::FilePath& context_path); |
38 void OnOriginsReady(scoped_ptr<std::vector<IndexedDBInfo> > origins, | 38 void OnOriginsReady(scoped_ptr<std::vector<IndexedDBInfo> > origins, |
39 const base::FilePath& path); | 39 const base::FilePath& path); |
40 | 40 |
41 static void AddContextFromStoragePartition(ContextList* contexts, | 41 void AddContextFromStoragePartition(StoragePartition* partition); |
42 std::vector<base::FilePath>* paths, | |
43 StoragePartition* partition); | |
44 | 42 |
45 void DownloadOriginData(const base::ListValue* args); | 43 void DownloadOriginData(const base::ListValue* args); |
46 void DownloadOriginDataOnWebkitThread( | 44 void DownloadOriginDataOnIndexedDBThread( |
47 const base::FilePath& partition_path, | 45 const base::FilePath& partition_path, |
48 const scoped_refptr<IndexedDBContextImpl> context, | 46 const scoped_refptr<IndexedDBContextImpl> context, |
49 const GURL& origin_url); | 47 const GURL& origin_url); |
50 void OnDownloadDataReady(const base::FilePath& partition_path, | 48 void OnDownloadDataReady(const base::FilePath& partition_path, |
51 const GURL& origin_url, | 49 const GURL& origin_url, |
52 const base::FilePath temp_path, | 50 const base::FilePath temp_path, |
53 const base::FilePath zip_path); | 51 const base::FilePath zip_path); |
54 void OnDownloadStarted(const base::FilePath& partition_path, | 52 void OnDownloadStarted(const base::FilePath& partition_path, |
55 const GURL& origin_url, | 53 const GURL& origin_url, |
56 const base::FilePath& temp_path, | 54 const base::FilePath& temp_path, |
57 content::DownloadItem* item, | 55 content::DownloadItem* item, |
58 net::Error error); | 56 net::Error error); |
59 | 57 |
60 DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI); | 58 DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI); |
61 }; | 59 }; |
62 | 60 |
63 } // namespace content | 61 } // namespace content |
64 | 62 |
65 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_ | 63 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_ |
OLD | NEW |