blob: 174db191bc29566b86c6b7ebdcc63f0a8f459442 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_
#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_
#include <vector>
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/indexed_db_context.h"
#include "content/public/browser/web_ui_controller.h"
namespace base { class ListValue; }
namespace content {
class StoragePartition;
// The implementation for the chrome://indexeddb-internals page.
class IndexedDBInternalsUI : public WebUIController {
public:
explicit IndexedDBInternalsUI(WebUI* web_ui);
virtual ~IndexedDBInternalsUI();
private:
typedef std::vector<scoped_refptr<IndexedDBContext> > ContextList;
void GetAllOrigins(const base::ListValue* args);
void GetAllOriginsOnWebkitThread(
scoped_ptr<ContextList> contexts,
scoped_ptr<std::vector<base::FilePath> > context_paths);
void OnOriginsReady(scoped_ptr<std::vector<IndexedDBInfo> > origins,
const base::FilePath& path);
static void AddContextFromStoragePartition(ContextList* contexts,
std::vector<base::FilePath>* paths,
StoragePartition* partition);
DISALLOW_COPY_AND_ASSIGN(IndexedDBInternalsUI);
};
} // namespace content
#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INTERNALS_UI_H_
|