| 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/indexed_db_context.h" | 13 #include "content/public/browser/indexed_db_context.h" |
| 13 #include "content/public/browser/web_ui_controller.h" | 14 #include "content/public/browser/web_ui_controller.h" |
| 14 #include "net/base/net_errors.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; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 45 const GURL& origin_url); | 45 const GURL& origin_url); |
| 46 void OnDownloadDataReady(const base::FilePath& partition_path, | 46 void OnDownloadDataReady(const base::FilePath& partition_path, |
| 47 const GURL& origin_url, | 47 const GURL& origin_url, |
| 48 const base::FilePath temp_path, | 48 const base::FilePath temp_path, |
| 49 const base::FilePath zip_path, | 49 const base::FilePath zip_path, |
| 50 size_t connection_count); | 50 size_t connection_count); |
| 51 void OnDownloadStarted(const base::FilePath& partition_path, | 51 void OnDownloadStarted(const base::FilePath& partition_path, |
| 52 const GURL& origin_url, | 52 const GURL& origin_url, |
| 53 const base::FilePath& temp_path, | 53 const base::FilePath& temp_path, |
| 54 size_t connection_count, | 54 size_t connection_count, |
| 55 content::DownloadItem* item, | 55 DownloadItem* item, |
| 56 net::Error error); | 56 DownloadInterruptReason interrupt_reason); |
| 57 | 57 |
| 58 void ForceCloseOrigin(const base::ListValue* args); | 58 void ForceCloseOrigin(const base::ListValue* args); |
| 59 void ForceCloseOriginOnIndexedDBThread( | 59 void ForceCloseOriginOnIndexedDBThread( |
| 60 const base::FilePath& partition_path, | 60 const base::FilePath& partition_path, |
| 61 const scoped_refptr<IndexedDBContextImpl> context, | 61 const scoped_refptr<IndexedDBContextImpl> context, |
| 62 const GURL& origin_url); | 62 const GURL& origin_url); |
| 63 void OnForcedClose(const base::FilePath& partition_path, | 63 void OnForcedClose(const base::FilePath& partition_path, |
| 64 const GURL& origin_url, | 64 const GURL& origin_url, |
| 65 size_t connection_count); | 65 size_t connection_count); |
| 66 bool GetOriginContext(const base::FilePath& path, | 66 bool GetOriginContext(const base::FilePath& path, |
| 67 const GURL& origin_url, | 67 const GURL& origin_url, |
| 68 scoped_refptr<IndexedDBContextImpl>* context); | 68 scoped_refptr<IndexedDBContextImpl>* context); |
| 69 bool GetOriginData(const base::ListValue* args, | 69 bool GetOriginData(const base::ListValue* args, |
| 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 |